blob: 733719dbd869054bb0a0488a1d4f1089e4d589fa [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
4Test Timeout 3m
DR695He8941da2019-05-17 16:30:16 -04005Resource ../resources/global_properties.robot
6Resource ../resources/dcae/hvves.robot
DR695H0ca56d12019-05-14 11:48:20 -04007Library OperatingSystem
DR695H59b54c82019-06-03 18:44:17 -04008Library ONAPLibrary.Protobuf
marekpl503647c2018-10-24 14:33:25 +02009
10*** Test Cases ***
11HV-VES test case
marekplea9d2092019-05-17 12:12:16 +020012 Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${hvves_kafka_topic}
marekpl615214f2019-05-07 17:03:56 +020013 Start HV-VES TCP Client And Send Message ${GLOBAL_DCAE_HVVES_SERVER_NAME} ${GLOBAL_DCAE_HVVES_SERVER_PORT}
marekplea9d2092019-05-17 12:12:16 +020014 Wait Until Keyword Succeeds 30s 5s Check If Topic Exists ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${hvves_kafka_topic}
15 Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${hvves_kafka_topic}
DR695H59b54c82019-06-03 18:44:17 -040016 ${msg}= Decode Last Message From Topic ${GLOBAL_DMAAP_KAFKA_SERVER_NAME} ${GLOBAL_DMAAP_KAFKA_SERVER_PORT} ${hvves_kafka_topic} ${security_protocol} ${sasl_mechanisms} ${GLOBAL_DMAAP_KAFKA_JAAS_USERNAME} ${GLOBAL_DMAAP_KAFKA_JAAS_PASSWORD}
17 ${results}= Compare File To Message ${EXECDIR}/robot/assets/dcae/hvves_msg.raw ${msg}
18 Should Be True ${results}