blob: a67b0c3cb77e20022354d103dc4bdb79bdf4289a [file] [log] [blame]
marekpl503647c2018-10-24 14:33:25 +02001*** Settings ***
2Documentation HV-VES 'Sunny Scenario' Robot Framwork test - message is sent to the collector and Kafka topic is checked if the message has been published.
krzysztof kuzmicki99775bd2019-03-21 09:48:13 +01003Default Tags HVVES ete
marekpl62c91a92018-10-29 12:13:58 +01004Test Timeout 10s
marekpl503647c2018-10-24 14:33:25 +02005Resource ${EXECDIR}/robot/resources/global_properties.robot
6Resource ${EXECDIR}/robot/resources/test_templates/hvves_template.robot
7Suite Teardown Reset Rammbock
8
9*** Variables ***
10
11*** Test Cases ***
12HV-VES test case
13 ${msg_number_initial}= Check Number Of Messages On Topic ${GLOBAL_DNS_MESSAGE_ROUTER_KAFKA_NAME} ${GLOBAL_MESSAGE_ROUTER_KAFKA_PORT} ${hvves_kafka_topic}
14 Define WTP Protocol
15 Start HV-VES TCP Client And Send Message ${GLOBAL_DNS_HV_VES_NAME} ${GLOBAL_HV_VES_SERVER_PORT}
marekpl62c91a92018-10-29 12:13:58 +010016 Wait Until Keyword Succeeds 5s 1s Check If Topic Exists ${GLOBAL_DNS_MESSAGE_ROUTER_KAFKA_NAME} ${GLOBAL_MESSAGE_ROUTER_KAFKA_PORT} ${hvves_kafka_topic}
marekpl503647c2018-10-24 14:33:25 +020017 ${msg_number_after}= Check Number Of Messages On Topic ${GLOBAL_DNS_MESSAGE_ROUTER_KAFKA_NAME} ${GLOBAL_MESSAGE_ROUTER_KAFKA_PORT} ${hvves_kafka_topic}
18 Should Not Be Equal As Integers ${msg_number_initial} ${msg_number_after}
19 Download VesEvent Proto File ${EXECDIR}
20 ${msg_decoded}= Decode Last Message From Topic ${GLOBAL_DNS_MESSAGE_ROUTER_KAFKA_NAME} ${GLOBAL_MESSAGE_ROUTER_KAFKA_PORT} ${hvves_kafka_topic} ${EXECDIR}
21 ${msg_decoded_template}= Get File ${EXECDIR}/robot/assets/templates/hvves/hvves_decoded_msg.template
22 Should Be Equal As Strings ${msg_decoded} ${msg_decoded_template}