2016-11-05 01:25:06 +08:00
|
|
|
[tox]
|
2016-11-05 02:01:28 +08:00
|
|
|
envlist = {ansible2.1,ansible2.2}-{initial-members}
|
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=
|
|
|
|
ansible2.1: ansible==2.1
|
|
|
|
ansible2.2: ansible==2.2
|
|
|
|
-r{toxinidir}/tests/requirements.txt
|
|
|
|
changedir=
|
2016-11-05 02:01:28 +08:00
|
|
|
initial-members: {toxinidir}/tests/functional/ubuntu/16.04/mon/initial_members
|
2016-11-05 01:25:06 +08:00
|
|
|
commands=
|
|
|
|
vagrant up --no-provision --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
|
|
|
|
|
|
|
initial-members: ansible-playbook -i {toxinidir}/tests/functional/ubuntu/16.04/mon/initial_members/hosts --extra-vars "ceph_stable=True public_network=192.168.42.0/24 cluster_network=192.168.43.0/24 journal_size=100 monitor_interface=eth1" {toxinidir}/site.yml.sample
|
|
|
|
|
|
|
|
py.test -v
|
2016-11-05 02:01:28 +08:00
|
|
|
vagrant destroy --force
|