mirror of https://github.com/apache/cloudstack.git
Fixed issues in regression suite project cpu limits
Signed-off-by: Abhinandan Prateek <aprateek@apache.org>
This commit is contained in:
parent
7dc0fca2e9
commit
c3c8096476
|
|
@ -172,7 +172,8 @@ class TestProjectsCPULimits(cloudstackTestCase):
|
|||
projectid=project.id,
|
||||
networkids=networks,
|
||||
serviceofferingid=service_off.id)
|
||||
vms = VirtualMachine.list(api_client, id=self.vm.id, listall=True)
|
||||
vms = VirtualMachine.list(api_client, projectid=project.id,
|
||||
id=self.vm.id, listall=True)
|
||||
self.assertIsInstance(vms,
|
||||
list,
|
||||
"List VMs should return a valid response")
|
||||
|
|
|
|||
|
|
@ -578,7 +578,11 @@ class VirtualMachine:
|
|||
|
||||
while timeout>0:
|
||||
try:
|
||||
vms = VirtualMachine.list(apiclient, id=self.id, listAll=True)
|
||||
projectid = None
|
||||
if hasattr(self, "projectid"):
|
||||
projectid = self.projectid
|
||||
vms = VirtualMachine.list(apiclient, projectid=projectid,
|
||||
id=self.id, listAll=True)
|
||||
validationresult = validateList(vms)
|
||||
if validationresult[0] == FAIL:
|
||||
raise Exception("VM list validation failed: %s" % validationresult[2])
|
||||
|
|
|
|||
Loading…
Reference in New Issue