Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/integration/component/maint/test_bugs.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def setUpClass(cls):
# Creating Disk offering, Service Offering and Account
cls.service_offering = ServiceOffering.create(
cls.apiClient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)
cls.account = Account.create(
cls.api_client,
Expand Down
4 changes: 2 additions & 2 deletions test/integration/component/maint/test_multiple_ip_ranges.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def setUpClass(cls):
if cls.vr_state is False:
cls.vm_res = VirtualMachine.create(
cls.api_client,
cls.testdata["server_without_disk"],
cls.testdata["small"],
templateid=cls.template.id,
accountid=cls.account.name,
domainid=cls.testdata["domainid"],
Expand Down Expand Up @@ -181,7 +181,7 @@ def setUp(self):
try:
self.virtual_machine = VirtualMachine.create(
self.apiclient,
self.testdata["server_without_disk"],
self.testdata["small"],
templateid=self.template.id,
accountid=self.account.name,
domainid=self.testdata["domainid"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ def storage_check(self, type, value):

def create_system_so(self, offering_type, storage_type):
"""Create system offerings """
self.testdata["service_offerings"]["issystem"] = "true"
self.testdata["service_offerings"]["systemvmtype"] = offering_type
self.testdata["service_offerings"]["storagetype"] = storage_type
self.testdata["service_offerings"]["tiny"]["issystem"] = "true"
self.testdata["service_offerings"]["tiny"]["systemvmtype"] = offering_type
self.testdata["service_offerings"]["tiny"]["storagetype"] = storage_type

service_offering = ServiceOffering.create(
self.apiclient,
self.testdata["service_offerings"]
self.testdata["service_offerings"]["tiny"]
)

if service_offering is None:
Expand All @@ -136,32 +136,32 @@ def create_system_so(self, offering_type, storage_type):

self.assertEqual(
list_service_response[0].cpunumber,
self.testdata["service_offerings"]["cpunumber"],
self.testdata["service_offerings"]["tiny"]["cpunumber"],
"Check server id in createServiceOffering"
)
self.assertEqual(
list_service_response[0].cpuspeed,
self.testdata["service_offerings"]["cpuspeed"],
self.testdata["service_offerings"]["tiny"]["cpuspeed"],
"Check cpuspeed in createServiceOffering"
)
self.assertEqual(
list_service_response[0].displaytext,
self.testdata["service_offerings"]["displaytext"],
self.testdata["service_offerings"]["tiny"]["displaytext"],
"Check server displaytext in createServiceOfferings"
)
self.assertEqual(
list_service_response[0].memory,
self.testdata["service_offerings"]["memory"],
self.testdata["service_offerings"]["tiny"]["memory"],
"Check memory in createServiceOffering"
)
self.assertEqual(
list_service_response[0].name,
self.testdata["service_offerings"]["name"],
self.testdata["service_offerings"]["tiny"]["name"],
"Check name in createServiceOffering"
)
self.assertEqual(
list_service_response[0].storagetype,
self.testdata["service_offerings"]["storagetype"],
self.testdata["service_offerings"]["tiny"]["storagetype"],
"Check storagetype in createServiceOffering"
)
self._cleanup.append(service_offering)
Expand Down
20 changes: 10 additions & 10 deletions test/integration/component/maint/testpath_disablestoragepool.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ def setUpClass(cls):

# Create offerings for local storage if local storage is enabled
if cls.zone.localstorageenabled:
cls.testdata["service_offerings"]["storagetype"] = 'local'
cls.testdata["service_offerings"]["tiny"]["storagetype"] = 'local'
cls.service_offering_local = ServiceOffering.create(cls.apiclient,
cls.testdata["service_offerings"]
cls.testdata["service_offerings"]["tiny"]
)
cls._cleanup.append(cls.service_offering_local)
cls.testdata["disk_offering"]["storagetype"] = 'local'
Expand All @@ -127,7 +127,7 @@ def setUpClass(cls):
)
cls._cleanup.append(cls.disk_offering_local)
cls.testdata["disk_offering"]["storagetype"] = ' '
cls.testdata["service_offerings"]["storagetype"] = ' '
cls.testdata["service_offerings"]["tiny"]["storagetype"] = ' '
else:
cls.debug("No local storage found")

Expand Down Expand Up @@ -730,10 +730,10 @@ def setUpClass(cls):

# Create offerings for local storage if local storage is enabled
if cls.zone.localstorageenabled:
cls.testdata["service_offerings"]["storagetype"] = 'local'
cls.testdata["service_offerings"]["tiny"]["storagetype"] = 'local'
cls.debug("Creating local storage offering")
cls.service_offering_local = ServiceOffering.create(cls.apiclient,
cls.testdata["service_offerings"]
cls.testdata["service_offerings"]["tiny"]
)
cls._cleanup.append(cls.service_offering_local)
cls.testdata["disk_offering"]["storagetype"] = 'local'
Expand All @@ -743,7 +743,7 @@ def setUpClass(cls):
)
cls._cleanup.append(cls.disk_offering_local)
cls.testdata["disk_offering"]["storagetype"] = ' '
cls.testdata["service_offerings"]["storagetype"] = ' '
cls.testdata["service_offerings"]["tiny"]["storagetype"] = ' '
else:
cls.debug("No local storage found")

Expand Down Expand Up @@ -939,11 +939,11 @@ def test_01_maint_capacity_tags(self, value):
StoragePool.update(self.userapiclient, id=storage_id, tags='disable_prov')

# Step 7: Add tagged service offering
self.testdata['service_offerings']['tags'] = 'disable_prov'
self.testdata["service_offerings"]["storagetype"] = 'local'
self.testdata['service_offerings']['tiny']['tags'] = 'disable_prov'
self.testdata["service_offerings"]["tiny"]["storagetype"] = 'local'
self.tagged_so = ServiceOffering.create(self.userapiclient, self.testdata['service_offerings'])
self.testdata['service_offerings']['tags'] = ' '
self.testdata["service_offerings"]["storagetype"] = ' '
self.testdata['service_offerings']['tiny']['tags'] = ' '
self.testdata["service_offerings"]["tiny"]["storagetype"] = ' '
self.cleanup.append(self.tagged_so)

# Step 8: Enable the pool
Expand Down
21 changes: 10 additions & 11 deletions test/integration/component/test_interop_xd_ccp.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
get_template,
get_pod,
list_hosts,
get_windows_template
get_windows_template,
list_virtual_machines
)

from marvin.codes import FAILED, PASS
Expand All @@ -58,6 +59,7 @@
import time
import random
import string
import unittest

_multiprocess_shared_ = True
class TestXDCCPInterop(cloudstackTestCase):
Expand Down Expand Up @@ -168,9 +170,6 @@ def setUpClass(cls):
cls.services["small"]["zoneid"] = cls.zone.id
cls.services["small"]["template"] = cls.template.id

cls.services["medium"]["zoneid"] = cls.zone.id
cls.services["medium"]["template"] = cls.template.id

user_data = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(2500))
cls.services["virtual_machine"]["userdata"] = user_data

