You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2014/07/28 17:44:29 UTC
[02/24] git commit: updated refs/heads/4.4 to e33d4a5
CLOUDSTACK-5674:Fixes for BVT and Regression test failures.
Signed-off-by: SrikanteswaraRao Talluri <ta...@apache.org>
(cherry picked from commit dcd3ce5ce03eeb0675776622e757e6e638cb433d)
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/04cac3f9
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/04cac3f9
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/04cac3f9
Branch: refs/heads/4.4
Commit: 04cac3f9bd1645cce102c9871c46108f894145db
Parents: 798a6aa
Author: SrikanteswaraRao Talluri <ta...@apache.org>
Authored: Tue Apr 29 12:34:23 2014 +0530
Committer: Daan Hoogland <da...@onecht.net>
Committed: Mon Jul 28 17:43:13 2014 +0200
----------------------------------------------------------------------
.../component/test_dynamic_compute_offering.py | 26 ++++++++++----------
test/integration/smoke/test_nic.py | 2 +-
test/integration/smoke/test_privategw_acl.py | 25 ++-----------------
tools/marvin/marvin/config/test_data.py | 20 ++++++++++++++-
4 files changed, 35 insertions(+), 38 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/04cac3f9/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/04cac3f9/test/integration/smoke/test_nic.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_nic.py b/test/integration/smoke/test_nic.py
index e12bb33..3f91d70 100644
--- a/test/integration/smoke/test_nic.py
+++ b/test/integration/smoke/test_nic.py
@@ -119,7 +119,7 @@ class TestNic(cloudstackTestCase):
except Exception as ex:
self.debug("Exception during NIC test SETUP!: " + str(ex))
- @attr(tags = ["devcloud", "smoke", "basic", "sg", "provisioning"])
+ @attr(tags = ["devcloud", "smoke", "advanced", "provisioning"])
def test_01_nic(self):
#TODO: SIMENH: add validation
"""Test to add and update added nic to a virtual machine"""
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/04cac3f9/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/04cac3f9/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",
+ },
}