summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradityaramteke <adityaramteke05icr@gmail.com>2020-09-18 13:48:46 +0530
committerVaibhav Mahajan <vamahaja@redhat.com>2020-09-23 07:31:30 +0000
commitcc8515f943e93f278714bab026c524649adf6e20 (patch)
tree3d9ae7742acee49239a1e5a3bc07770bc64d49af
parente907e93887a1cb05d1b0895e36ee8e0806bcc08f (diff)
[TestFix] Add assert to validate ls output for lvm script
Change-Id: Iaf6123626d3fc57ea6bbf1388764944dc7049e8e Signed-off-by: Aditya Ramteke <aramteke@redhat.com>
-rw-r--r--tests/functional/heketi/test_heketi_lvm_wrapper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functional/heketi/test_heketi_lvm_wrapper.py b/tests/functional/heketi/test_heketi_lvm_wrapper.py
index 7a6fbae..6468c1b 100644
--- a/tests/functional/heketi/test_heketi_lvm_wrapper.py
+++ b/tests/functional/heketi/test_heketi_lvm_wrapper.py
@@ -43,11 +43,12 @@ class TestHeketiLvmWrapper(baseclass.BaseClass):
# Check script /usr/sbin/exec-on-host is present in pod
if self.is_containerized_gluster():
cmd = "ls -lrt {}".format(ENV_VALUE)
- ret, _, err = openshift_ops.oc_rsh(
+ ret, out, err = openshift_ops.oc_rsh(
self.oc_node, self.pod_name[0]['pod_name'], cmd)
self.assertFalse(
ret, "failed to execute command {} on pod {} with error:"
" {}".format(cmd, self.pod_name[0]['pod_name'], err))
+ self.assertIn(ENV_VALUE, out)
# Get a value associated with HEKETI_LVM_WRAPPER
custom = (r'":spec.containers[*].env[?(@.name==\"{}\")]'