Commit bacae536 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

query_unittest: Fix argument to set()

Commit e431074f

 introduced an uncatched bug. This patch fixes this. The
set is expecting a list or iteratable to work on, so it splitted the
provided instance name into a set of characters. This caused the
exp_status never been set and therefore not catched in one assert rule
further below who checks that every status was tested.
Signed-off-by: default avatarRené Nussbaumer <>
Reviewed-by: default avatarMichael Hanselmann <>
parent f5182ecb
......@@ -710,8 +710,11 @@ class TestInstanceQuery(unittest.TestCase):
"inst6": {
"memory": 768,
"inst7": {
"vcpus": 3,
wrongnode_inst = set("inst2")
wrongnode_inst = set(["inst7"])
consinfo = dict((, None) for inst in instances)
consinfo["inst7"] = \
......@@ -822,7 +825,7 @@ class TestInstanceQuery(unittest.TestCase):
set(["ERROR_nodeoffline", "ERROR_nodedown",
"running", "ERROR_up", "ERROR_down",
"ADMIN_down", "ERROR_wrongnode"]))
def _CheckInstanceConsole(self, instance, (status, consdata)):
if == "inst7":
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment