]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tox: test cephadm-adopt.yml playbook idempotency
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 21 Jan 2021 16:27:10 +0000 (11:27 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 29 Jan 2021 20:07:39 +0000 (21:07 +0100)
Rerun the cephadm-adopt.yml playbook a second time for idempotency
purpose.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index cc5b2ef11c4a9e2b72654fa8fed8ce966344d39f..bc90ae5288352a101868ad4e469443b8a3cb4789 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -256,6 +256,11 @@ commands=
       ireallymeanit=yes \
       delegate_facts_host={env:DELEGATE_FACTS_HOST:True} \
   "
+  # idempotency test
+  ansible-playbook -vv -i {changedir}/{env:INVENTORY} {toxinidir}/infrastructure-playbooks/cephadm-adopt.yml --extra-vars "\
+      ireallymeanit=yes \
+      delegate_facts_host={env:DELEGATE_FACTS_HOST:True} \
+  "
 
 [testenv]
 whitelist_externals =