You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mc...@apache.org on 2013/01/10 18:52:13 UTC

[8/9] git commit: integration test fix: test iso - obj reference within classmethod

integration test fix: test iso - obj reference within classmethod


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

Branch: refs/heads/api_limit
Commit: 1b8e17255f24a3e6aaf2265b1c3f8e27377eca76
Parents: cd7f771
Author: Prasanna Santhanam <ts...@apache.org>
Authored: Thu Jan 10 20:29:12 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Thu Jan 10 20:29:12 2013 +0530

----------------------------------------------------------------------
 test/integration/smoke/test_iso.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/1b8e1725/test/integration/smoke/test_iso.py
----------------------------------------------------------------------
diff --git a/test/integration/smoke/test_iso.py b/test/integration/smoke/test_iso.py
index 22d424f..8228a27 100644
--- a/test/integration/smoke/test_iso.py
+++ b/test/integration/smoke/test_iso.py
@@ -219,14 +219,14 @@ class TestISO(cloudstackTestCase):
         # Finding the OsTypeId from Ostype
         ostypes = list_os_types(
                     cls.api_client,
-                    description=self.services["ostype"]
+                    description=cls.services["ostype"]
                     )
         if not isinstance(ostypes, list):
             raise unittest.SkipTest("OSTypeId for given description not found")
 
-        self.services["iso_1"]["ostypeid"] = ostypes[0].id
-        self.services["iso_2"]["ostypeid"] = ostypes[0].id
-        self.services["ostypeid"] = ostypes[0].id
+        cls.services["iso_1"]["ostypeid"] = ostypes[0].id
+        cls.services["iso_2"]["ostypeid"] = ostypes[0].id
+        cls.services["ostypeid"] = ostypes[0].id
 
         cls.iso_1 = Iso.create(
                                cls.api_client,