another try
This commit is contained in:
		
							parent
							
								
									8282933794
								
							
						
					
					
						commit
						22473cd537
					
				|  | @ -627,11 +627,11 @@ class EndToEndTestCase(unittest.TestCase): | ||||||
| 
 | 
 | ||||||
|         pods = k8s.list_pods(labels) |         pods = k8s.list_pods(labels) | ||||||
|         for pod in pods: |         for pod in pods: | ||||||
|             pgdata = [v for v in pod.spec.volumes if 'pgdata' in v.name] |             if pod.metadata.labels.get('spilo-role') in ['master', 'replica']: | ||||||
|             self.assertTrue(len(pgdata) > 0, "No pgdata volumes found") |                 pgdata = [v for v in pod.spec.volumes if 'pgdata' in v.name] | ||||||
|             if len(pgdata) > 0: |                 if len(pgdata) > 0: | ||||||
|                 pvc = pgdata[0].persistent_volume_claim |                     pvc = pgdata[0].persistent_volume_claim | ||||||
|                 self.assertTrue(k8s.pvc_exist(pvc.claim_name), "PVC does not exist") |                     self.assertTrue(k8s.pvc_exist(pvc.claim_name), "PVC does not exist") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class K8sApi: | class K8sApi: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue