Skip to content

Commit ceec1fb

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> (cherry picked from commit c2840b9) Signed-off-by: Prasanna Santhanam <tsp@apache.org>
1 parent aba50f8 commit ceec1fb

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

test/integration/component/test_tags.py

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

19491949
return
19501950

1951-
@attr(tags=["advanced", "basic"])
1951+
@attr(tags=["advanced", "basic", "simulator"])
19521952
def test_18_invalid_list_parameters(self):
19531953
""" Test listAPI with invalid tags parameter
19541954
"""
@@ -1975,9 +1975,10 @@ def test_18_invalid_list_parameters(self):
19751975
self.debug("Passing invalid key parameter to the listAPI for vms")
19761976

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

0 commit comments

Comments
 (0)