minor change to restart test
This commit is contained in:
		
							parent
							
								
									dfbc5f2546
								
							
						
					
					
						commit
						53c71a2264
					
				| 
						 | 
				
			
			@ -314,6 +314,8 @@ class EndToEndTestCase(unittest.TestCase):
 | 
			
		|||
                 }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
            k8s.api.custom_objects_api.patch_namespaced_custom_object(
 | 
			
		||||
                "acid.zalan.do", "v1", "default", "postgresqls", "acid-minimal-cluster", pg_patch_max_connections)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -337,6 +339,15 @@ class EndToEndTestCase(unittest.TestCase):
 | 
			
		|||
            self.assertEqual(creationTimestamp, masterPod.metadata.creation_timestamp,
 | 
			
		||||
                            "Master pod creation timestamp is updated")
 | 
			
		||||
 | 
			
		||||
        except timeout_decorator.TimeoutError:
 | 
			
		||||
            print('Operator log: {}'.format(k8s.get_operator_log()))
 | 
			
		||||
            raise
 | 
			
		||||
 | 
			
		||||
        # make sure cluster is in a good state for further tests
 | 
			
		||||
        self.eventuallyEqual(lambda: k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync")
 | 
			
		||||
        self.eventuallyEqual(lambda: k8s.count_running_pods(), 2,
 | 
			
		||||
                             "No 2 pods running")
 | 
			
		||||
 | 
			
		||||
    @timeout_decorator.timeout(TEST_TIMEOUT_SEC)
 | 
			
		||||
    def test_enable_disable_connection_pooler(self):
 | 
			
		||||
        '''
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue