Fix uui healthcheck after chart change 18/140418/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 11 Mar 2025 08:30:59 +0000 (09:30 +0100)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 11 Mar 2025 08:39:13 +0000 (09:39 +0100)
- use actuator endpoint for healthcheck
- use KAFKA_PASSWORD env variable in hvves test

Issue-ID: INT-2302
Change-Id: I24674009ecf7c3e3c58513b04401c37d3b9cb934
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
robot/resources/dcae/hvves.robot
robot/resources/uui_interface.robot
robot/testsuites/hvves-ci.robot

index 9d90b79..06eb473 100644 (file)
@@ -11,8 +11,6 @@ Library    ONAPLibrary.Kafka
 *** Variables ***
 ${HVVES_MESSAGE}    \xaa\x01\x00\x00\x00\x00\x00\x01\x00\x00\x01'\n\x94\x02\n\x0esample-version\x12\x08perf3gpp\x18\x01 \x01*\nperf3GPP222\x11sample-event-name:\x11sample-event-type@\xf1\x9a\xfd\xdd\x05H\xf1\x9a\xfd\xdd\x05R\x15sample-nf-naming-codeZ\x16sample-nfc-naming-codeb\x15sample-nf-vendor-namej\x1asample-reporting-entity-idr\x1csample-reporting-entity-namez\x10sample-source-id\x82\x01\x0fsample-xnf-name\x8a\x01\tUTC+02:00\x92\x01\x057.0.2\x12\x0etest test test
 
-${KAFKA_GET_PASSWORD}      kubectl -n onap get secret strimzi-kafka-admin -o jsonpath="{.data.password}" | base64 -d
-
 *** Keywords ***
 Send Message
     [Documentation]     Sends message to HV-VES over TCP.
@@ -23,9 +21,6 @@ Send Message
 Decode Last Message From Topic
     [Documentation]     Decode last message from Kafka topic.
     [Arguments]     ${kafka_server}   ${kafka_topic}    ${username}
-    ${command_output} =                 Run And Return Rc And Output        ${KAFKA_GET_PASSWORD}
-    Should Be Equal As Integers         ${command_output[0]}                0
-    ${password}   Set Variable  ${command_output[1]}
-    Connect    kafka    ${kafka_server}    ${username}    ${password}   SCRAM-SHA-512
+    Connect    kafka    ${kafka_server}    ${username}    %{KAFKA_PASSWORD}   SCRAM-SHA-512
     ${msg}=     Consume    kafka    ${kafka_topic}
     [Return]    ${msg}
index 0b0e15e..98153b4 100644 (file)
@@ -6,7 +6,7 @@ Library            Collections
 Resource          global_properties.robot
 
 *** Variables ***
-${UUI_HEALTH_CHECK_PATH}        /api/usecaseui-server/v1/
+${UUI_HEALTH_CHECK_PATH}        /api/usecaseui-server/v1/actuator/health
 ${UUI_ENDPOINT}     ${GLOBAL_UUI_SERVER_PROTOCOL}://${GLOBAL_INJECTED_UUI_IP_ADDR}:${GLOBAL_UUI_SERVER_PORT}
 
 
@@ -20,7 +20,7 @@ Run UUI Get Request
      [Documentation]    Runs UUI Get request
      [Arguments]    ${data_path}
      ${session}=    Create Session   session   ${UUI_ENDPOINT}
-     ${resp}=   Get Request   session   ${data_path}
+     ${resp}=   GET On Session   session   ${data_path}
      Should Be Equal As Integers   ${resp.status_code}   200
      Log    Received response from UUI ${resp.text}
      [Return]    ${resp}
index 0413bb3..3cb5539 100644 (file)
@@ -11,7 +11,7 @@ Library    ONAPLibrary.Protobuf
 HV-VES test case
     ${status}    ${data}=    Run Keyword And Ignore Error   Variable Should Exist    ${GLOBAL_KAFKA_BOOTSTRAP_SERVICE}
     Send Message    ${GLOBAL_DCAE_HVVES_SERVER_NAME}        ${GLOBAL_DCAE_HVVES_SERVER_PORT}
-    Sleep   10s
+    Sleep   2s
     ${msg}=  Run Keyword  Decode Last Message From Topic    ${GLOBAL_KAFKA_BOOTSTRAP_SERVICE}   HV_VES_PERF3GPP  ${GLOBAL_KAFKA_USER}
     ${results}=    Compare File To Message    ${EXECDIR}/robot/assets/dcae/hvves_msg.raw    ${msg}
     Should Be True    ${results}