Filip Krzywka | d95a670 | 2018-08-06 10:07:03 +0200 | [diff] [blame] | 1 | *** Settings *** |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame^] | 2 | Library DcaeAppSimulatorLibrary |
Filip Krzywka | e263475 | 2018-08-06 10:37:39 +0200 | [diff] [blame] | 3 | Library XnfSimulatorLibrary |
| 4 | Library VesHvContainersUtilsLibrary |
| 5 | Library Collections |
| 6 | |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame^] | 7 | Resource resources/common-keywords.robot |
| 8 | |
Filip Krzywka | e263475 | 2018-08-06 10:37:39 +0200 | [diff] [blame] | 9 | Suite Setup Message Routing Suite Setup |
| 10 | Suite Teardown VES-HV Collector Suite Teardown |
| 11 | Test Teardown VES-HV Collector Test Shutdown |
Filip Krzywka | d95a670 | 2018-08-06 10:07:03 +0200 | [diff] [blame] | 12 | |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame^] | 13 | *** Keywords *** |
| 14 | Message Routing Suite Setup |
| 15 | Log Started Suite: VES-HV Message Routing |
| 16 | ${XNF_PORTS_LIST}= Create List 7000 |
| 17 | Configure Valid xNF Simulators On Ports ${XNF_PORTS_LIST} |
| 18 | Log Suite setup finished |
| 19 | |
Filip Krzywka | 9318578 | 2018-08-06 09:31:40 +0200 | [diff] [blame] | 20 | *** Test Cases *** |
Filip Krzywka | e263475 | 2018-08-06 10:37:39 +0200 | [diff] [blame] | 21 | Correct Messages Routing |
| 22 | [Documentation] VES-HV Collector should route all valid messages to topics specified in configuration |
| 23 | ... and do not change message payload generated in XNF simulator |
| 24 | |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame^] | 25 | ${SIMULATORS_LIST}= Get Valid xNF Simulators 1 |
Filip Krzywka | e263475 | 2018-08-06 10:37:39 +0200 | [diff] [blame] | 26 | Send Messages From xNF Simulators ${SIMULATORS_LIST} ${XNF_FIXED_PAYLOAD_REQUEST} |
| 27 | |
Filip Krzywka | d95a670 | 2018-08-06 10:07:03 +0200 | [diff] [blame] | 28 | Wait until keyword succeeds 60 sec 5 sec |
Filip Krzywka | e263475 | 2018-08-06 10:37:39 +0200 | [diff] [blame] | 29 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_25000} |
Filip Krzywka | 81f5d52 | 2018-08-06 10:44:47 +0200 | [diff] [blame] | 30 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_FIXED_PAYLOAD_REQUEST} |
Filip Krzywka | e263475 | 2018-08-06 10:37:39 +0200 | [diff] [blame] | 31 | |
Jakub Dudycz | e50e917 | 2018-08-06 10:52:37 +0200 | [diff] [blame] | 32 | |
| 33 | Too big payload message handling |
| 34 | [Documentation] VES-HV Collector should interrupt the stream when encountered message with too big payload |
| 35 | |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame^] | 36 | ${SIMULATORS_LIST}= Get Valid xNF Simulators 1 |
Jakub Dudycz | e50e917 | 2018-08-06 10:52:37 +0200 | [diff] [blame] | 37 | Send Messages From xNF Simulators ${SIMULATORS_LIST} ${XNF_TOO_BIG_PAYLOAD_REQUEST} |
| 38 | |
| 39 | Wait until keyword succeeds 60 sec 5 sec |
| 40 | ... Assert Dcae App Consumed Less Equal Than ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_25000} |
| 41 | |
| 42 | |
| 43 | Invalid wire frame message handling |
| 44 | [Documentation] VES-HV Collector should skip messages with invalid wire frame |
| 45 | |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame^] | 46 | ${SIMULATORS_LIST}= Get Valid xNF Simulators 1 |
Jakub Dudycz | e50e917 | 2018-08-06 10:52:37 +0200 | [diff] [blame] | 47 | Send Messages From xNF Simulators ${SIMULATORS_LIST} ${XNF_INVALID_WIRE_FRAME_REQUEST} |
| 48 | |
| 49 | Wait until keyword succeeds 60 sec 5 sec |
| 50 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_50000} |
| 51 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_INVALID_WIRE_FRAME_REQUEST} |
| 52 | |
| 53 | |
| 54 | Invalid GPB data message handling |
| 55 | [Documentation] VES-HV Collector should skip messages with invalid GPB data |
| 56 | |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame^] | 57 | ${SIMULATORS_LIST}= Get Valid xNF Simulators 1 |
Jakub Dudycz | e50e917 | 2018-08-06 10:52:37 +0200 | [diff] [blame] | 58 | Send Messages From xNF Simulators ${SIMULATORS_LIST} ${XNF_INVALID_GPB_DATA_REQUEST} |
| 59 | |
| 60 | Wait until keyword succeeds 60 sec 5 sec |
| 61 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_50000} |
| 62 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_INVALID_GPB_DATA_REQUEST} |
| 63 | |
| 64 | |
| 65 | Unsupported domain message handling |
| 66 | [Documentation] VES-HV Collector should skip messages with unsupported domain |
| 67 | |
Filip Krzywka | bc1f896 | 2018-09-03 11:05:11 +0200 | [diff] [blame^] | 68 | ${SIMULATORS_LIST}= Get Valid xNF Simulators 1 |
Jakub Dudycz | e50e917 | 2018-08-06 10:52:37 +0200 | [diff] [blame] | 69 | Send Messages From xNF Simulators ${SIMULATORS_LIST} ${XNF_UNSUPPORTED_DOMAIN_REQUEST} |
| 70 | |
| 71 | Wait until keyword succeeds 60 sec 5 sec |
| 72 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_50000} |
| 73 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_UNSUPPORTED_DOMAIN_REQUEST} |
| 74 | |
Filip Krzywka | e263475 | 2018-08-06 10:37:39 +0200 | [diff] [blame] | 75 | *** Variables *** |
| 76 | ${HTTP_METHOD_URL} http:// |
| 77 | |
| 78 | ${XNF_SIM_API_PATH} /simulator/async |
| 79 | |
| 80 | ${VES_HV_SCENARIOS} %{WORKSPACE}/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios |
| 81 | ${XNF_FIXED_PAYLOAD_REQUEST} ${VES_HV_SCENARIOS}/fixed-payload/xnf-fixed-payload-request.json |
Jakub Dudycz | e50e917 | 2018-08-06 10:52:37 +0200 | [diff] [blame] | 82 | ${XNF_TOO_BIG_PAYLOAD_REQUEST} ${VES_HV_SCENARIOS}/too-big-payload/xnf-too-big-payload-request.json |
| 83 | ${XNF_INVALID_WIRE_FRAME_REQUEST} ${VES_HV_SCENARIOS}/invalid-wire-frame/xnf-invalid-wire-frame-request.json |
| 84 | ${XNF_INVALID_GPB_DATA_REQUEST} ${VES_HV_SCENARIOS}/invalid-gpb-data/xnf-invalid-gpb-data-request.json |
| 85 | ${XNF_UNSUPPORTED_DOMAIN_REQUEST} ${VES_HV_SCENARIOS}/unsupported-domain/xnf-unsupported-domain-request.json |
Filip Krzywka | e263475 | 2018-08-06 10:37:39 +0200 | [diff] [blame] | 86 | |
Jakub Dudycz | e50e917 | 2018-08-06 10:52:37 +0200 | [diff] [blame] | 87 | ${DCAE_FIXED_PAYLOAD_REQUEST} ${VES_HV_SCENARIOS}/fixed-payload/dcae-fixed-payload-request.json |
| 88 | ${DCAE_INVALID_WIRE_FRAME_REQUEST} ${VES_HV_SCENARIOS}/invalid-wire-frame/dcae-invalid-wire-frame-request.json |
| 89 | ${DCAE_INVALID_GPB_DATA_REQUEST} ${VES_HV_SCENARIOS}/invalid-gpb-data/dcae-invalid-gpb-data-request.json |
| 90 | ${DCAE_UNSUPPORTED_DOMAIN_REQUEST} ${VES_HV_SCENARIOS}/unsupported-domain/dcae-unsupported-domain-request.json |
| 91 | |
| 92 | ${AMOUNT_25000} 25000 |
| 93 | ${AMOUNT_50000} 50000 |