fix e2e
This commit is contained in:
parent
63fbab20af
commit
e3cd945cdb
|
|
@ -634,9 +634,11 @@ class EndToEndTestCase(unittest.TestCase):
|
|||
|
||||
pods = k8s.list_pods(labels)
|
||||
for pod in pods:
|
||||
pgdata = [v for v in pod.spec.volumes if v.name == 'pgdata'][0]
|
||||
pvc = pgdata.persistent_volume_claim
|
||||
self.assertTrue(k8s.pvc_exist(pvc.claim_name))
|
||||
pgdata = [v for v in pod.spec.volumes if v.name == 'pgdata']
|
||||
self.assertTrue(len(pgdata) > 0, "No pgdata volumes found")
|
||||
if len(pgdata) > 0:
|
||||
pvc = pgdata[0].persistent_volume_claim
|
||||
self.assertTrue(k8s.pvc_exist(pvc.claim_name), "PVC does not exist")
|
||||
|
||||
|
||||
class K8sApi:
|
||||
|
|
|
|||
Loading…
Reference in New Issue