diff options
author | Paolo Bonzini | 2021-01-21 14:55:12 +0100 |
---|---|---|
committer | Paolo Bonzini | 2021-01-23 21:55:07 +0100 |
commit | 3e3267a9d799788338e7e8120f289c3924fc4e47 (patch) | |
tree | 4b1ae12e1d51b9a5f138cf44dd1f6ae0cb0e6946 | |
parent | meson.build: Detect bzip2 program (diff) | |
download | qemu-3e3267a9d799788338e7e8120f289c3924fc4e47.tar.gz qemu-3e3267a9d799788338e7e8120f289c3924fc4e47.tar.xz qemu-3e3267a9d799788338e7e8120f289c3924fc4e47.zip |
acceptance: switch to QMP change-vnc-password command
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | tests/acceptance/vnc.py | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/tests/acceptance/vnc.py b/tests/acceptance/vnc.py index 3f40bc2be1..22656bbcc2 100644 --- a/tests/acceptance/vnc.py +++ b/tests/acceptance/vnc.py @@ -24,10 +24,8 @@ class Vnc(Test): self.vm.add_args('-nodefaults', '-S') self.vm.launch() self.assertFalse(self.vm.qmp('query-vnc')['return']['enabled']) - set_password_response = self.vm.qmp('change', - device='vnc', - target='password', - arg='new_password') + set_password_response = self.vm.qmp('change-vnc-password', + password='new_password') self.assertIn('error', set_password_response) self.assertEqual(set_password_response['error']['class'], 'GenericError') @@ -38,10 +36,8 @@ class Vnc(Test): self.vm.add_args('-nodefaults', '-S', '-vnc', ':0') self.vm.launch() self.assertTrue(self.vm.qmp('query-vnc')['return']['enabled']) - set_password_response = self.vm.qmp('change', - device='vnc', - target='password', - arg='new_password') + set_password_response = self.vm.qmp('change-vnc-password', + password='new_password') self.assertIn('error', set_password_response) self.assertEqual(set_password_response['error']['class'], 'GenericError') @@ -52,8 +48,6 @@ class Vnc(Test): self.vm.add_args('-nodefaults', '-S', '-vnc', ':0,password') self.vm.launch() self.assertTrue(self.vm.qmp('query-vnc')['return']['enabled']) - set_password_response = self.vm.qmp('change', - device='vnc', - target='password', - arg='new_password') + set_password_response = self.vm.qmp('change-vnc-password', + password='new_password') self.assertEqual(set_password_response['return'], {}) |