Allow kwargs in create_timestamp
As a part of the scenario/manager.py stabilization tracked by
the below BP the patch adds kwargs argument for create_timestamp
method so that the consumers are able to pass additional
parameters if needed.
Change-Id: I2d204d98c5e22c89e6b44514c29b74b55e2456d2
Implements: blueprint tempest-scenario-manager-stable
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index ff860d5..9e22ca3 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -825,18 +825,20 @@
return floating_ip
def create_timestamp(self, ip_address, dev_name=None, mount_path='/mnt',
- private_key=None, server=None):
+ private_key=None, server=None, username=None,
+ fs='ext4'):
"""Creates timestamp
This wrapper utility does ssh, creates timestamp and returns the
created timestamp.
"""
-
ssh_client = self.get_remote_client(ip_address,
private_key=private_key,
- server=server)
+ server=server,
+ username=username)
+
if dev_name is not None:
- ssh_client.make_fs(dev_name)
+ ssh_client.make_fs(dev_name, fs=fs)
ssh_client.exec_command('sudo mount /dev/%s %s' % (dev_name,
mount_path))
cmd_timestamp = 'sudo sh -c "date > %s/timestamp; sync"' % mount_path