Repository: cloudstack Updated Branches: refs/heads/master 6b0c34fae -> 01b04cd7a
CLOUDSTACK-5674:Fixes for BVT and Regression test failures. Signed-off-by: SrikanteswaraRao Talluri <tall...@apache.org> Conflicts: test/integration/smoke/test_nic.py Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b273f664 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b273f664 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b273f664 Branch: refs/heads/master Commit: b273f6642341b7ec2640bf6de865a91ccb50feb4 Parents: 6b0c34f Author: SrikanteswaraRao Talluri <tall...@apache.org> Authored: Tue Apr 29 12:34:23 2014 +0530 Committer: SrikanteswaraRao Talluri <tall...@apache.org> Committed: Wed Apr 30 19:25:35 2014 +0530 ---------------------------------------------------------------------- .../component/test_dynamic_compute_offering.py | 26 ++++++++++---------- test/integration/smoke/test_privategw_acl.py | 25 ++----------------- tools/marvin/marvin/config/test_data.py | 20 ++++++++++++++- 3 files changed, 34 insertions(+), 37 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b273f664/test/integration/component/test_dynamic_compute_offering.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_dynamic_compute_offering.py b/test/integration/component/test_dynamic_compute_offering.py index da43fdf..e6d0dbc 100644 --- a/test/integration/component/test_dynamic_compute_offering.py +++ b/test/integration/component/test_dynamic_compute_offering.py @@ -40,20 +40,20 @@ class TestDynamicServiceOffering(cloudstackTestCase): @classmethod def setUpClass(cls): testClient = super(TestDynamicServiceOffering, cls).getClsTestClient() - cls.apiclient = testClient.getApiClient() + cls.api_client = cls.apiclient = testClient.getApiClient() cls.services = testClient.getParsedTestDataConfig() # Get Zone, Domain and templates - domain = get_domain(cls.apiclient) + cls.domain = get_domain(cls.apiclient) cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests()) cls.services['mode'] = cls.zone.networktype - template = get_template( + cls.template = get_template( cls.apiclient, cls.zone.id, cls.services["ostype"] ) - if template == FAILED: + if cls.template == FAILED: assert False, "get_template() failed to return template with description %s" % cls.services["ostype"] cls.services["virtual_machine"]["zoneid"] = cls.zone.id cls.services["virtual_machine"]["template"] = cls.template.id @@ -414,11 +414,11 @@ class TestScaleVmDynamicServiceOffering(cloudstackTestCase): cls.api_client = cloudstackTestClient.getApiClient() # Fill services from the external config file - cls.services = cloudstackTestClient.getConfigParser().parsedDict + cls.services = cloudstackTestClient.getParsedTestDataConfig() # Get Zone, Domain and templates - cls.domain = get_domain(cls.api_client, cls.services) - cls.zone = get_zone(cls.api_client, cls.services) + cls.domain = get_domain(cls.api_client) + cls.zone = get_zone(cls.api_client, cloudstackTestClient.getZoneForTests()) cls.mode = str(cls.zone.networktype).lower() cls.template = get_template( cls.api_client, @@ -1058,11 +1058,11 @@ class TestAccountLimits(cloudstackTestCase): cls.api_client = cloudstackTestClient.getApiClient() # Fill services from the external config file - cls.services = cloudstackTestClient.getConfigParser().parsedDict + cls.services = cloudstackTestClient.getParsedTestDataConfig() # Get Zone, Domain and templates - cls.domain = get_domain(cls.api_client, cls.services) - cls.zone = get_zone(cls.api_client, cls.services) + cls.domain = get_domain(cls.api_client) + cls.zone = get_zone(cls.api_client, cloudstackTestClient.getZoneForTests()) cls.mode = str(cls.zone.networktype).lower() cls.template = get_template( cls.api_client, @@ -1335,11 +1335,11 @@ class TestAffinityGroup(cloudstackTestCase): cls.api_client = cloudstackTestClient.getApiClient() # Fill services from the external config file - cls.services = cloudstackTestClient.getConfigParser().parsedDict + cls.services = cloudstackTestClient.getParsedTestDataConfig() # Get Zone, Domain and templates - cls.domain = get_domain(cls.api_client, cls.services) - cls.zone = get_zone(cls.api_client, cls.services) + cls.domain = get_domain(cls.api_client) + cls.zone = get_zone(cls.api_client, cloudstackTestClient.getZoneForTests()) cls.mode = str(cls.zone.networktype).lower() cls.template = get_template( cls.api_client, http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b273f664/test/integration/smoke/test_privategw_acl.py ---------------------------------------------------------------------- diff --git a/test/integration/smoke/test_privategw_acl.py b/test/integration/smoke/test_privategw_acl.py index 8d20770..c86beb1 100644 --- a/test/integration/smoke/test_privategw_acl.py +++ b/test/integration/smoke/test_privategw_acl.py @@ -105,25 +105,7 @@ class TestPrivateGwACL(cloudstackTestCase): self.assertIsNotNone(createNetworkResponse.id, "Network failed to create") self.networkId = createNetworkResponse.id - def deployVm(self): - deployVirtualMachineCmd = deployVirtualMachine.deployVirtualMachineCmd() - deployVirtualMachineCmd.networkids = self.networkId - deployVirtualMachineCmd.serviceofferingid = self.serviceOfferingId - deployVirtualMachineCmd.zoneid = self.zoneId - deployVirtualMachineCmd.templateid = self.templateId - deployVirtualMachineCmd.hypervisor = "XenServer" - deployVMResponse = self.apiClient.deployVirtualMachine(deployVirtualMachineCmd) - - def deployVm(self): - deployVirtualMachineCmd = deployVirtualMachine.deployVirtualMachineCmd() - deployVirtualMachineCmd.networkids = TestNetworkACL.networkId - deployVirtualMachineCmd.serviceofferingid = TestNetworkACL.serviceOfferingId - deployVirtualMachineCmd.zoneid = TestNetworkACL.zoneId - deployVirtualMachineCmd.templateid = TestNetworkACL.templateId - deployVirtualMachineCmd.hypervisor = "XenServer" - deployVMResponse = self.apiClient.deployVirtualMachine(deployVirtualMachineCmd) - TestNetworkACL.vmId = deployVMResponse.id - self.vmId = deployVMResponse.id + def createPvtGw(self): createPrivateGatewayCmd = createPrivateGateway.createPrivateGatewayCmd() @@ -146,7 +128,4 @@ class TestPrivateGwACL(cloudstackTestCase): def tearDown(self): #destroy the vm - if self.vmId is not None: - destroyVirtualMachineCmd = destroyVirtualMachine.destroyVirtualMachineCmd() - destroyVirtualMachineCmd.id = self.vmId - destroyVirtualMachineResponse = self.apiClient.destroyVirtualMachine(destroyVirtualMachineCmd) + return http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b273f664/tools/marvin/marvin/config/test_data.py ---------------------------------------------------------------------- diff --git a/tools/marvin/marvin/config/test_data.py b/tools/marvin/marvin/config/test_data.py index 1a29ed9..8829f13 100644 --- a/tools/marvin/marvin/config/test_data.py +++ b/tools/marvin/marvin/config/test_data.py @@ -230,6 +230,20 @@ test_data = { "acltype": "Domain", "scope": "all" }, + "shared_network_offering": { + "name": "MySharedOffering-shared", + "displaytext": "MySharedOffering", + "guestiptype": "Shared", + "supportedservices": "Dhcp,Dns,UserData", + "specifyVlan": "False", + "specifyIpRanges": "False", + "traffictype": "GUEST", + "serviceProviderList": { + "Dhcp": "VirtualRouter", + "Dns": "VirtualRouter", + "UserData": "VirtualRouter" + } + }, "shared_network_offering_sg": { "name": "MySharedOffering-sg", "displaytext": "MySharedOffering-sg", @@ -625,5 +639,9 @@ test_data = { "name": "Sparse", "provisioningtype": "sparse", "disksize": 1 - } + }, + "host_anti_affinity": { + "name": "hostantiaffinity", + "type": "host anti-affinity", + }, }