Exemplo n.º 1
0
 def delete(self, req, tenant_id, lb_id, probe_id):
     LOG.debug("Got deleteProbe request. Request: %s", req)
     core_api.lb_delete_probe(self.conf, tenant_id, lb_id, probe_id)
Exemplo n.º 2
0
 def test_lb_delete_probe(self, *mocks):
     api.lb_delete_probe(self.conf, self.lb_id, self.lb_id)
     for mok in mocks:
         self.assertTrue(mok.called)
 def test_lb_delete_probe(self, *mocks):
     mocks[5].return_value = self.dict_list
     api.lb_delete_probe(self.conf, self.lb_id, self.lb_id)
     for mok in mocks:
         self.assertTrue(mok.called)
Exemplo n.º 4
0
 def deleteProbe(self, req, **args):
     logger.debug("Got deleteProbe request. Request: %s", req)
     probe_id = core_api.lb_delete_probe(self.conf, args['id'],
                                                    args['probeID'])
     return "Deleted probe with id %s" % probe_id
Exemplo n.º 5
0
 def deleteProbe(self, req, lb_id, id):
     logger.debug("Got deleteProbe request. Request: %s", req)
     core_api.lb_delete_probe(self.conf, lb_id, id)