Expand All @@ -180,7 +179,7 @@ def setUpClass(cls):

cls.virtual_machine = VirtualMachine.create(
cls.apiclient,
cls.services["medium"],
cls.services["small"],
accountid=cls.account.name,
domainid=cls.account.domainid,
serviceofferingid=cls.service_offering.id,
Expand Down Expand Up @@ -727,7 +726,7 @@ def test_14_restore_stopped_vm(self):
)
restorevm = VirtualMachine.create(
self.user_api_client,
self.services["medium"],
self.services["small"],
accountid=self.account.name,
domainid=self.account.domainid,
serviceofferingid=self.service_offering.id,
Expand Down Expand Up @@ -862,7 +861,7 @@ def test_15_restore_vm_with_template_id(self):

restorevm = VirtualMachine.create(
self.user_api_client,
self.services["medium"],
self.services["small"],
networkids=vm1network.id,
accountid=self.account.name,
domainid=self.account.domainid,
Expand Down Expand Up @@ -974,7 +973,7 @@ def test_16_create_template_volume(self):

templatevm = VirtualMachine.create(
self.user_api_client,
self.services["medium"],
self.services["small"],
templateid=self.template.id,
accountid=self.account.name,
domainid=self.account.domainid,
Expand Down Expand Up @@ -1089,7 +1088,7 @@ def test_16_create_template_volume(self):

templatevm = VirtualMachine.create(
self.user_api_client,
self.services["medium"],
self.services["small"],
templateid=roottemplate.id,
networkids=vm3network.id,
serviceofferingid=self.service_offering.id,
Expand Down Expand Up @@ -1227,8 +1226,8 @@ def test_19_template_tag(self):

vm_1 = VirtualMachine.create(
self.user_api_client,
self.services["medium"],
templateid=template.id,
self.services["small"],
templateid=self.template.id,
networkids=vm4network.id,
serviceofferingid=self.service_offering.id,
accountid=self.account.name,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/smoke/test_affinity_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def setUpClass(cls):
)
cls.service_offering = ServiceOffering.create(
cls.apiclient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)

cls.ag = AffinityGroup.create(cls.apiclient, cls.services["virtual_machine"]["affinity"],
Expand Down
8 changes: 3 additions & 5 deletions test/integration/smoke/test_deploy_vgpu_enabled_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,9 @@ def setUp(self):
domainid=self.domain.id
)

self.testdata["vgpu260q"]["zoneid"] = self.zone.id
self.testdata["vgpu260q"]["template"] = self.template.id
self.testdata["small"]["zoneid"] = self.zone.id
self.testdata["small"]["template"] = self.template.id

self.testdata["vgpu140q"]["zoneid"] = self.zone.id
self.testdata["vgpu140q"]["template"] = self.template.id
self.testdata["service_offerings"]["vgpu260qwin"]["serviceofferingdetails"] = [
{
'pciDevice': 'Group of NVIDIA Corporation GK107GL [GRID K1] GPUs'}, {
Expand All @@ -156,7 +154,7 @@ def test_deploy_vgpu_enabled_vm(self):
"""
self.virtual_machine = VirtualMachine.create(
self.apiclient,
self.testdata["vgpu260q"],
self.testdata["small"],
accountid=self.account.name,
domainid=self.account.domainid,
serviceofferingid=self.service_offering.id,
Expand Down
4 changes: 2 additions & 2 deletions test/integration/smoke/test_deploy_vm_with_userdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def setUpClass(cls):
cls.zone = get_zone(cls.apiClient, testClient.getZoneForTests())
if cls.zone.localstorageenabled:
#For devcloud since localstroage is enabled
cls.services["service_offerings"]["storagetype"] = "local"
cls.services["service_offerings"]["tiny"]["storagetype"] = "local"
cls.service_offering = ServiceOffering.create(
cls.apiClient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)
cls.account = Account.create(cls.apiClient, services=cls.services["account"])
cls.cleanup = [cls.account]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_deployvm_firstfit(self):
#FIXME: How do we know that first fit actually happened?
self.service_offering_firstfit = ServiceOffering.create(
self.apiclient,
self.services["service_offerings"],
self.services["service_offerings"]["tiny"],
deploymentplanner='FirstFitPlanner'
)

Expand Down Expand Up @@ -110,7 +110,7 @@ def test_deployvm_userdispersing(self):
"""
self.service_offering_userdispersing = ServiceOffering.create(
self.apiclient,
self.services["service_offerings"],
self.services["service_offerings"]["tiny"],
deploymentplanner='UserDispersingPlanner'
)

Expand Down Expand Up @@ -169,7 +169,7 @@ def test_deployvm_userconcentrated(self):
"""
self.service_offering_userconcentrated = ServiceOffering.create(
self.apiclient,
self.services["service_offerings"],
self.services["service_offerings"]["tiny"],
deploymentplanner='UserConcentratedPodPlanner'
)

Expand Down
2 changes: 1 addition & 1 deletion test/integration/smoke/test_internal_lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def setUpClass(cls):
cls.domain = get_domain(cls.apiclient)
cls.service_offering = ServiceOffering.create(
cls.apiclient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)
cls.account = Account.create(cls.apiclient, services=cls.services["account"])
cls.template = get_template(
Expand Down
2 changes: 1 addition & 1 deletion test/integration/smoke/test_loadbalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def setUpClass(cls):
)
cls.service_offering = ServiceOffering.create(
cls.apiclient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)
cls.vm_1 = VirtualMachine.create(
cls.apiclient,
Expand Down
10 changes: 5 additions & 5 deletions test/integration/smoke/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def setUpClass(cls):
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
cls.service_offering = ServiceOffering.create(
cls.apiclient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)
cls.virtual_machine = VirtualMachine.create(
cls.apiclient,
Expand Down Expand Up @@ -596,7 +596,7 @@ def setUp(self):
)
self.service_offering = ServiceOffering.create(
self.apiclient,
self.services["service_offerings"]
self.services["service_offerings"]["tiny"]
)
self.vm_1 = VirtualMachine.create(
self.apiclient,
Expand Down Expand Up @@ -765,7 +765,7 @@ def setUp(self):

self.service_offering = ServiceOffering.create(
self.apiclient,
self.services["service_offerings"]
self.services["service_offerings"]["tiny"]
)

self.virtual_machine = VirtualMachine.create(
Expand Down Expand Up @@ -905,7 +905,7 @@ def setUp(self):
)
self.service_offering = ServiceOffering.create(
self.apiclient,
self.services["service_offerings"]
self.services["service_offerings"]["tiny"]
)
self.vm_1 = VirtualMachine.create(
self.apiclient,
Expand Down Expand Up @@ -1050,7 +1050,7 @@ def setUpClass(cls):
cls.services["virtual_machine"]["zoneid"] = cls.zone.id
cls.service_offering = ServiceOffering.create(
cls.apiclient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)
cls.virtual_machine = VirtualMachine.create(
cls.apiclient,
Expand Down
2 changes: 1 addition & 1 deletion test/integration/smoke/test_network_acl.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def setUpClass(cls):
cls.domain = get_domain(cls.apiclient)
cls.service_offering = ServiceOffering.create(
cls.apiclient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)
cls.account = Account.create(cls.apiclient, services=cls.services["account"])
cls.template = get_template(
Expand Down
2 changes: 1 addition & 1 deletion test/integration/smoke/test_routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def setUpClass(cls):
)
cls.service_offering = ServiceOffering.create(
cls.apiclient,
cls.services["service_offerings"]
cls.services["service_offerings"]["tiny"]
)
cls.vm_1 = VirtualMachine.create(
cls.apiclient,
Expand Down
Loading