use contains str instead equals

This commit is contained in:
Felix Kunde 2020-04-17 09:32:43 +02:00
parent 6f631c0a83
commit 126476c66d
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ 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']
pgdata = [v for v in pod.spec.volumes if 'pgdata' in v.name]
self.assertTrue(len(pgdata) > 0, "No pgdata volumes found")
if len(pgdata) > 0:
pvc = pgdata[0].persistent_volume_claim