2016-11-05 01:25:06 +08:00
|
|
|
[tox]
|
2016-11-29 01:20:31 +08:00
|
|
|
envlist = {ansible2.2}-{xenial-conf-tests,xenial-mon-osd,xenial-cluster,raw-multi-journal,centos7-cluster,dmcrypt-dedicated-journal}
|
2016-11-05 01:25:06 +08:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
2016-11-05 02:01:28 +08:00
|
|
|
whitelist_externals =
|
|
|
|
vagrant
|
|
|
|
bash
|
2016-11-05 01:25:06 +08:00
|
|
|
passenv=*
|
|
|
|
setenv=
|
2016-11-05 01:49:18 +08:00
|
|
|
ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
|
2016-11-05 01:25:06 +08:00
|
|
|
ANSIBLE_ACTION_PLUGINS = {toxinidir}/plugins/actions
|
|
|
|
deps=
|
2016-11-09 00:34:16 +08:00
|
|
|
ansible1.9: ansible==1.9.4
|
2016-11-05 01:25:06 +08:00
|
|
|
ansible2.1: ansible==2.1
|
|
|
|
ansible2.2: ansible==2.2
|
|
|
|
-r{toxinidir}/tests/requirements.txt
|
|
|
|
changedir=
|
2016-11-11 02:04:56 +08:00
|
|
|
# test a 3 mon cluster and ensures ceph.conf is rendered correctly
|
2016-11-09 00:34:16 +08:00
|
|
|
xenial-conf-tests: {toxinidir}/tests/functional/ubuntu/16.04/mon
|
2016-11-11 02:04:56 +08:00
|
|
|
# tests a 1 mon 1 osd xenial cluster using raw_multi_journal OSD scenario
|
2016-11-09 00:34:16 +08:00
|
|
|
xenial-mon-osd: {toxinidir}/tests/functional/ubuntu/16.04/mon-osd
|
2016-11-11 02:04:56 +08:00
|
|
|
# tests a 1 mon, 1 osd, 1 mds and 1 rgw xenial cluster using journal_collocation OSD scenario
|
2016-11-10 04:16:12 +08:00
|
|
|
xenial-cluster: {toxinidir}/tests/functional/ubuntu/16.04/mon-osd-mds-rgw
|
2016-11-11 02:04:56 +08:00
|
|
|
# tests a 1 mon 1 osd centos7 cluster using raw_multi_journal OSD scenario
|
2016-11-29 01:20:31 +08:00
|
|
|
raw-multi-journal: {toxinidir}/tests/functional/centos/7/raw-multi-journal
|
|
|
|
# tests a 1 mon 1 osd centos7 cluster using dmcrypt_dedicated_journal OSD scenario
|
|
|
|
dmcrypt-dedicated-journal: {toxinidir}/tests/functional/centos/7/dmcrypt-dedicated-journal
|
2016-11-11 02:04:56 +08:00
|
|
|
# tests a 1 mon, 1 osd, 1 mds and 1 rgw centos7 cluster using journal_collocation OSD scenario
|
2016-11-10 04:52:37 +08:00
|
|
|
centos7-cluster: {toxinidir}/tests/functional/centos/7/mon-osd-mds-rgw
|
2016-11-05 01:25:06 +08:00
|
|
|
commands=
|
2016-11-09 07:00:09 +08:00
|
|
|
vagrant up --no-provision {posargs:--provider=virtualbox}
|
2016-11-05 02:01:28 +08:00
|
|
|
bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}
|
2016-11-05 01:25:06 +08:00
|
|
|
|
2016-11-22 07:08:39 +08:00
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/site.yml.sample --extra-vars="fetch_directory={changedir}/fetch"
|
2016-11-05 01:25:06 +08:00
|
|
|
|
|
|
|
py.test -v
|
2016-11-05 02:01:28 +08:00
|
|
|
vagrant destroy --force
|