mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
ceph-volume tests.batch replace testinfra command for py.test
Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
parent
a277b5c1fe
commit
dc7501af69
@ -53,19 +53,19 @@ commands=
|
|||||||
ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/setup.yml
|
ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/setup.yml
|
||||||
|
|
||||||
# test cluster state using testinfra
|
# test cluster state using testinfra
|
||||||
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/../tests
|
py.test -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/../tests
|
||||||
|
|
||||||
# reboot all vms - attempt
|
# reboot all vms - attempt
|
||||||
bash {toxinidir}/../scripts/vagrant_reload.sh {env:VAGRANT_UP_FLAGS:"--no-provision"} {posargs:--provider=virtualbox}
|
bash {toxinidir}/../scripts/vagrant_reload.sh {env:VAGRANT_UP_FLAGS:"--no-provision"} {posargs:--provider=virtualbox}
|
||||||
|
|
||||||
# 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
|
py.test -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/../tests
|
||||||
|
|
||||||
# destroy an OSD, zap it's device and recreate it using it's ID
|
# destroy an OSD, zap it's device and recreate it using it's ID
|
||||||
ansible-playbook -vv -i {changedir}/hosts {changedir}/test.yml
|
ansible-playbook -vv -i {changedir}/hosts {changedir}/test.yml
|
||||||
|
|
||||||
# retest to ensure cluster came back up correctly
|
# retest to ensure cluster came back up correctly
|
||||||
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/../tests
|
py.test -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/../tests
|
||||||
|
|
||||||
# test zap OSDs by ID
|
# test zap OSDs by ID
|
||||||
ansible-playbook -vv -i {changedir}/hosts {changedir}/test_zap.yml
|
ansible-playbook -vv -i {changedir}/hosts {changedir}/test_zap.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user