Pawel Biniek | 965bd03 | 2018-08-06 11:00:59 +0200 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Library DcaeAppSimulatorLibrary |
| 3 | |
| 4 | Resource resources/common-keywords.robot |
| 5 | |
| 6 | Suite Setup Multiple Clients Handling Suite Setup |
| 7 | Suite Teardown VES-HV Collector Suite Teardown |
| 8 | Test Teardown VES-HV Collector Test Shutdown |
| 9 | |
| 10 | *** Keywords *** |
| 11 | Multiple Clients Handling Suite Setup |
| 12 | Log Started Suite: VES-HV Multiple Clients Handling |
| 13 | ${XNF_PORTS_LIST}= Create List 7000 7001 7002 |
Kornel Janiak | 68a1bbc | 2018-08-06 11:09:31 +0200 | [diff] [blame] | 14 | Configure Valid xNF Simulators On Ports ${XNF_PORTS_LIST} |
Pawel Biniek | 965bd03 | 2018-08-06 11:00:59 +0200 | [diff] [blame] | 15 | Log Suite setup finished |
| 16 | |
| 17 | *** Test Cases *** |
| 18 | Handle Multiple Connections |
| 19 | [Documentation] VES-HV Collector should handle multiple incoming transmissions |
| 20 | |
Kornel Janiak | 68a1bbc | 2018-08-06 11:09:31 +0200 | [diff] [blame] | 21 | ${SIMULATORS_LIST}= Get Valid xNF Simulators 3 |
Pawel Biniek | 965bd03 | 2018-08-06 11:00:59 +0200 | [diff] [blame] | 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 *** |
| 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 |