Ejemplo n.º 1
0
 def test_create_delete_vip(self):
     pool_id = self.pool_id
     vport = 3306
     connection_limit = 1000
     vip,vip_id = instance_vip.create_vip(self.context, pool_id, vport, connection_limit)
     print vip,vip_id
     self.assertTrue(vip)
     instance_vip.delete_vip(self.context, vip_id)
Ejemplo n.º 2
0
 def tearDown(self):
     super(RemoteVipCreateMemberTest, self).tearDown()
     
     instance_vip.delete_vip(self.context, self.vip_id)
     instance_vip.delete_pool(self.context, self.pool_id)
Ejemplo n.º 3
0
 def tearDown(self):
     super(RemoteVipQueryTest, self).tearDown()
     instance_vip.delete_member(self.context, self.member_id)
     instance_vip.delete_vip(self.context, self.vip_id)
     instance_vip.delete_pool(self.context, self.pool_id)