ceph-ansible/tox.ini

44 lines
2.1 KiB
INI

[tox]
envlist = {ansible2.2}-{xenial_conf_tests,xenial_mon_osd,xenial_cluster,journal_collocation,centos7_cluster,dmcrypt_journal,dmcrypt_journal_collocation,docker_cluster}
skipsdist = True
[testenv]
whitelist_externals =
vagrant
bash
passenv=*
setenv=
ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
ANSIBLE_ACTION_PLUGINS = {toxinidir}/plugins/actions
docker_cluster: PLAYBOOK = site-docker.yml.sample
deps=
ansible1.9: ansible==1.9.4
ansible2.1: ansible==2.1
ansible2.2: ansible==2.2
-r{toxinidir}/tests/requirements.txt
changedir=
# test a 3 mon cluster and ensures ceph.conf is rendered correctly
xenial_conf_tests: {toxinidir}/tests/functional/ubuntu/16.04/mon
# tests a 1 mon 1 osd xenial cluster using raw_multi_journal OSD scenario
xenial_mon_osd: {toxinidir}/tests/functional/ubuntu/16.04/mon-osd
# tests a 1 mon, 1 osd, 1 mds and 1 rgw xenial cluster using raw_multi_journal OSD scenario
xenial_cluster: {toxinidir}/tests/functional/ubuntu/16.04/mon-osd-mds-rgw
# tests a 1 mon 1 osd centos7 cluster using journal_collocation OSD scenario
journal_collocation: {toxinidir}/tests/functional/centos/7/journal-collocation
# tests a 1 mon 1 osd centos7 cluster using dmcrypt_dedicated_journal OSD scenario
dmcrypt_journal: {toxinidir}/tests/functional/centos/7/dmcrypt-dedicated-journal
# tests a 1 mon 1 osd centos7 cluster using dmcrypt_journal_collocation OSD scenario
dmcrypt_journal_collocation: {toxinidir}/tests/functional/centos/7/dmcrypt-journal-collocation
# tests a 1 mon, 1 osd, 1 mds and 1 rgw centos7 cluster using raw_multi_journal OSD scenario
centos7_cluster: {toxinidir}/tests/functional/centos/7/mon-osd-mds-rgw
# tests a 1 mon, 1 osd, 1 mds and 1 rgw centos7 cluster using docker
docker_cluster: {toxinidir}/tests/functional/centos/7/docker-cluster
commands=
vagrant up --no-provision {posargs:--provider=virtualbox}
bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} --extra-vars="fetch_directory={changedir}/fetch"
py.test -v
vagrant destroy --force