Skip to content

Commit c2840b9

Browse files
author
Prasanna Santhanam
committed
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>
1 parent 815d51e commit c2840b9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎test/integration/component/test_tags.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1948,8 +1948,7 @@ def test_17_query_tags_admin_account(self):
19481948

19491949
return
19501950

1951-
@unittest.skip("skipped - Need to enable this test after fixing TC issues")
1952-
@attr(tags=["advanced", "basic"])
1951+
@attr(tags=["advanced", "basic", "simulator"])
19531952
def test_18_invalid_list_parameters(self):
19541953
""" Test listAPI with invalid tags parameter
19551954
"""
@@ -1976,9 +1975,10 @@ def test_18_invalid_list_parameters(self):
19761975
self.debug("Passing invalid key parameter to the listAPI for vms")
19771976

19781977
vms = VirtualMachine.list(self.apiclient,
1979-
listall=True,
1980-
tags={'region111': 'India'}
1981-
)
1978+
**{'tags[0].key': 'region111',
1979+
'tags[0].value': 'India',
1980+
'listall' : 'True'}
1981+
)
19821982
self.assertEqual(
19831983
vms,
19841984
None,

0 commit comments

Comments
 (0)