summaryrefslogtreecommitdiffstats
path: root/robot/resources/openstack
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-05 20:19:26 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-05 20:19:26 +0000
commit9eaf4c111c856b8ad60e9ba92d9f9b94f619412d (patch)
tree8744778f6c7b92ea295a534d14a67623fbc90218 /robot/resources/openstack
parent01725a8d58667825e628bca495d2fbbdb1f95392 (diff)
parent00f125e0ace23eefab956fcb4a0d8084fa551d03 (diff)
Merge "Password Encryption and Logging"
Diffstat (limited to 'robot/resources/openstack')
-rw-r--r--robot/resources/openstack/keystone_interface.robot7
1 files changed, 5 insertions, 2 deletions
diff --git a/robot/resources/openstack/keystone_interface.robot b/robot/resources/openstack/keystone_interface.robot
index 4749eb08..b18674f7 100644
--- a/robot/resources/openstack/keystone_interface.robot
+++ b/robot/resources/openstack/keystone_interface.robot
@@ -54,7 +54,10 @@ Set Openstack Credentials
[Return] ${user} ${pass}
Get Openstack Credentials
- [Return] ${GLOBAL_INJECTED_OPENSTACK_USERNAME} ${GLOBAL_INJECTED_OPENSTACK_PASSWORD}
+ [Documentation] Returns the Decripted Password and openstack username using same api_key.txt as SO
+ ${DECRYPTED_OPENSTACK_PASSWORD}= Run echo -n ${GLOBAL_INJECTED_OPENSTACK_API_KEY} | xxd -r -p | openssl enc -aes-128-ecb -d -nopad -nosalt -K aa3871669d893c7fb8abbcda31b88b4f | tr -d '\x08'
+ [Return] ${GLOBAL_INJECTED_OPENSTACK_USERNAME} ${DECRYPTED_OPENSTACK_PASSWORD}
+
Get Keystone Url And Path
[Documentation] Handle arbitrary keystone identiit url. Add v2.0 if not present.
@@ -63,4 +66,4 @@ Get Keystone Url And Path
${version}= Evaluate ''
${version}= Set Variable If '${OPENSTACK_KEYSTONE_API_VERSION}' not in '${pieces.path}' ${OPENSTACK_KEYSTONE_API_VERSION} ${version}
${path}= Catenate ${pieces.path}${version}
- [Return] ${url} ${path} \ No newline at end of file
+ [Return] ${url} ${path}