From c91a001729732cb13b8764c72d7daa0a9b40838e Mon Sep 17 00:00:00 2001 From: ziajka Date: Fri, 16 Jun 2017 10:03:33 +0200 Subject: [PATCH] QEMU VNC options tests --- tests/compute/qemu/test_qemu_vm.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/compute/qemu/test_qemu_vm.py b/tests/compute/qemu/test_qemu_vm.py index 71ba1f71..19556717 100644 --- a/tests/compute/qemu/test_qemu_vm.py +++ b/tests/compute/qemu/test_qemu_vm.py @@ -359,6 +359,13 @@ def test_bios_option(vm, tmpdir, loop, fake_qemu_img_binary): assert ' '.join(['-bios', str(tmpdir / "test.img")]) in ' '.join(options) +def test_vnc_option(vm, tmpdir, loop, fake_qemu_img_binary): + vm._console_type = 'vnc' + vm._console = 5905 + options = loop.run_until_complete(asyncio.async(vm._build_command())) + assert '-vnc 127.0.0.1:5' in ' '.join(options) + + def test_disk_options_multiple_disk(vm, tmpdir, loop, fake_qemu_img_binary): vm._hda_disk_image = str(tmpdir / "test0.qcow2")