Update VES Collector CSIT
[integration/csit.git] / tests / dcaegen2 / testcases / resources / dcae_keywords.robot
index 16a8a8a..89a8786 100644 (file)
@@ -4,6 +4,7 @@ Library               RequestsLibrary
 Library                  DcaeLibrary
 Library           OperatingSystem
 Library           Collections
+Library           CertsLibrary
 Variables         ../resources/DcaeVariables.py
 Resource          ../../../common.robot
 Resource          ../resources/dcae_properties.robot
@@ -13,7 +14,7 @@ Create sessions
     [Documentation]  Create all required sessions
     ${auth}=  Create List  ${VESC_HTTPS_USER}   ${VESC_HTTPS_PD}
     ${wrong_auth}=  Create List  ${VESC_HTTPS_WRONG_USER}  ${VESC_HTTPS_WRONG_PD}
-    ${certs}=  Create List  ${VESC_ROOTCA_CERT}  ${VESC_ROOTCA_KEY}
+    ${certs}=  Create List  ${VESC_CERT}  ${VESC_KEY}
     ${wrong_certs}=  Create List  ${VESC_WRONG_CERT}  ${VESC_WRONG_KEY}
     ${outdated_certs}=  Create List  ${VESC_OUTDATED_CERT}  ${VESC_OUTDATED_KEY}
     Create Session    dcae_vesc_url    ${VESC_URL}
@@ -166,7 +167,8 @@ Send Request And Expect Error
 
 Run Healthcheck
     [Documentation]  Run Healthcheck
+    [Arguments]  ${session}
     ${uuid}=    Generate UUID
     ${headers}=  Create Dictionary     Accept=*/*     X-TransactionId=${GLOBAL_APPLICATION_ID}-${uuid}    X-FromAppId=${GLOBAL_APPLICATION_ID}
-    ${resp}=   Get Request     ${http_session}         /healthcheck        headers=${headers}
+    ${resp}=   Get Request     ${session}      /healthcheck        headers=${headers}
     Should Be Equal As Strings         ${resp.status_code}     200