Use MaaS in system tests
Change-Id: Ibaa90ab8a5f290c2a076976243ec0d2511ce8295
diff --git a/tcp_tests/managers/underlay_ssh_manager.py b/tcp_tests/managers/underlay_ssh_manager.py
index 2c9ed55..5f919ce 100644
--- a/tcp_tests/managers/underlay_ssh_manager.py
+++ b/tcp_tests/managers/underlay_ssh_manager.py
@@ -236,7 +236,8 @@
address_pool=address_pool)
return ssh_data['host']
- def remote(self, node_name=None, host=None, address_pool=None):
+ def remote(self, node_name=None, host=None, address_pool=None,
+ username=None):
"""Get SSHClient by a node name or hostname.
One of the following arguments should be specified:
@@ -249,7 +250,7 @@
ssh_data = self.__ssh_data(node_name=node_name, host=host,
address_pool=address_pool)
ssh_auth = ssh_client.SSHAuth(
- username=ssh_data['login'],
+ username=username or ssh_data['login'],
password=ssh_data['password'],
keys=[rsakey.RSAKey(file_obj=StringIO.StringIO(key))
for key in ssh_data['keys']])