Пример #1
0
 def test_wait_state_true(self):
     '''
     Test a successful wait for state
     '''
     self.assertTrue(haproxyconn.wait_state('test', 'server01'))
Пример #2
0
 def test_wait_state_false(self):
     """
     Test a failed wait for state, with a timeout of 0
     """
     self.assertFalse(haproxyconn.wait_state("test", "server02", "up", 0))
Пример #3
0
 def test_wait_state_false(self):
     '''
     Test a failed wait for state, with a timeout of 0
     '''
     self.assertFalse(haproxyconn.wait_state('test', 'server02', 'up', 0))
Пример #4
0
 def test_wait_state_true(self):
     """
     Test a successful wait for state
     """
     self.assertTrue(haproxyconn.wait_state("test", "server01"))