[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 06/10] Acceptance Tests: make username/password configurable
From: |
Cleber Rosa |
Subject: |
[PATCH v2 06/10] Acceptance Tests: make username/password configurable |
Date: |
Tue, 23 Mar 2021 18:15:35 -0400 |
This makes the username/password used for authentication configurable,
because some guest operating systems may have restrictions on accounts
to be used for logins, and it just makes it better documented.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
tests/acceptance/avocado_qemu/__init__.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/acceptance/avocado_qemu/__init__.py
b/tests/acceptance/avocado_qemu/__init__.py
index e75b002c70..535f63a48d 100644
--- a/tests/acceptance/avocado_qemu/__init__.py
+++ b/tests/acceptance/avocado_qemu/__init__.py
@@ -308,6 +308,8 @@ class LinuxTest(Test, LinuxSSHMixIn):
timeout = 900
chksum = None
+ username = 'root'
+ password = 'password'
def setUp(self, ssh_pubkey=None, network_device_type='virtio-net'):
super(LinuxTest, self).setUp()
@@ -370,8 +372,8 @@ def prepare_cloudinit(self, ssh_pubkey=None):
with open(ssh_pubkey) as pubkey:
pubkey_content = pubkey.read()
cloudinit.iso(cloudinit_iso, self.name,
- username='root',
- password='password',
+ username=self.username,
+ password=self.password,
# QEMU's hard coded usermode router address
phone_home_host='10.0.2.2',
phone_home_port=self.phone_home_port,
--
2.25.4
- Re: [PATCH v2 02/10] tests/acceptance/virtiofs_submounts.py: evaluate string not length, (continued)
[PATCH v2 06/10] Acceptance Tests: make username/password configurable,
Cleber Rosa <=
[PATCH v2 07/10] Acceptance Tests: set up SSH connection by default after boot for LinuxTest, Cleber Rosa, 2021/03/23