summaryrefslogtreecommitdiffstats
path: root/tests/functional/provisioning
diff options
context:
space:
mode:
authorcrombus <pkundra@redhat.com>2019-06-24 17:22:02 +0530
committercrombus <pkundra@redhat.com>2019-07-22 12:39:18 +0530
commit328c0104e1cf676b37dedbec837441ad0e1bc9e2 (patch)
tree2039ff7d067208b1ebc32a2f2bf015e0b5923088 /tests/functional/provisioning
parent68c24931b4c43c374c8a0230e5700a8f3aa56be7 (diff)
Fix test case for create and verify pvc with volname prefix
Add steps to verify endpoints Change-Id: Ibf09e8f0e2cefb0d45755225c051f2a11fe43860
Diffstat (limited to 'tests/functional/provisioning')
-rw-r--r--tests/functional/provisioning/test_storage_class_cases.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functional/provisioning/test_storage_class_cases.py b/tests/functional/provisioning/test_storage_class_cases.py
index ff78215d..52b9d82a 100644
--- a/tests/functional/provisioning/test_storage_class_cases.py
+++ b/tests/functional/provisioning/test_storage_class_cases.py
@@ -295,3 +295,11 @@ class TestStorageClassCases(BaseClass):
self.sc.get("volumenameprefix", "autotest"),
namespace, pvc_name, self.heketi_server_url)
self.create_dc_with_pvc(pvc_name)
+ pv_name = get_pv_name_from_pvc(self.ocp_master_node[0], pvc_name)
+ endpoint = oc_get_custom_resource(
+ self.ocp_master_node[0], "pv", ":spec.glusterfs.endpoints",
+ name=pv_name)
+ self.assertTrue(
+ endpoint,
+ "Failed to read Endpoints of %s on %s " % (
+ pv_name, self.ocp_master_node[0]))