diff --git a/test/integration/component/test_ip_reservation.py b/test/integration/component/test_ip_reservation.py index 7a82076f53d..ed2cb787352 100644 --- a/test/integration/component/test_ip_reservation.py +++ b/test/integration/component/test_ip_reservation.py @@ -84,7 +84,7 @@ class TestIpReservation(cloudstackTestCase): cls.api_client = cls.testClient.getApiClient() # Fill services from the external config file - cls.services = cls.testClient.getParsedTestDataConfig() + cls.testData = cls.testClient.getParsedTestDataConfig() # Get Zone, Domain and templates cls.domain = get_domain(cls.api_client) @@ -532,7 +532,7 @@ class TestRestartNetwork(cloudstackTestCase): cls.api_client = cls.testClient.getApiClient() # Fill services from the external config file - cls.services = cls.testClient.getParsedTestDataConfig() + cls.testData = cls.testClient.getParsedTestDataConfig() # Get Zone, Domain and templates cls.domain = get_domain(cls.api_client) @@ -657,7 +657,7 @@ class TestUpdateIPReservation(cloudstackTestCase): cls.api_client = cls.testClient.getApiClient() # Fill services from the external config file - cls.services = cls.testClient.getParsedTestDataConfig() + cls.testData = cls.testClient.getParsedTestDataConfig() # Get Zone, Domain and templates cls.domain = get_domain(cls.api_client) @@ -807,7 +807,7 @@ class TestRouterOperations(cloudstackTestCase): cls.api_client = cls.testClient.getApiClient() # Fill services from the external config file - cls.services = cls.testClient.getParsedTestDataConfig() + cls.testData = cls.testClient.getParsedTestDataConfig() # Get Zone, Domain and templates cls.domain = get_domain(cls.api_client) @@ -977,7 +977,7 @@ class TestFailureScnarios(cloudstackTestCase): cls.api_client = cls.testClient.getApiClient() # Fill services from the external config file - cls.services = cls.testClient.getParsedTestDataConfig() + cls.testData = cls.testClient.getParsedTestDataConfig() # Get Zone, Domain and templates cls.domain = get_domain(cls.api_client) diff --git a/test/integration/component/test_persistent_networks.py b/test/integration/component/test_persistent_networks.py index b5b4bd4e244..deb0d6e6014 100644 --- a/test/integration/component/test_persistent_networks.py +++ b/test/integration/component/test_persistent_networks.py @@ -57,7 +57,7 @@ class TestPersistentNetworks(cloudstackTestCase): cls.services["virtual_machine"]["template"] = cls.template.id cls.service_offering = ServiceOffering.create( cls.api_client, - cls.services["service_offerings"]["small"] + cls.services["service_offering"] ) cls.isolated_persistent_network_offering = cls.createNetworkOffering("nw_off_isolated_persistent") cls.isolated_persistent_network_offering_netscaler = cls.createNetworkOffering("nw_off_isolated_persistent_netscaler") @@ -1514,7 +1514,7 @@ class TestVPCNetworkOperations(cloudstackTestCase): cls.services["virtual_machine"]["template"] = cls.template.id cls.service_offering = ServiceOffering.create( cls.api_client, - cls.services["service_offering"] + cls.services["service_offerings"]["small"] ) cls.persistent_network_offering_NoLB = NetworkOffering.create(cls.api_client, cls.services["nw_off_persistent_VPCVR_NoLB"], conservemode=False) diff --git a/test/integration/component/test_portable_ip.py b/test/integration/component/test_portable_ip.py index 4c67dacb0e2..61268ebc7c3 100644 --- a/test/integration/component/test_portable_ip.py +++ b/test/integration/component/test_portable_ip.py @@ -653,7 +653,7 @@ class TestAssociatePublicIp(cloudstackTestCase): self.cleanup = [] - portable_ip_range_services = self.services["PortableIpRange"] + portable_ip_range_services = self.services["portableIpRange"] if portable_ip_range_services is None: self.skipTest('Failed to read config values related to portable ip range') diff --git a/test/integration/component/test_region_vpc.py b/test/integration/component/test_region_vpc.py index 43f1fed2044..09f350aade5 100644 --- a/test/integration/component/test_region_vpc.py +++ b/test/integration/component/test_region_vpc.py @@ -182,7 +182,7 @@ class TestRegionVpcOffering(cloudstackTestCase): cls.services["virtual_machine"]["template"] = cls.template.id cls.service_offering = ServiceOffering.create( - cls.api_client, + cls.apiclient, cls.services["service_offering"] ) cls._cleanup = [ @@ -194,7 +194,7 @@ class TestRegionVpcOffering(cloudstackTestCase): def tearDownClass(cls): try: #Cleanup resources used - cleanup_resources(cls.api_client, cls._cleanup) + cleanup_resources(cls.apiclient, cls._cleanup) except Exception as e: raise Exception("Warning: Exception during cleanup : %s" % e) return diff --git a/test/integration/component/test_vpc_distributed_routing_offering.py b/test/integration/component/test_vpc_distributed_routing_offering.py index 28ddd4b9597..7bf7d4689e2 100644 --- a/test/integration/component/test_vpc_distributed_routing_offering.py +++ b/test/integration/component/test_vpc_distributed_routing_offering.py @@ -174,7 +174,7 @@ class TestVPCDistributedRouterOffering(cloudstackTestCase): cls.services["virtual_machine"]["template"] = cls.template.id cls.service_offering = ServiceOffering.create( - cls.api_client, + cls.apiclient, cls.services["service_offering"] ) cls._cleanup = [ @@ -186,7 +186,7 @@ class TestVPCDistributedRouterOffering(cloudstackTestCase): def tearDownClass(cls): try: #Cleanup resources used - cleanup_resources(cls.api_client, cls._cleanup) + cleanup_resources(cls.apiclient, cls._cleanup) except Exception as e: raise Exception("Warning: Exception during cleanup : %s" % e) return diff --git a/tools/marvin/marvin/config/test_data.py b/tools/marvin/marvin/config/test_data.py index 080d537e8f3..160b055a8a8 100644 --- a/tools/marvin/marvin/config/test_data.py +++ b/tools/marvin/marvin/config/test_data.py @@ -47,6 +47,13 @@ test_data = { "publicport": 22, "protocol": 'TCP', }, + "service_offering": { + "name": "Tiny Instance", + "displaytext": "Tiny Instance", + "cpunumber": 1, + "cpuspeed": 100, # in MHz + "memory": 128, # In MBs + }, "service_offerings": { "name": "Tiny Instance", "displaytext": "Tiny Instance", @@ -122,6 +129,21 @@ test_data = { "PortForwarding": 'VirtualRouter', }, }, + "nw_off_isolated_persistent":{ + "name": 'Test Nw off isolated persistent', + "displaytext": 'Test Nw off isolated persistent', + "guestiptype": 'Isolated', + "supportedservices": 'Dhcp,Dns,SourceNat,PortForwarding', + "traffictype": 'GUEST', + "isPersistent":'True', + "availability": 'Optional', + "serviceProviderList" : { + "Dhcp": 'VirtualRouter', + "Dns": 'VirtualRouter', + "SourceNat": 'VirtualRouter', + "PortForwarding": 'VirtualRouter', + }, + }, "isolated_network_offering": { "name": "Network offering-DA services", "displaytext": "Network offering-DA services",