Exemplo n.º 1
0
 def test_worker_activate(self):
     '''
     Test for set the worker to activate state in the lbn load balancer
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.worker_activate('node1', 'loadbalancer1'))
Exemplo n.º 2
0
 def test_worker_activate(self):
     '''
     Test for set the worker to activate state in the lbn load balancer
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.worker_activate('node1', 'loadbalancer1'))
Exemplo n.º 3
0
def test_worker_activate():
    """
    Test for set the worker to activate state in the lbn load balancer
    """
    with patch.object(modjk,
                      "_do_http",
                      return_value={"worker.result.type": "OK"}):
        assert modjk.worker_activate("node1", "loadbalancer1")