mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-3586: Fixed regression test cases for Affinity Groups
Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
9f9510be91
commit
234db0561f
@ -1078,7 +1078,7 @@ class TestDeployVMAffinityGroups(cloudstackTestCase):
|
||||
templateid=self.template.id,
|
||||
serviceofferingid=self.service_offering.id,
|
||||
affinitygroupnames=ag_list,
|
||||
affinitygroupids=ag_ids
|
||||
affinitygroupids=ag_ids
|
||||
)
|
||||
self.debug('Created VM=%s in Affinity Group=%s' %
|
||||
(vm.id, ag_list))
|
||||
@ -1114,7 +1114,7 @@ class TestDeployVMAffinityGroups(cloudstackTestCase):
|
||||
"""
|
||||
|
||||
self.create_aff_grp(aff_grp=self.services["host_anti_affinity_0"])
|
||||
vm1, hostid1 = self.create_vm_in_aff_grps([self.aff_grp[0].name])
|
||||
vm1, hostid1 = self.create_vm_in_aff_grps(ag_list=[self.aff_grp[0].name])
|
||||
|
||||
vm1.delete(self.api_client)
|
||||
wait_for_cleanup(self.apiclient, ["expunge.delay", "expunge.interval"])
|
||||
|
||||
@ -237,7 +237,7 @@ class VirtualMachine:
|
||||
def create(cls, apiclient, services, templateid=None, accountid=None,
|
||||
domainid=None, zoneid=None, networkids=None, serviceofferingid=None,
|
||||
securitygroupids=None, projectid=None, startvm=None,
|
||||
diskofferingid=None, affinitygroupnames=None, group=None,
|
||||
diskofferingid=None, affinitygroupnames=None, affinitygroupids=None, group=None,
|
||||
hostid=None, keypair=None, mode='basic', method='GET'):
|
||||
"""Create the instance"""
|
||||
|
||||
@ -299,6 +299,9 @@ class VirtualMachine:
|
||||
elif affinitygroupnames:
|
||||
cmd.affinitygroupnames = affinitygroupnames
|
||||
|
||||
if affinitygroupids:
|
||||
cmd.affinitygroupids = affinitygroupids
|
||||
|
||||
if projectid:
|
||||
cmd.projectid = projectid
|
||||
|
||||
@ -2988,7 +2991,7 @@ class AffinityGroup:
|
||||
if name is not None:
|
||||
cmd.name = name
|
||||
if account is not None:
|
||||
cmd.account = account
|
||||
cmd.accountname = account
|
||||
if domainid is not None:
|
||||
cmd.domaindid = domainid
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user