diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-04-20 11:14:24 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-04-20 11:17:27 +0200 |
commit | 3b3eba6c8e7ff132af513d9fa0a17b1cfbfb14f3 (patch) | |
tree | 7c8f71aa656d02b47807466f7850615625a07261 | |
parent | 249b32b227afa9c0ce645a0004b839779524f2ae (diff) |
Protect password in juju_epc
It sometimes fails according to the special chars selected [1].
[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-vnf-hunter-juju_epc-run/333/console
Change-Id: Ie0af3f2fe8d28225296788a8fce73e6d2ec2a304
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | functest/opnfv_tests/vnf/epc/juju_epc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.py b/functest/opnfv_tests/vnf/epc/juju_epc.py index 4d7289749..0a4e649c3 100644 --- a/functest/opnfv_tests/vnf/epc/juju_epc.py +++ b/functest/opnfv_tests/vnf/epc/juju_epc.py @@ -42,7 +42,7 @@ CREDS_TEMPLATE2 = """credentials: default-credential: abot-epc abot-epc: auth-type: userpass - password: {pass} + password: '{pass}' project-domain-name: {project_domain_n} tenant-name: {tenant_n}""" @@ -51,7 +51,7 @@ CREDS_TEMPLATE = """credentials: default-credential: abot-epc abot-epc: auth-type: userpass - password: {pass} + password: '{pass}' project-domain-name: {project_domain_n} tenant-name: {tenant_n} user-domain-name: {user_domain_n} @@ -187,7 +187,7 @@ class JujuEpc(singlevm.VmReady2): with open(credentials_yaml, 'w') as yfile: yfile.write(CREDS_TEMPLATE.format(**creds_data)) cmd = ['juju', 'add-credential', 'abot-epc', '-f', credentials_yaml, - '--replace'] + '--replace', '--debug'] output = subprocess.check_output(cmd, stderr=subprocess.STDOUT) self.__logger.info("%s\n%s", " ".join(cmd), output.decode("utf-8")) |