Password Encryption and Logging 33/64833/1
authorBrian Freeman <bf1936@att.com>
Wed, 5 Sep 2018 18:03:48 +0000 (13:03 -0500)
committerBrian Freeman <bf1936@att.com>
Wed, 5 Sep 2018 18:03:55 +0000 (13:03 -0500)
Issue-ID: INT-515
Change-Id: I96c5daede6c6437493f854afa3fd24f70a95ed77
Signed-off-by: Brian Freeman <bf1936@att.com>
robot/resources/asdc_interface.robot
robot/resources/openstack/keystone_interface.robot
runTags.sh

index 9dc3254..3e33fde 100644 (file)
@@ -423,13 +423,13 @@ Run ASDC Health Check
     ${uuid}=    Generate UUID
     ${headers}=  Create Dictionary     Accept=application/json    Content-Type=application/json    X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}
     ${resp}=   Get Request     asdc    ${ASDC_HEALTH_CHECK_PATH}     headers=${headers}
-    Should Be Equal As Strings         ${resp.status_code}     200
+    Should Be Equal As Strings         ${resp.status_code}     200    SDC DOWN
     ${SDC_DE_HEALTH}=    Catenate   DOWN
     @{ITEMS}=    Copy List    ${resp.json()['componentsInfo']}
     :FOR    ${ELEMENT}    IN    @{ITEMS}
     \    Log    ${ELEMENT['healthCheckStatus']}
     \    ${SDC_DE_HEALTH}  Set Variable If   (('DE' in '${ELEMENT['healthCheckComponent']}') and ('${ELEMENT['healthCheckStatus']}' == 'UP')) or ('${SDC_DE_HEALTH}'=='UP')  UP
-    Should Be Equal As Strings    ${SDC_DE_HEALTH}     UP
+    Should Be Equal As Strings    ${SDC_DE_HEALTH}     UP     SDC_DE DOWN
 Run ASDC Get Request
     [Documentation]    Runs an ASDC get request
     [Arguments]    ${data_path}    ${user}=${ASDC_DESIGNER_USER_ID}  ${MY_ASDC_BE_ENDPOINT}=${ASDC_BE_ENDPOINT}
index 4749eb0..b18674f 100644 (file)
@@ -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}
index 08ffe53..57215d1 100755 (executable)
@@ -21,6 +21,7 @@ OUTPUT_FOLDER=${OUTPUT_FOLDER:-$DEFAULT_OUTPUT_FOLDER}
 
 VARIABLEFILES=
 LISTENERS=
+VARIABLES="--removekeywords name:keystone_interface.*"
 
 ## Single argument, it is an include tag
 if [ $# -eq 1 ]; then