e2e: wait for pods after disabling anti affinity
This commit is contained in:
		
							parent
							
								
									ae2a38d62a
								
							
						
					
					
						commit
						8ae2c16dd7
					
				|  | @ -441,13 +441,15 @@ class EndToEndTestCase(unittest.TestCase): | ||||||
|         self.assert_failover( |         self.assert_failover( | ||||||
|             master_node, len(replica_nodes), failover_targets, cluster_label) |             master_node, len(replica_nodes), failover_targets, cluster_label) | ||||||
| 
 | 
 | ||||||
|         # disable pod anti affintiy again |         # now disable pod anti affintiy again which will cause yet another failover | ||||||
|         patch_disable_antiaffinity = { |         patch_disable_antiaffinity = { | ||||||
|             "data": { |             "data": { | ||||||
|                 "enable_pod_antiaffinity": "false" |                 "enable_pod_antiaffinity": "false" | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         k8s.update_config(patch_disable_antiaffinity) |         k8s.update_config(patch_disable_antiaffinity) | ||||||
|  |         k8s.wait_for_pod_start('spilo-role=master') | ||||||
|  |         k8s.wait_for_pod_start('spilo-role=replica') | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class K8sApi: | class K8sApi: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue