blob: 383ef255cdfb979ab93f26ffec6cbde28fe935db [file] [log] [blame]
marekpl503647c2018-10-24 14:33:25 +02001*** Settings ***
marekplf9898902019-05-14 15:14:51 +02002Documentation 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.
marekpl615214f2019-05-07 17:03:56 +02003Default Tags hvves ete
marekplc78a7e42019-08-06 18:08:00 +02004Test Timeout 1m
DR695He8941da2019-05-17 16:30:16 -04005Resource ../resources/global_properties.robot
6Resource ../resources/dcae/hvves.robot
DR695H0ca56d12019-05-14 11:48:20 -04007Library OperatingSystem
marekplc78a7e42019-08-06 18:08:00 +02008Library ONAPLibrary.Protobuf
marekpl503647c2018-10-24 14:33:25 +02009
DR695H9d810d02019-06-18 17:16:25 -040010*** Variable ***
11${HVVES_KAFKA_TOPIC} HV_VES_PERF3GPP
marekplc78a7e42019-08-06 18:08:00 +020012${HVVES_KAFKA_TOPIC_SSL} HV_VES_PERF3GPP_SSL
DR695H9d810d02019-06-18 17:16:25 -040013
marekpl503647c2018-10-24 14:33:25 +020014*** Test Cases ***
15HV-VES test case
DR695H9d810d02019-06-18 17:16:25 -040016 Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${HVVES_KAFKA_TOPIC}
marekplc78a7e42019-08-06 18:08:00 +020017 Send Message ${GLOBAL_DCAE_HVVES_SERVER_NAME} ${GLOBAL_DCAE_HVVES_SERVER_PORT}
18 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}
DR695H9d810d02019-06-18 17:16:25 -040019 Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${HVVES_KAFKA_TOPIC}
20 ${msg}= Decode Last Message From Topic ${GLOBAL_DMAAP_KAFKA_SERVER_NAME} ${GLOBAL_DMAAP_KAFKA_SERVER_PORT} ${HVVES_KAFKA_TOPIC} ${GLOBAL_DMAAP_KAFKA_JAAS_USERNAME} ${GLOBAL_DMAAP_KAFKA_JAAS_PASSWORD}
DR695H59b54c82019-06-03 18:44:17 -040021 ${results}= Compare File To Message ${EXECDIR}/robot/assets/dcae/hvves_msg.raw ${msg}
marekplc78a7e42019-08-06 18:08:00 +020022 Should Be True ${results}
23HV-VES SSL test case
24 Mode ${HVVES_CONFIG_SSL}
25 Send Message Over Ssl ${GLOBAL_DCAE_HVVES_SERVER_NAME} ${GLOBAL_DCAE_HVVES_SERVER_PORT}
26 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}
27 Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${HVVES_KAFKA_TOPIC_SSL}
28 ${msg}= 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}
29 ${results}= Compare File To Message ${EXECDIR}/robot/assets/dcae/hvves_msg.raw ${msg}
30 Should Be True ${results}
31 [Teardown] Mode ${HVVES_CONFIG}