The reason of failed jenkins job in cluster-under-test will be shown in a test result
PROD-36050
Change-Id: I1160d46e99751f4e714c459e3d07110958c913e3
diff --git a/tcp_tests/tests/system/test_ceph_operations.py b/tcp_tests/tests/system/test_ceph_operations.py
index cfff2b5..30fdd8d 100644
--- a/tcp_tests/tests/system/test_ceph_operations.py
+++ b/tcp_tests/tests/system/test_ceph_operations.py
@@ -106,11 +106,11 @@
'HOST': 'xtra*',
'HOST_TYPE': 'osd'
}
- add_node_pipeline = dt.start_job_on_jenkins(
+ job_result, job_description = dt.start_job_on_jenkins(
job_name=job_name,
job_parameters=job_parameters,
verbose=True)
- assert add_node_pipeline == 'SUCCESS'
+ assert job_result == 'SUCCESS', job_description
def test_added_node(self):
# root@osd001:~# ceph osd tree in
@@ -142,11 +142,11 @@
'HOST': 'xtra*',
'HOST_TYPE': 'osd'
}
- remove_node_pipeline = dt.start_job_on_jenkins(
+ job_result, job_description = dt.start_job_on_jenkins(
job_name=job_name,
job_parameters=job_parameters,
verbose=True)
- assert remove_node_pipeline == 'SUCCESS'
+ assert job_result == 'SUCCESS', job_description
class TestCephMon(object):