blob: 862a2bc6a36b7c1635fcec15d3fdf76c3d7ffd58 [file] [log] [blame]
Pawel Biniek965bd032018-08-06 11:00:59 +02001*** 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
Kornel Janiak68a1bbc2018-08-06 11:09:31 +020014 Configure Valid xNF Simulators On Ports ${XNF_PORTS_LIST}
Pawel Biniek965bd032018-08-06 11:00:59 +020015 Log Suite setup finished
16
17*** Test Cases ***
18Handle Multiple Connections
19 [Documentation] VES-HV Collector should handle multiple incoming transmissions
20
Kornel Janiak68a1bbc2018-08-06 11:09:31 +020021 ${SIMULATORS_LIST}= Get Valid xNF Simulators 3
Pawel Biniek965bd032018-08-06 11:00:59 +020022 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 ***
30${VES_HV_SCENARIOS} %{WORKSPACE}/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios
31
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