From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
To: qemu-devel@nongnu.org
Cc: kraxel@redhat.com, armbru@redhat.com, eblake@redhat.com,
pbonzini@redhat.com, marcandre.lureau@redhat.com,
vsementsov@virtuozzo.com, bleal@redhat.com, wainersm@redhat.com,
philmd@redhat.com, crosa@redhat.com
Subject: [PATCH 3/2] avocado/vnc: add test_change_listen
Date: Tue, 21 Dec 2021 14:37:59 +0100 [thread overview]
Message-ID: <20211221133759.6579-1-vsementsov@virtuozzo.com> (raw)
In-Reply-To: <20211220154418.1554279-1-vsementsov@virtuozzo.com>
Add simple test-case for new change-vnc-listen qmp command.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
tests/avocado/vnc.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/avocado/vnc.py b/tests/avocado/vnc.py
index 096432988f..f05ee1e00a 100644
--- a/tests/avocado/vnc.py
+++ b/tests/avocado/vnc.py
@@ -51,3 +51,13 @@ def test_change_password(self):
set_password_response = self.vm.qmp('change-vnc-password',
password='new_password')
self.assertEqual(set_password_response['return'], {})
+
+ def test_change_listen(self):
+ self.vm.add_args('-nodefaults', '-S', '-vnc', ':0')
+ self.vm.launch()
+ self.assertEqual(self.vm.qmp('query-vnc')['return']['service'], '5900')
+ res = self.vm.qmp('change-vnc-listen', id='default',
+ addresses=[{'type': 'inet', 'host': '0.0.0.0',
+ 'port': '5901'}])
+ self.assertEqual(res['return'], {})
+ self.assertEqual(self.vm.qmp('query-vnc')['return']['service'], '5901')
--
2.31.1
next prev parent reply other threads:[~2021-12-21 13:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-20 15:44 [PATCH 0/2] qapi/ui: add change-vnc-listen Vladimir Sementsov-Ogievskiy
2021-12-20 15:44 ` [PATCH 1/2] ui/vnc: refactor arrays of addresses to SocketAddressList Vladimir Sementsov-Ogievskiy
2021-12-21 7:56 ` Marc-André Lureau
2021-12-20 15:44 ` [PATCH 2/2] qapi/ui: introduce change-vnc-listen Vladimir Sementsov-Ogievskiy
2021-12-21 8:13 ` Marc-André Lureau
2021-12-21 13:35 ` Vladimir Sementsov-Ogievskiy
2021-12-21 14:15 ` Markus Armbruster
2021-12-21 14:41 ` Vladimir Sementsov-Ogievskiy
2022-01-04 13:21 ` Daniel P. Berrangé
2022-01-13 16:27 ` Markus Armbruster
2022-01-13 16:30 ` Daniel P. Berrangé
2021-12-21 13:37 ` Vladimir Sementsov-Ogievskiy [this message]
2021-12-21 13:45 ` [PATCH 3/2] avocado/vnc: add test_change_listen Marc-André Lureau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211221133759.6579-1-vsementsov@virtuozzo.com \
--to=vsementsov@virtuozzo.com \
--cc=armbru@redhat.com \
--cc=bleal@redhat.com \
--cc=crosa@redhat.com \
--cc=eblake@redhat.com \
--cc=kraxel@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=wainersm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).