mrichomme | e706347 | 2020-05-14 10:08:03 +0200 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation HV-VES 'Sunny Scenario' Robot Framework test - message is sent to the collector and Kafka topic is checked if the message has been published. Content is decoded and checked. |
| 3 | Default Tags hvves ete |
mrichomme | 1fbff98 | 2020-05-15 14:38:29 +0200 | [diff] [blame] | 4 | Test Timeout 5m |
mrichomme | e706347 | 2020-05-14 10:08:03 +0200 | [diff] [blame] | 5 | Resource ../resources/global_properties.robot |
| 6 | Resource ../resources/dcae/hvves.robot |
| 7 | Library OperatingSystem |
| 8 | Library ONAPLibrary.Protobuf |
| 9 | |
| 10 | *** Variable *** |
| 11 | ${HVVES_KAFKA_TOPIC} HV_VES_PERF3GPP |
| 12 | ${HVVES_KAFKA_TOPIC_SSL} HV_VES_PERF3GPP_SSL |
| 13 | |
| 14 | *** Test Cases *** |
| 15 | HV-VES SSL test case |
mrichomme | 1fbff98 | 2020-05-15 14:38:29 +0200 | [diff] [blame] | 16 | [Setup] Run Process /app/setup-hvves.sh shell=yes |
Krzysztof Kuzmicki | 5eb7323 | 2022-05-06 14:07:52 +0200 | [diff] [blame] | 17 | ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist ${GLOBAL_KAFKA_BOOTSTRAP_SERVICE } |
| 18 | Run Keyword If "${status}"=="FAIL" Set Test Config message-router-kafka:9092 |
| 19 | ... ELSE Set Test Config ${GLOBAL_KAFKA_BOOTSTRAP_SERVICE } |
mrichomme | e706347 | 2020-05-14 10:08:03 +0200 | [diff] [blame] | 20 | Send Message Over Ssl ${GLOBAL_DCAE_HVVES_SERVER_NAME} ${GLOBAL_DCAE_HVVES_SERVER_PORT} |
Krzysztof Kuzmicki | 5eb7323 | 2022-05-06 14:07:52 +0200 | [diff] [blame] | 21 | Run Keyword If "${status}"=="FAIL" Wait Until Keyword Succeeds 10s 2s Check If Topic Exists ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${HVVES_KAFKA_TOPIC_SSL} |
| 22 | Run Keyword If "${status}"=="FAIL" Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${HVVES_KAFKA_TOPIC_SSL} |
Krzysztof Kuzmicki | 359e363 | 2022-05-05 12:10:40 +0200 | [diff] [blame] | 23 | ${status} ${data}= Run Keyword And Ignore Error Variable Should Exist ${GLOBAL_KAFKA_BOOTSTRAP_SERVICE } |
| 24 | ${msg}= Run Keyword If "${status}"=="FAIL" Decode Last Message From Topic ${GLOBAL_DMAAP_KAFKA_SERVER_NAME} ${GLOBAL_DMAAP_KAFKA_SERVER_PORT} ${HVVES_KAFKA_TOPIC_SSL} ${GLOBAL_DMAAP_KAFKA_JAAS_USERNAME} ${GLOBAL_DMAAP_KAFKA_JAAS_PASSWORD} |
Krzysztof Kuzmicki | 5eb7323 | 2022-05-06 14:07:52 +0200 | [diff] [blame] | 25 | ... ELSE Decode Last Message From Topic STRIMZI User ${GLOBAL_KAFKA_BOOTSTRAP_SERVICE} ${HVVES_KAFKA_TOPIC} ${GLOBAL_KAFKA_USER } |
mrichomme | e706347 | 2020-05-14 10:08:03 +0200 | [diff] [blame] | 26 | ${results}= Compare File To Message ${EXECDIR}/robot/assets/dcae/hvves_msg.raw ${msg} |
| 27 | Should Be True ${results} |
Joanna Jeremicz | d97e97c | 2021-09-01 16:03:41 +0200 | [diff] [blame] | 28 | [Teardown] Set Old Config |