Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [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 |
| 14 | Configure xNF Simulators Using Valid Certificates On Ports ${XNF_PORTS_LIST} |
| 15 | Log Suite setup finished |
| 16 | |
| 17 | *** Test Cases *** |
| 18 | Handle 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 Wu | 13111e9 | 2018-09-27 11:31:33 -0700 | [diff] [blame] | 30 | ${VES_HV_SCENARIOS} %{WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 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 |