From: Fiete Ostkamp Date: Wed, 19 Mar 2025 10:43:29 +0000 (+0100) Subject: Undo changing how kafka secret is obtained in hvves tests X-Git-Tag: 1.14.1~5 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F04%2F140504%2F1;p=testsuite.git Undo changing how kafka secret is obtained in hvves tests - due to how the gating tests are run, the environment variable approach doesn't work Issue-ID: INT-2304 Change-Id: I48846e8c4cc5ba48f098751c2f51bff56a9a7898 Signed-off-by: Fiete Ostkamp --- diff --git a/robot/resources/dcae/hvves.robot b/robot/resources/dcae/hvves.robot index 06eb473b..9d90b798 100644 --- a/robot/resources/dcae/hvves.robot +++ b/robot/resources/dcae/hvves.robot @@ -11,6 +11,8 @@ 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. @@ -21,6 +23,9 @@ Send Message Decode Last Message From Topic [Documentation] Decode last message from Kafka topic. [Arguments] ${kafka_server} ${kafka_topic} ${username} - Connect kafka ${kafka_server} ${username} %{KAFKA_PASSWORD} SCRAM-SHA-512 + ${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 ${msg}= Consume kafka ${kafka_topic} [Return] ${msg}