Revision 1f3096c2 test/py/ganeti.objects_unittest.py
b/test/py/ganeti.objects_unittest.py | ||
---|---|---|
97 | 97 |
os_name="lenny-image"), |
98 | 98 |
cl.os_hvp["lenny-image"][constants.HT_XEN_PVM]) |
99 | 99 |
|
100 |
|
|
101 | 100 |
def testFillHvFullMerge(self): |
102 | 101 |
inst_hvparams = { |
103 | 102 |
"blah": "blubb", |
104 | 103 |
} |
105 | 104 |
|
106 |
fake_dict = { |
|
105 |
fake_dict = constants.HVC_DEFAULTS[constants.HT_FAKE].copy() |
|
106 |
fake_dict.update({ |
|
107 | 107 |
"foo": "baz", |
108 | 108 |
"bar": "foo", |
109 | 109 |
"foobar": "foobar", |
110 | 110 |
"blah": "blubb", |
111 | 111 |
"blubb": "blah", |
112 |
} |
|
112 |
})
|
|
113 | 113 |
fake_inst = objects.Instance(name="foobar", |
114 | 114 |
os="lenny-image", |
115 | 115 |
hypervisor=constants.HT_FAKE, |
Also available in: Unified diff