2016-11-05 01:25:06 +08:00
|
|
|
[tox]
|
2016-11-10 04:16:12 +08:00
|
|
|
envlist = {ansible2.1}-{xenial-conf-tests,xenial-mon-osd,xenial-cluster,centos7-mon-osd}
|
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-09 00:34:16 +08:00
|
|
|
xenial-conf-tests: {toxinidir}/tests/functional/ubuntu/16.04/mon
|
|
|
|
xenial-mon-osd: {toxinidir}/tests/functional/ubuntu/16.04/mon-osd
|
2016-11-10 04:16:12 +08:00
|
|
|
xenial-cluster: {toxinidir}/tests/functional/ubuntu/16.04/mon-osd-mds-rgw
|
2016-11-09 00:34:16 +08:00
|
|
|
centos7-mon-osd: {toxinidir}/tests/functional/centos/7/mon-osd
|
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-09 00:34:16 +08:00
|
|
|
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/site.yml.sample
|
2016-11-05 01:25:06 +08:00
|
|
|
|
|
|
|
py.test -v
|
2016-11-05 02:01:28 +08:00
|
|
|
vagrant destroy --force
|