marekpl | 503647c | 2018-10-24 14:33:25 +0200 | [diff] [blame] | 1 | *** Settings *** |
marekpl | f989890 | 2019-05-14 15:14:51 +0200 | [diff] [blame] | 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. |
marekpl | 615214f | 2019-05-07 17:03:56 +0200 | [diff] [blame] | 3 | Default Tags hvves ete |
| 4 | Test Timeout 3m |
DR695H | e8941da | 2019-05-17 16:30:16 -0400 | [diff] [blame] | 5 | Resource ../resources/global_properties.robot |
| 6 | Resource ../resources/dcae/hvves.robot |
DR695H | 0ca56d1 | 2019-05-14 11:48:20 -0400 | [diff] [blame] | 7 | Library OperatingSystem |
DR695H | 59b54c8 | 2019-06-03 18:44:17 -0400 | [diff] [blame] | 8 | Library ONAPLibrary.Protobuf |
marekpl | 503647c | 2018-10-24 14:33:25 +0200 | [diff] [blame] | 9 | |
| 10 | *** Test Cases *** |
| 11 | HV-VES test case |
marekpl | ea9d209 | 2019-05-17 12:12:16 +0200 | [diff] [blame] | 12 | Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${hvves_kafka_topic} |
marekpl | 615214f | 2019-05-07 17:03:56 +0200 | [diff] [blame] | 13 | Start HV-VES TCP Client And Send Message ${GLOBAL_DCAE_HVVES_SERVER_NAME} ${GLOBAL_DCAE_HVVES_SERVER_PORT} |
marekpl | ea9d209 | 2019-05-17 12:12:16 +0200 | [diff] [blame] | 14 | 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} |
DR695H | 59b54c8 | 2019-06-03 18:44:17 -0400 | [diff] [blame] | 16 | ${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} |