You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/04/08 19:55:31 UTC

git commit: updated refs/heads/affinity_groups to 953f906

Updated Branches:
  refs/heads/affinity_groups 4b33493a4 -> 953f90616


marvin bvt: getting rid of unused keys in the test

Signed-off-by: Prasanna Santhanam <ts...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/953f9061
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/953f9061
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/953f9061

Branch: refs/heads/affinity_groups
Commit: 953f9061694724029591f260a6847e869ba1fed4
Parents: 4b33493
Author: Prasanna Santhanam <ts...@apache.org>
Authored: Mon Apr 8 23:25:06 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Mon Apr 8 23:25:06 2013 +0530

----------------------------------------------------------------------
 test/integration/smoke/test_affinity_groups.py |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/953f9061/test/integration/smoke/test_affinity_groups.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_affinity_groups.py b/test/integration/smoke/test_affinity_groups.py
index 83fccf5..0d06e64 100644
--- a/test/integration/smoke/test_affinity_groups.py
+++ b/test/integration/smoke/test_affinity_groups.py
@@ -53,9 +53,11 @@ class Services:
             },
             "ostype": 'CentOS 5.3 (64-bit)',
             "mode": 'advanced',
-            "affinity": {
-                "name": "webvms",
-                "type": "host anti-affinity",
+            "virtual_machine" : {
+                "affinity": {
+                    "name": "webvms",
+                    "type": "host anti-affinity",
+                }
             }
         }
 
@@ -73,17 +75,12 @@ class TestDeployVmWithAffinityGroup(cloudstackTestCase):
         # Get Zone, Domain and templates
         cls.domain = get_domain(cls.api_client, cls.services)
         cls.zone = get_zone(cls.api_client, cls.services)
-        cls.disk_offering = DiskOffering.create(
-            cls.api_client,
-            cls.services["disk_offering"]
-        )
         cls.template = get_template(
             cls.api_client,
             cls.zone.id,
             cls.services["ostype"]
         )
         cls.services["virtual_machine"]["zoneid"] = cls.zone.id
-        cls.services["volume"]["zoneid"] = cls.zone.id
 
         cls.services["template"] = cls.template.id
         cls.services["zoneid"] = cls.zone.id
@@ -101,7 +98,7 @@ class TestDeployVmWithAffinityGroup(cloudstackTestCase):
             cls.services["service_offering"]
         )
 
-        cls.ag = AffinityGroup.create(cls.api_client, cls.services["affinity"], domainid=cls.domain.id)
+        cls.ag = AffinityGroup.create(cls.api_client, cls.services["virtual_machine"]["affinity"], domainid=cls.domain.id)
 
         cls._cleanup = [
             cls.service_offering,