Updated Branches: refs/heads/master aba50f81c -> ceec1fb24
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 <t...@apache.org> (cherry picked from commit c2840b93f5fd0d2d4e6dc4daa428b16a213fa8e7) Signed-off-by: Prasanna Santhanam <t...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ceec1fb2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ceec1fb2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ceec1fb2 Branch: refs/heads/master Commit: ceec1fb24374e2045a4afd4b84822eaa2a3bc3a1 Parents: aba50f8 Author: Prasanna Santhanam <t...@apache.org> Authored: Thu Aug 8 12:07:09 2013 +0530 Committer: Prasanna Santhanam <t...@apache.org> Committed: Thu Aug 8 12:09:32 2013 +0530 ---------------------------------------------------------------------- test/integration/component/test_tags.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ceec1fb2/test/integration/component/test_tags.py ---------------------------------------------------------------------- diff --git a/test/integration/component/test_tags.py b/test/integration/component/test_tags.py index c313c25..2a6e076 100644 --- a/test/integration/component/test_tags.py +++ b/test/integration/component/test_tags.py @@ -1948,7 +1948,7 @@ class TestResourceTags(cloudstackTestCase): return - @attr(tags=["advanced", "basic"]) + @attr(tags=["advanced", "basic", "simulator"]) def test_18_invalid_list_parameters(self): """ Test listAPI with invalid tags parameter """ @@ -1975,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,