add testinfro to ceph test
Change-Id: Idbbf2e1ea0c622b7c84627b442d6caeefd2f0682
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 5be3072..64862ed 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -417,18 +417,9 @@
if (common.checkContains('STACK_TEST', 'ceph')) {
- stage('Check Ceph health') {
- def commands = [
- 'ceph health',
- 'ceph status',
- 'ceph osd tree',
- 'ceph df',
- 'ceph osd pool ls',
- 'ceph auth list'
- ]
- for (cmd in commands) {
- salt.cmdRun(saltMaster, 'I@ceph:mon', cmd)
- }
+ stage('Run infra tests') {
+ def cmd = "apt-get install python-pip && pip install -r /usr/share/salt-formulas/ceph/files/testinfra/requirements.txt && python -m pytest --junitxml=testinfra.xml /usr/share/salt-formulas/ceph/files/testinfra/"
+ salt.cmdRun(saltMaster, 'I@ceph:mon', cmd)
}
}