Filip Krzywka | 66e2ad6 | 2019-03-20 14:03:02 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # csit-dcaegen2-collectors-hv-ves |
| 3 | # ================================================================================ |
| 4 | # Copyright (C) 2018-2019 NOKIA |
| 5 | # ================================================================================ |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | # you may not use this file except in compliance with the License. |
| 8 | # You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | # See the License for the specific language governing permissions and |
| 16 | # limitations under the License. |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 19 | *** Settings *** |
| 20 | Library DcaeAppSimulatorLibrary |
| 21 | Library XnfSimulatorLibrary |
| 22 | Library VesHvContainersUtilsLibrary |
| 23 | Library Collections |
| 24 | |
| 25 | Resource resources/common-keywords.robot |
| 26 | |
| 27 | Suite Setup Message Routing Suite Setup |
| 28 | Suite Teardown VES-HV Collector Suite Teardown |
| 29 | Test Teardown VES-HV Collector Test Shutdown |
| 30 | |
| 31 | *** Keywords *** |
| 32 | Message Routing Suite Setup |
| 33 | Log Started Suite: VES-HV Message Routing |
Filip Krzywka | 999743a | 2019-04-02 10:34:35 +0200 | [diff] [blame] | 34 | Configure Single xNF Simulator |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 35 | Log Suite setup finished |
| 36 | |
| 37 | *** Test Cases *** |
| 38 | Correct Messages Routing |
| 39 | [Documentation] VES-HV Collector should route all valid messages to topics specified in configuration |
| 40 | ... and do not change message payload generated in XNF simulator |
| 41 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 42 | Send Messages From xNF Simulators ${XNF_SIMULATOR} ${XNF_FIXED_PAYLOAD_REQUEST} |
| 43 | |
| 44 | Wait until keyword succeeds 60 sec 5 sec |
| 45 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_25000} |
| 46 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_FIXED_PAYLOAD_REQUEST} |
| 47 | |
| 48 | |
| 49 | Too big payload message handling |
| 50 | [Documentation] VES-HV Collector should interrupt the stream when encountered message with too big payload |
| 51 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 52 | Send Messages From xNF Simulators ${XNF_SIMULATOR} ${XNF_TOO_BIG_PAYLOAD_REQUEST} |
| 53 | |
| 54 | Wait until keyword succeeds 60 sec 5 sec |
Filip Krzywka | 6a82c36 | 2019-03-05 09:00:40 +0100 | [diff] [blame] | 55 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_25000} |
| 56 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_TOO_BIG_PAYLOAD_REQUEST} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 57 | |
| 58 | |
| 59 | Invalid wire frame message handling |
| 60 | [Documentation] VES-HV Collector should skip messages with invalid wire frame |
| 61 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 62 | Send Messages From xNF Simulators ${XNF_SIMULATOR} ${XNF_INVALID_WIRE_FRAME_REQUEST} |
| 63 | |
| 64 | Wait until keyword succeeds 60 sec 5 sec |
| 65 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_50000} |
| 66 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_INVALID_WIRE_FRAME_REQUEST} |
| 67 | |
| 68 | |
| 69 | Invalid GPB data message handling |
| 70 | [Documentation] VES-HV Collector should skip messages with invalid GPB data |
| 71 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 72 | Send Messages From xNF Simulators ${XNF_SIMULATOR} ${XNF_INVALID_GPB_DATA_REQUEST} |
| 73 | |
| 74 | Wait until keyword succeeds 60 sec 5 sec |
| 75 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_50000} |
| 76 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_INVALID_GPB_DATA_REQUEST} |
| 77 | |
| 78 | |
| 79 | Unsupported domain message handling |
| 80 | [Documentation] VES-HV Collector should skip messages with unsupported domain |
| 81 | |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 82 | Send Messages From xNF Simulators ${XNF_SIMULATOR} ${XNF_UNSUPPORTED_DOMAIN_REQUEST} |
| 83 | |
| 84 | Wait until keyword succeeds 60 sec 5 sec |
| 85 | ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_50000} |
| 86 | Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_UNSUPPORTED_DOMAIN_REQUEST} |
| 87 | |
| 88 | *** Variables *** |
| 89 | ${HTTP_METHOD_URL} http:// |
| 90 | |
| 91 | ${XNF_SIM_API_PATH} /simulator/async |
| 92 | |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 93 | ${HV_VES_SCENARIOS} %{WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios |
| 94 | ${XNF_FIXED_PAYLOAD_REQUEST} ${HV_VES_SCENARIOS}/fixed-payload/xnf-fixed-payload-request.json |
| 95 | ${XNF_TOO_BIG_PAYLOAD_REQUEST} ${HV_VES_SCENARIOS}/too-big-payload/xnf-too-big-payload-request.json |
| 96 | ${XNF_INVALID_WIRE_FRAME_REQUEST} ${HV_VES_SCENARIOS}/invalid-wire-frame/xnf-invalid-wire-frame-request.json |
| 97 | ${XNF_INVALID_GPB_DATA_REQUEST} ${HV_VES_SCENARIOS}/invalid-gpb-data/xnf-invalid-gpb-data-request.json |
| 98 | ${XNF_UNSUPPORTED_DOMAIN_REQUEST} ${HV_VES_SCENARIOS}/unsupported-domain/xnf-unsupported-domain-request.json |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 99 | |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 100 | ${DCAE_FIXED_PAYLOAD_REQUEST} ${HV_VES_SCENARIOS}/fixed-payload/dcae-fixed-payload-request.json |
| 101 | ${DCAE_TOO_BIG_PAYLOAD_REQUEST} ${HV_VES_SCENARIOS}/too-big-payload/dcae-too-big-payload-request.json |
| 102 | ${DCAE_INVALID_WIRE_FRAME_REQUEST} ${HV_VES_SCENARIOS}/invalid-wire-frame/dcae-invalid-wire-frame-request.json |
| 103 | ${DCAE_INVALID_GPB_DATA_REQUEST} ${HV_VES_SCENARIOS}/invalid-gpb-data/dcae-invalid-gpb-data-request.json |
| 104 | ${DCAE_UNSUPPORTED_DOMAIN_REQUEST} ${HV_VES_SCENARIOS}/unsupported-domain/dcae-unsupported-domain-request.json |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 105 | |
| 106 | ${AMOUNT_25000} 25000 |
| 107 | ${AMOUNT_50000} 50000 |