Commit 19fe9138 authored by René Nussbaumer's avatar René Nussbaumer
Browse files

Add forgotten unittest changes for instance_os_add



The previous patch which fixed disk parameters didn't adapt the
unittests so it lead to failing QA.
Signed-off-by: default avatarRené Nussbaumer <rn@google.com>
Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
parent b8291e00
......@@ -713,6 +713,9 @@ class _FakeConfigForRpcRunner:
def GetClusterInfo(self):
return self._cluster
def GetInstanceDiskParams(self, _):
return constants.DISK_DT_DEFAULTS
class TestRpcRunner(unittest.TestCase):
def testUploadFile(self):
......@@ -795,6 +798,7 @@ class TestRpcRunner(unittest.TestCase):
constants.NIC_MODE: "mymode",
}),
],
disk_template=constants.DT_DISKLESS,
disks=[])
inst.UpgradeConfig()
......@@ -832,7 +836,7 @@ class TestRpcRunner(unittest.TestCase):
})
# Instance with OS parameters
result = runner._encoder((rpc_defs.ED_INST_DICT_OSP, (inst, {
result = runner._encoder((rpc_defs.ED_INST_DICT_OSP_DP, (inst, {
"role": "webserver",
"other": "field",
})))
......
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