Revision 141d1489
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
77 | 77 |
constants.HV_KVM_SPICE_ZLIB_GLZ_IMG_COMPR, |
78 | 78 |
constants.HV_KVM_SPICE_STREAMING_VIDEO_DETECTION, |
79 | 79 |
constants.HV_KVM_SPICE_USE_TLS, |
80 |
constants.HV_KVM_SPICE_AUDIO_COMPR, |
|
81 |
constants.HV_KVM_SPICE_TLS_CIPHERS, |
|
82 |
constants.HV_KVM_SPICE_USE_VDAGENT, |
|
80 | 83 |
]) |
81 | 84 |
|
82 | 85 |
|
b/test/ganeti.hypervisor.hv_kvm_unittest.py | ||
---|---|---|
258 | 258 |
self.assertEqual(parse(help_091), ("0.9.1", 0, 9, 1)) |
259 | 259 |
|
260 | 260 |
|
261 |
class TestSpiceParameterList(unittest.TestCase): |
|
262 |
def test(self): |
|
263 |
params = \ |
|
264 |
compat.UniqueFrozenset(getattr(constants, name) |
|
265 |
for name in dir(constants) |
|
266 |
if name.startswith("HV_KVM_SPICE_")) |
|
267 |
|
|
268 |
# Exclude some parameters |
|
269 |
params -= frozenset([ |
|
270 |
constants.HV_KVM_SPICE_BIND, |
|
271 |
]) |
|
272 |
|
|
273 |
self.assertEqual(hv_kvm._SPICE_ADDITIONAL_PARAMS, params) |
|
274 |
|
|
275 |
|
|
261 | 276 |
if __name__ == "__main__": |
262 | 277 |
testutils.GanetiTestProgram() |
Also available in: Unified diff