test: add handler support

Add idempotency and handler test.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/1956/head
Sébastien Han 2017-10-02 22:46:28 +02:00
parent ba42894516
commit 18e2ab4d07
17 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1,7 @@
{
"ceph_conf_overrides": {
"global": {
"osd_pool_default_pg_num": 12
}
}
}

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

View File

@ -0,0 +1 @@
../cluster/ceph-override.json

12
tox.ini
View File

@ -228,6 +228,18 @@ commands=
# retest to ensure cluster came back up correctly after rebooting # retest to ensure cluster came back up correctly after rebooting
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests
# handlers/idempotency test
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/{env:PLAYBOOK:site.yml.sample} \
--extra-vars "\
fetch_directory={env:FETCH_DIRECTORY:{changedir}/fetch} \
ceph_stable_release={env:CEPH_STABLE_RELEASE:luminous} \
ceph_docker_registry={env:CEPH_DOCKER_REGISTRY:docker.io} \
ceph_docker_image={env:CEPH_DOCKER_IMAGE:ceph/daemon} \
ceph_docker_image_tag={env:CEPH_DOCKER_IMAGE_TAG:latest} \
ceph_dev_branch={env:CEPH_DEV_BRANCH:master} \
ceph_dev_sha1={env:CEPH_DEV_SHA1:latest} " \
--extra-vars @ceph-override.json
purge_cluster: {[purge]commands} purge_cluster: {[purge]commands}
purge_lvm_osds: {[purge-lvm]commands} purge_lvm_osds: {[purge-lvm]commands}
purge_dmcrypt: {[purge]commands} purge_dmcrypt: {[purge]commands}