Filip Krzywka | 66e2ad6 | 2019-03-20 14:03:02 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # csit-dcaegen2-collectors-hv-ves |
| 3 | # ================================================================================ |
Filip Krzywka | 66d4335 | 2019-04-05 13:14:45 +0200 | [diff] [blame] | 4 | # Copyright (C) 2018-2019 NOKIA |
Filip Krzywka | 66e2ad6 | 2019-03-20 14:03:02 +0100 | [diff] [blame] | 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 | |
| 22 | Resource resources/common-keywords.robot |
| 23 | |
| 24 | Suite Setup Multiple Clients Handling Suite Setup |
| 25 | Suite Teardown VES-HV Collector Suite Teardown |
| 26 | Test Teardown VES-HV Collector Test Shutdown |
| 27 | |
| 28 | *** Keywords *** |
| 29 | Multiple Clients Handling Suite Setup |
| 30 | Log Started Suite: VES-HV Multiple Clients Handling |
| 31 | ${XNF_PORTS_LIST}= Create List 7000 7001 7002 |
| 32 | Configure xNF Simulators Using Valid Certificates On Ports ${XNF_PORTS_LIST} |
| 33 | Log Suite setup finished |
| 34 | |
| 35 | *** Test Cases *** |
| 36 | Handle Multiple Connections |
| 37 | [Documentation] VES-HV Collector should handle multiple incoming transmissions |
| 38 | |
| 39 | ${SIMULATORS_LIST}= Get xNF Simulators Using Valid Certificates 3 |
| 40 | Send Messages From xNF Simulators ${SIMULATORS_LIST} ${XNF_SMALLER_PAYLOAD_REQUEST} |
| 41 | |
| 42 | Wait until keyword succeeds 60 sec 5 sec |
Filip Krzywka | 66d4335 | 2019-04-05 13:14:45 +0200 | [diff] [blame] | 43 | ... Assert Dcae App Consumed ${DEFAULT_PERF3GPP_TOPIC} ${AMOUNT_15000} |
| 44 | Assert Dcae App Consumed Proper Messages ${DEFAULT_PERF3GPP_TOPIC} ${DCAE_SMALLER_PAYLOAD_REQUEST} |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 45 | |
| 46 | |
| 47 | *** Variables *** |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 48 | ${HV_VES_SCENARIOS} %{WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 49 | |
Jakub Dudycz | f344afa | 2019-03-25 16:04:58 +0100 | [diff] [blame] | 50 | ${XNF_SMALLER_PAYLOAD_REQUEST} ${HV_VES_SCENARIOS}/multiple-simulators-payload/xnf-simulator-smaller-valid-request.json |
| 51 | ${DCAE_SMALLER_PAYLOAD_REQUEST} ${HV_VES_SCENARIOS}/multiple-simulators-payload/dcae-smaller-valid-request.json |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 52 | |
| 53 | ${AMOUNT_15000} 15000 |