blob: 442639e2710810c0ae1f21f7bfd9715c9c2d7857 [file] [log] [blame]
Gary Wu9abb61c2018-09-27 10:38:50 -07001*** Settings ***
2Library DcaeAppSimulatorLibrary
3
4Resource resources/common-keywords.robot
5
6Suite Setup Multiple Clients Handling Suite Setup
7Suite Teardown VES-HV Collector Suite Teardown
8Test Teardown VES-HV Collector Test Shutdown
9
10*** Keywords ***
11Multiple Clients Handling Suite Setup
12 Log Started Suite: VES-HV Multiple Clients Handling
13 ${XNF_PORTS_LIST}= Create List 7000 7001 7002
14 Configure xNF Simulators Using Valid Certificates On Ports ${XNF_PORTS_LIST}
15 Log Suite setup finished
16
17*** Test Cases ***
18Handle Multiple Connections
19 [Documentation] VES-HV Collector should handle multiple incoming transmissions
20
21 ${SIMULATORS_LIST}= Get xNF Simulators Using Valid Certificates 3
22 Send Messages From xNF Simulators ${SIMULATORS_LIST} ${XNF_SMALLER_PAYLOAD_REQUEST}
23
24 Wait until keyword succeeds 60 sec 5 sec
25 ... Assert Dcae App Consumed ${DCAE_APP_API_MESSAGES_COUNT_URL} ${AMOUNT_15000}
26 Assert Dcae App Consumed Proper Messages ${DCAE_APP_API_MESSAGES_VALIDATION_URL} ${DCAE_SMALLER_PAYLOAD_REQUEST}
27
28
29*** Variables ***
Gary Wu13111e92018-09-27 11:31:33 -070030${VES_HV_SCENARIOS} %{WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios
Gary Wu9abb61c2018-09-27 10:38:50 -070031
32${XNF_SMALLER_PAYLOAD_REQUEST} ${VES_HV_SCENARIOS}/multiple-simulators-payload/xnf-simulator-smaller-valid-request.json
33${DCAE_SMALLER_PAYLOAD_REQUEST} ${VES_HV_SCENARIOS}/multiple-simulators-payload/dcae-smaller-valid-request.json
34
35${AMOUNT_15000} 15000