예제 #1
0
파일: test_modjk.py 프로젝트: cldeluna/salt
 def test_worker_disable(self):
     '''
     Test for set the worker to disable state in the lbn load balancer
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.worker_disable('node1', 'loadbalancer1'))
예제 #2
0
파일: modjk_test.py 프로젝트: DaveQB/salt
 def test_worker_disable(self):
     '''
     Test for set the worker to disable state in the lbn load balancer
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.worker_disable('node1', 'loadbalancer1'))
예제 #3
0
def test_worker_disable():
    """
    Test for set the worker to disable state in the lbn load balancer
    """
    with patch.object(modjk,
                      "_do_http",
                      return_value={"worker.result.type": "OK"}):
        assert modjk.worker_disable("node1", "loadbalancer1")