summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-02-24 10:58:40 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2019-02-24 11:00:44 +0100
commitf6b2577f4e052f493f6359265fc473fe98830b62 (patch)
tree6ad3a879c7d1cee7cd84b516601b43d45bcc2599
parentfd2375f17a6294210ffb48cdcb79e7d129ebe94d (diff)
Ease copying/pasting the private keys from logs
Change-Id: I8f1ccdb709dbb3e7a22a404c036714dd848dd87d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/core/singlevm.py2
-rw-r--r--functest/opnfv_tests/vnf/ims/heat_ims.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/functest/core/singlevm.py b/functest/core/singlevm.py
index ec7f967ec..16c066ef6 100644
--- a/functest/core/singlevm.py
+++ b/functest/core/singlevm.py
@@ -353,7 +353,7 @@ class SingleVm1(VmReady1):
self.keypair = self.cloud.create_keypair(
'{}-kp_{}'.format(self.case_name, self.guid))
self.__logger.debug("keypair: %s", self.keypair)
- self.__logger.debug("private_key: %s", self.keypair.private_key)
+ self.__logger.debug("private_key:\n%s", self.keypair.private_key)
with open(self.key_filename, 'w') as private_key_file:
private_key_file.write(self.keypair.private_key)
self.sec = self.cloud.create_security_group(
diff --git a/functest/opnfv_tests/vnf/ims/heat_ims.py b/functest/opnfv_tests/vnf/ims/heat_ims.py
index 7bd4f207e..9c2fded78 100644
--- a/functest/opnfv_tests/vnf/ims/heat_ims.py
+++ b/functest/opnfv_tests/vnf/ims/heat_ims.py
@@ -101,7 +101,7 @@ class HeatIms(singlevm.VmReady2):
domain=self.project.domain.id)
self.keypair = self.cloud.create_keypair(
'{}-kp_{}'.format(self.case_name, self.guid))
- self.__logger.info("keypair: %s", self.keypair.private_key)
+ self.__logger.info("keypair:\n%s", self.keypair.private_key)
if self.deploy_vnf() and self.test_vnf():
self.result = 100