diff options
author | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-11-13 17:19:05 +0200 |
---|---|---|
committer | Stamatis Katsaounis <mokats@intracom-telecom.com> | 2018-11-14 14:38:33 +0000 |
commit | 0dcbbad4df170f16d4bcf20c752a45dd889a094f (patch) | |
tree | 9f751f8b9b44a915a67297e96cea57da4c9c3e13 /dovetail/container.py | |
parent | 9d678a7a390f7b57014b615cd4140f0da3dfee11 (diff) |
Add missing unit tests for container file
JIRA: DOVETAIL-724
This patch adds unit tests for container class methods of Dovetail
which were missing.
Change-Id: Iaba3bbfbb8838278e20ac9f63ef6e01f9ada1cbc
Signed-off-by: Stamatis Katsaounis <mokats@intracom-telecom.com>
Diffstat (limited to 'dovetail/container.py')
-rw-r--r-- | dovetail/container.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dovetail/container.py b/dovetail/container.py index 580d6c3e..b0940b4b 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -68,11 +68,11 @@ class Container(object): dovetail_config = dt_cfg.dovetail_config log_vol = '-v %s:%s ' % (dovetail_config['result_dir'], - dovetail_config["vnftest"]['result']['log']) + dovetail_config['vnftest']['result']['log']) key_file = os.path.join(dovetail_config['config_dir'], dovetail_config['pri_key']) - key_container_path = dovetail_config["vnftest"]['result']['key_path'] + key_container_path = dovetail_config['vnftest']['result']['key_path'] if not os.path.isfile(key_file): self.logger.debug("Key file {} is not found".format(key_file)) key_vol = '' @@ -190,7 +190,7 @@ class Container(object): def pull_image_only(self, image_name): cmd = 'sudo docker pull %s' % (image_name) - ret, msg = dt_utils.exec_cmd(cmd, self.logger) + ret, _ = dt_utils.exec_cmd(cmd, self.logger) if ret != 0: self.logger.error( 'Failed to pull docker image {}!'.format(image_name)) |