Пример #1
0
 def test_lb_edit(self):
     '''
     Test for edit the loadbalancer settings
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.lb_edit('loadbalancer1', {'vlr': 1,
                                                         'vlt': 60}))
Пример #2
0
def test_lb_edit():
    """
    Test for edit the loadbalancer settings
    """
    with patch.object(modjk,
                      "_do_http",
                      return_value={"worker.result.type": "OK"}):
        assert modjk.lb_edit("loadbalancer1", {"vlr": 1, "vlt": 60})
Пример #3
0
 def test_lb_edit(self):
     '''
     Test for edit the loadbalancer settings
     '''
     with patch.object(modjk, '_do_http', return_value=
                       {'worker.result.type': 'OK'}):
         self.assertTrue(modjk.lb_edit('loadbalancer1', {'vlr': 1,
                                                         'vlt': 60}))