def setUp(self):
     super(RemoteVipCreateMemberTest, self).setUp()
     self.context = _fake_context()
     
     self.pool_id = instance_vip.create_pool(self.context,"private")
     vport = 3306
     connection_limit = 1000
     self.vip,self.vip_id = instance_vip.create_vip(self.context, self.pool_id, vport, connection_limit)
 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)
 def setUp(self):
     super(RemoteVipQueryTest, self).setUp()
     self.context = _fake_context()
     
     self.pool_id = instance_vip.create_pool(self.context,"private")
     vport = 3306
     connection_limit = 1000
     self.vip,self.vip_id = instance_vip.create_vip(self.context, self.pool_id, vport, connection_limit)
     
     real_ip = "192.168.16.22"
     vip_id = self.vip_id
     port = 3306
     weight = 1
     self.member_id = instance_vip.create_member(self.context, real_ip, vip_id, port, weight)