cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject git commit: updated refs/heads/4.2 to c2840b9
Date Thu, 08 Aug 2013 06:38:30 GMT
Updated Branches:
  refs/heads/4.2 815d51e58 -> c2840b93f


Fix the kwargs passed in as dict to listVirtualMachines

listVirtualMachines queried using tags needs the tags (key,value) to be
passed as a dictionary.

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


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

Branch: refs/heads/4.2
Commit: c2840b93f5fd0d2d4e6dc4daa428b16a213fa8e7
Parents: 815d51e
Author: Prasanna Santhanam <tsp@apache.org>
Authored: Thu Aug 8 12:07:09 2013 +0530
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Thu Aug 8 12:07:09 2013 +0530

----------------------------------------------------------------------
 test/integration/component/test_tags.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c2840b93/test/integration/component/test_tags.py
----------------------------------------------------------------------
diff --git a/test/integration/component/test_tags.py b/test/integration/component/test_tags.py
index 46d1da6..2a6e076 100644
--- a/test/integration/component/test_tags.py
+++ b/test/integration/component/test_tags.py
@@ -1948,8 +1948,7 @@ class TestResourceTags(cloudstackTestCase):
         
         return
 
-    @unittest.skip("skipped - Need to enable this test after fixing TC issues")
-    @attr(tags=["advanced", "basic"])
+    @attr(tags=["advanced", "basic", "simulator"])
     def test_18_invalid_list_parameters(self):
         """ Test listAPI with invalid tags parameter
         """
@@ -1976,9 +1975,10 @@ class TestResourceTags(cloudstackTestCase):
         self.debug("Passing invalid key parameter to the listAPI for vms")
 
         vms = VirtualMachine.list(self.apiclient,
-                  listall=True,
-                  tags={'region111': 'India'}
-                 )
+            **{'tags[0].key': 'region111',
+             'tags[0].value': 'India',
+             'listall' : 'True'}
+        )
         self.assertEqual(
                          vms,
                          None,


Mime
View raw message