The introduction of the migration_mode parameter to the fake hypervisor
broke the testGetHvDefaults. This patch fixes this by taking the default
parameters of the fake hypervisor into account.
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>
os_name="lenny-image"),
cl.os_hvp["lenny-image"][constants.HT_XEN_PVM])
-
def testFillHvFullMerge(self):
inst_hvparams = {
"blah": "blubb",
}
- fake_dict = {
+ fake_dict = constants.HVC_DEFAULTS[constants.HT_FAKE].copy()
+ fake_dict.update({
"foo": "baz",
"bar": "foo",
"foobar": "foobar",
"blah": "blubb",
"blubb": "blah",
- }
+ })
fake_inst = objects.Instance(name="foobar",
os="lenny-image",
hypervisor=constants.HT_FAKE,