def test_create_instanceid_repeat(self):
     instance_id = self.instance_id
     InstanceGroupItem.create(self.context,self.tenant_id,instance_id,self.group_id,MASTER)
     self.assertRaises(InstanceIdRepeat,InstanceGroupItem.create,self.context,self.tenant_id,instance_id,self.group_id,MASTER)
 def _create(self,group_id,type):
     id = self.instance_id
     InstanceServiceStatus.create(status=ServiceStatuses.RUNNING,instance_id=id)
     return InstanceGroupItem.create(self.context,self.tenant_id,id,group_id,type)
예제 #3
0
 def _create(self,group_id,type):
     id = self.instance_id
     InstanceGroupItem.create(self.context,self.tenant_id,id,group_id,type)
     return id