Template and deploy test for day01 deployment
Add physical-mcp-ocata-offline-ovs template
Add day01 offline test
Change-Id: I61211150575a84d8f3e44be2ef9c64855e5f2db3
diff --git a/tcp_tests/managers/saltmanager.py b/tcp_tests/managers/saltmanager.py
index 1ff5324..06e7d0b 100644
--- a/tcp_tests/managers/saltmanager.py
+++ b/tcp_tests/managers/saltmanager.py
@@ -38,14 +38,15 @@
'runStates': 'run_states',
}
- def __init__(self, config, underlay, host=None, port='6969'):
+ def __init__(self, config, underlay, host=None, port='6969',
+ username=None, password=None):
self.__config = config
self.__underlay = underlay
self.__port = port
self.__host = host
self.__api = None
- self.__user = settings.SALT_USER
- self.__password = settings.SALT_PASSWORD
+ self.__user = username or settings.SALT_USER
+ self.__password = password or settings.SALT_PASSWORD
self._salt = self
super(SaltManager, self).__init__(config=config, underlay=underlay)
@@ -60,6 +61,10 @@
self.execute_commands(commands=commands,
label="Install and configure salt")
+ def change_creds(self, username, password):
+ self.__user = username
+ self.__password = password
+
@property
def port(self):
return self.__port