blob: 109ec469eeb8366f0c0c810af67cc39b33de8d3b [file] [log] [blame]
Filip Krzywka66e2ad62019-03-20 14:03:02 +01001# ============LICENSE_START=======================================================
2# csit-dcaegen2-collectors-hv-ves
3# ================================================================================
Filip Krzywka66d43352019-04-05 13:14:45 +02004# Copyright (C) 2018-2019 NOKIA
Filip Krzywka66e2ad62019-03-20 14:03:02 +01005# ================================================================================
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 Wu9abb61c2018-09-27 10:38:50 -070019*** Settings ***
20Library DcaeAppSimulatorLibrary
21
22Resource resources/common-keywords.robot
23
24Suite Setup Multiple Clients Handling Suite Setup
25Suite Teardown VES-HV Collector Suite Teardown
26Test Teardown VES-HV Collector Test Shutdown
27
28*** Keywords ***
29Multiple 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 ***
36Handle 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 Krzywka66d43352019-04-05 13:14:45 +020043 ... Assert Dcae App Consumed ${DEFAULT_PERF3GPP_TOPIC} ${AMOUNT_15000}
44 Assert Dcae App Consumed Proper Messages ${DEFAULT_PERF3GPP_TOPIC} ${DCAE_SMALLER_PAYLOAD_REQUEST}
Gary Wu9abb61c2018-09-27 10:38:50 -070045
46
47*** Variables ***
Jakub Dudyczf344afa2019-03-25 16:04:58 +010048${HV_VES_SCENARIOS} %{WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios
Gary Wu9abb61c2018-09-27 10:38:50 -070049
Jakub Dudyczf344afa2019-03-25 16:04:58 +010050${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 Wu9abb61c2018-09-27 10:38:50 -070052
53${AMOUNT_15000} 15000