mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-5674: Remove assigning accountname which was useless
This commit is contained in:
parent
f866bb21e6
commit
ef9471692d
@ -60,16 +60,13 @@ class TestDeployVmWithAffinityGroup(cloudstackTestCase):
|
||||
cls.services["account"],
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
|
||||
cls.services["account"] = cls.account.name
|
||||
|
||||
cls.service_offering = ServiceOffering.create(
|
||||
cls.apiclient,
|
||||
cls.services["service_offerings"]
|
||||
)
|
||||
|
||||
cls.ag = AffinityGroup.create(cls.apiclient, cls.services["virtual_machine"]["affinity"],
|
||||
account=cls.services["account"], domainid=cls.domain.id)
|
||||
account=cls.account.name, domainid=cls.domain.id)
|
||||
|
||||
cls._cleanup = [
|
||||
cls.service_offering,
|
||||
|
||||
@ -54,7 +54,6 @@ class TestDeployVmWithVariedPlanners(cloudstackTestCase):
|
||||
cls.services["account"],
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
cls.services["account"] = cls.account.name
|
||||
cls.hosts = Host.list(cls.apiclient, type='Routing')
|
||||
cls.clusters = Cluster.list(cls.apiclient)
|
||||
cls.cleanup = [
|
||||
|
||||
@ -163,7 +163,6 @@ class TestISO(cloudstackTestCase):
|
||||
cls.services["account"],
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
cls.services["account"] = cls.account.name
|
||||
# Finding the OsTypeId from Ostype
|
||||
ostypes = list_os_types(
|
||||
cls.apiclient,
|
||||
|
||||
@ -78,6 +78,4 @@ class TestPVLAN(cloudstackTestCase):
|
||||
createNetworkCmd.endipv6="fc00:1234::20"
|
||||
err = 0
|
||||
createNetworkResponse = self.apiClient.createNetwork(createNetworkCmd)
|
||||
#FIXME: add assert for proper response
|
||||
|
||||
|
||||
self.assertEqual(createNetworkResponse, FAILED, "Creating PVLAN with IPv6 should fail")
|
||||
|
||||
@ -55,9 +55,6 @@ class TestSnapshotRootDisk(cloudstackTestCase):
|
||||
cls.services["account"],
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
|
||||
cls.services["account"] = cls.account.name
|
||||
|
||||
cls.service_offering = ServiceOffering.create(
|
||||
cls.apiclient,
|
||||
cls.services["service_offerings"]
|
||||
|
||||
@ -88,8 +88,6 @@ class TestCreateTemplate(cloudstackTestCase):
|
||||
cls.services["account"],
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
cls.services["account"] = cls.account.name
|
||||
|
||||
cls.service_offering = ServiceOffering.create(
|
||||
cls.apiclient,
|
||||
cls.services["service_offerings"]
|
||||
@ -274,9 +272,6 @@ class TestTemplates(cloudstackTestCase):
|
||||
cls.services["account"],
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
|
||||
cls.services["account"] = cls.account.name
|
||||
|
||||
cls.service_offering = ServiceOffering.create(
|
||||
cls.apiclient,
|
||||
cls.services["service_offerings"]
|
||||
|
||||
@ -55,8 +55,6 @@ class TestVmSnapshot(cloudstackTestCase):
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
|
||||
cls.services["account"] = cls.account.name
|
||||
|
||||
cls.service_offering = ServiceOffering.create(
|
||||
cls.apiclient,
|
||||
cls.services["service_offerings"]
|
||||
|
||||
@ -74,8 +74,6 @@ class TestCreateVolume(cloudstackTestCase):
|
||||
cls.services["account"],
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
|
||||
cls.services["account"] = cls.account.name
|
||||
cls.service_offering = ServiceOffering.create(
|
||||
cls.apiclient,
|
||||
cls.services["service_offerings"]
|
||||
@ -193,7 +191,7 @@ class TestCreateVolume(cloudstackTestCase):
|
||||
reconnect=True
|
||||
)
|
||||
ret = checkVolumeSize(ssh_handle=ssh,size_to_verify=vol_sz)
|
||||
self.debug(" Volume Size Expected %s Actual :%s" %(vol_sz,ret[1]))
|
||||
self.debug(" Volume Size Expected %s Actual :%s" %(vol_sz,ret[1]))
|
||||
self.virtual_machine.detach_volume(self.apiClient, volume)
|
||||
self.assertEqual(ret[0],SUCCESS,"Check if promised disk size actually available")
|
||||
time.sleep(self.services["sleep"])
|
||||
@ -259,8 +257,6 @@ class TestVolumes(cloudstackTestCase):
|
||||
cls.services["account"],
|
||||
domainid=cls.domain.id
|
||||
)
|
||||
|
||||
cls.services["account"] = cls.account.name
|
||||
cls.service_offering = ServiceOffering.create(
|
||||
cls.apiclient,
|
||||
cls.services["service_offerings"]
|
||||
|
||||
@ -7,8 +7,8 @@ test_data = {
|
||||
"zone": "NA",
|
||||
"hypervisor": "XenServer",
|
||||
"vdomain": { "name": "domain" },
|
||||
"email" : "test@test.com",
|
||||
"gateway" : "172.1.1.1",
|
||||
"email" : "test@test.com",
|
||||
"gateway" : "172.1.1.1",
|
||||
"netmask" : "255.255.255.0",
|
||||
"startip" : "172.1.1.10",
|
||||
"endip" : "172.1.1.20",
|
||||
@ -382,8 +382,10 @@ test_data = {
|
||||
},
|
||||
"securitygroupenabled": "true"
|
||||
},
|
||||
"vlan_range": "4090-4091",
|
||||
"vlan":"4444",
|
||||
"portableiprange_vlan": {
|
||||
"part": ["4090-4091", "4092-4095"],
|
||||
"full": "4090-4095"
|
||||
},
|
||||
"nfs": {
|
||||
"url": "nfs://nfs/export/automation/1/testprimary",
|
||||
"name": "Primary XEN"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user