diff options
author | Kornel Janiak <kornel.janiak@nokia.com> | 2018-08-06 11:09:31 +0200 |
---|---|---|
committer | Filip Krzywka <filip.krzywka@nokia.com> | 2018-08-31 07:47:39 +0200 |
commit | 68a1bbc74a26d4ffe3ad1b762c190f36901e785e (patch) | |
tree | 213e0b39f5ae6bb020cfbe0e502d4673fe7a1249 /test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources | |
parent | 965bd032497217f456e31686db270f3e144b4821 (diff) |
Write HV-VES testcase for SSL authorization
Change-Id: I4eeed5d3418c80d34ba8127bbbe9c49969a033ec
Issue-ID: DCAEGEN2-687
Signed-off-by: kjaniak <kornel.janiak@nokia.com>
Diffstat (limited to 'test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources')
2 files changed, 40 insertions, 5 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 index af4cd71da..345118657 100644 --- 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 @@ -4,15 +4,27 @@ Library VesHvContainersUtilsLibrary Library Collections *** Keywords *** -Configure xNF Simulators On Ports +Configure Valid xNF Simulators On Ports [Arguments] ${XNF_PORTS_LIST} - ${XNF_SIMULATORS_ADDRESSES}= Start Xnf Simulators ${XNF_PORTS_LIST} True - Set Suite Variable ${XNF_SIMULATORS_ADDRESSES} + ${VALID_XNF_SIMULATORS_ADDRESSES}= Start Xnf Simulators ${XNF_PORTS_LIST} True + Set Suite Variable ${VALID_XNF_SIMULATORS_ADDRESSES} -Get xNF Simulators +Configure Invalid xNF Simulators On Ports + [Arguments] ${XNF_PORTS_LIST} + ${INVALID_XNF_SIMULATORS_ADDRESSES}= Start Xnf Simulators ${XNF_PORTS_LIST} False + Set Suite Variable ${INVALID_XNF_SIMULATORS_ADDRESSES} + + +Get Valid xNF Simulators + [Arguments] ${AMOUNT} + ${SIMULATORS}= Get Slice From List ${VALID_XNF_SIMULATORS_ADDRESSES} 0 ${AMOUNT} + [Return] ${SIMULATORS} + + +Get Invalid xNF Simulators [Arguments] ${AMOUNT} - ${SIMULATORS}= Get Slice From List ${XNF_SIMULATORS_ADDRESSES} 0 ${AMOUNT} + ${SIMULATORS}= Get Slice From List ${INVALID_XNF_SIMULATORS_ADDRESSES} 0 ${AMOUNT} [Return] ${SIMULATORS} diff --git a/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios/authorization/xnf-valid-messages-request.json b/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios/authorization/xnf-valid-messages-request.json new file mode 100644 index 000000000..c71793d7d --- /dev/null +++ b/test/csit/tests/dcaegen2-collectors-hv-ves/testcases/resources/scenarios/authorization/xnf-valid-messages-request.json @@ -0,0 +1,23 @@ +[ + { + "commonEventHeader": { + "version": "sample-version", + "domain": "HVRANMEAS", + "sequence": 1, + "priority": 1, + "eventId": "sample-event-id", + "eventName": "sample-event-name", + "eventType": "sample-event-type", + "startEpochMicrosec": 120034455, + "lastEpochMicrosec": 120034455, + "nfNamingCode": "sample-nf-naming-code", + "nfcNamingCode": "sample-nfc-naming-code", + "reportingEntityId": "sample-reporting-entity-id", + "reportingEntityName": "sample-reporting-entity-name", + "sourceId": "sample-source-id", + "sourceName": "sample-source-name" + }, + "messageType": "VALID", + "messagesAmount": 500000 + } +]
\ No newline at end of file |