diff options
author | 2018-08-06 11:00:59 +0200 | |
---|---|---|
committer | 2018-08-31 07:47:39 +0200 | |
commit | 965bd032497217f456e31686db270f3e144b4821 (patch) | |
tree | f81c00ab88d7955418dad57e8419452a1f493a03 /test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot | |
parent | e50e917ae48352c8b6f7c537027250e000d0086c (diff) |
Write HV-VES testcase for multiple clients
- renamed messages routing suite file to reflect what
tests it's covering
- extracted common robot keywords related to xNF simulators creation
from messages routing suite to separate resource file
- written test suite for handling multiple clients at once
Change-Id: If80d2d91ae96a0432fd4b6e51bce26796ee9200b
Issue-ID: DCAEGEN2-687
Signed-off-by: pbiniek <pawel.biniek@nokia.com>
Diffstat (limited to 'test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot')
-rw-r--r-- | test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot b/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot new file mode 100644 index 000000000..af4cd71da --- /dev/null +++ b/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/common-keywords.robot @@ -0,0 +1,38 @@ +*** Settings *** +Library XnfSimulatorLibrary +Library VesHvContainersUtilsLibrary +Library Collections + +*** Keywords *** +Configure xNF Simulators On Ports + [Arguments] ${XNF_PORTS_LIST} + ${XNF_SIMULATORS_ADDRESSES}= Start Xnf Simulators ${XNF_PORTS_LIST} True + Set Suite Variable ${XNF_SIMULATORS_ADDRESSES} + + +Get xNF Simulators + [Arguments] ${AMOUNT} + ${SIMULATORS}= Get Slice From List ${XNF_SIMULATORS_ADDRESSES} 0 ${AMOUNT} + [Return] ${SIMULATORS} + + +Send Messages From xNF Simulators + [Arguments] ${XNF_HOSTS_LIST} ${MESSAGE_FILEPATH} + :FOR ${HOST} IN @{XNF_HOSTS_LIST} + \ ${XNF_SIM_API_ACCESS}= Get xNF Sim Api Access Url ${HTTP_METHOD_URL} ${HOST} + \ ${XNF_SIM_API_URL}= Catenate SEPARATOR= ${XNF_SIM_API_ACCESS} ${XNF_SIM_API_PATH} + \ Send messages ${XNF_SIM_API_URL} ${MESSAGE_FILEPATH} + + +VES-HV Collector Test Shutdown + Reset DCAE App Simulator ${DCAE_APP_API_MESSAGE_RESET_URL} + + +VES-HV Collector Suite Teardown + Stop And Remove All Xnf Simulators + +*** Variables *** +${HTTP_METHOD_URL} http:// + +${XNF_SIM_API_PATH} /simulator/async + |