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 |
marekpl | c78a7e4 | 2019-08-06 18:08:00 +0200 | [diff] [blame^] | 4 | Test Timeout 1m |
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 |
marekpl | c78a7e4 | 2019-08-06 18:08:00 +0200 | [diff] [blame^] | 8 | Library ONAPLibrary.Protobuf |
marekpl | 503647c | 2018-10-24 14:33:25 +0200 | [diff] [blame] | 9 | |
DR695H | 9d810d0 | 2019-06-18 17:16:25 -0400 | [diff] [blame] | 10 | *** Variable *** |
| 11 | ${HVVES_KAFKA_TOPIC} HV_VES_PERF3GPP |
marekpl | c78a7e4 | 2019-08-06 18:08:00 +0200 | [diff] [blame^] | 12 | ${HVVES_KAFKA_TOPIC_SSL} HV_VES_PERF3GPP_SSL |
DR695H | 9d810d0 | 2019-06-18 17:16:25 -0400 | [diff] [blame] | 13 | |
marekpl | 503647c | 2018-10-24 14:33:25 +0200 | [diff] [blame] | 14 | *** Test Cases *** |
| 15 | HV-VES test case |
DR695H | 9d810d0 | 2019-06-18 17:16:25 -0400 | [diff] [blame] | 16 | Check Message Router Api ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_NAME} ${GLOBAL_DMAAP_MESSAGE_ROUTER_SERVER_PORT} ${HVVES_KAFKA_TOPIC} |
marekpl | c78a7e4 | 2019-08-06 18:08:00 +0200 | [diff] [blame^] | 17 | 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} |
DR695H | 9d810d0 | 2019-06-18 17:16:25 -0400 | [diff] [blame] | 19 | 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} |
DR695H | 59b54c8 | 2019-06-03 18:44:17 -0400 | [diff] [blame] | 21 | ${results}= Compare File To Message ${EXECDIR}/robot/assets/dcae/hvves_msg.raw ${msg} |
marekpl | c78a7e4 | 2019-08-06 18:08:00 +0200 | [diff] [blame^] | 22 | Should Be True ${results} |
| 23 | HV-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} |