aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2/testcases/resources/dcae_keywords.robot
diff options
context:
space:
mode:
authorMaciej Malewski <maciej.malewski@nokia.com>2020-07-30 09:01:52 +0200
committerBogumil Zebek <bogumil.zebek@nokia.com>2020-08-03 09:59:34 +0000
commit6f58fd51da0b6f2a96492403e49547f1ba361aa0 (patch)
tree8f8d78804ee0d046958e84b6595da3da55d14462 /tests/dcaegen2/testcases/resources/dcae_keywords.robot
parent66eee8ddc9024899892630f35c8479b43c75a1df (diff)
CSITs for StndDefined event routing
Route stndDefined events to streams defined in namespace event field. Signed-off-by: Maciej Malewski <maciej.malewski@nokia.com> Issue-ID: DCAEGEN2-1771 Change-Id: I586d02b5e10f10ac117cf0e8a04c4a7ec02d8637
Diffstat (limited to 'tests/dcaegen2/testcases/resources/dcae_keywords.robot')
-rw-r--r--tests/dcaegen2/testcases/resources/dcae_keywords.robot8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/dcaegen2/testcases/resources/dcae_keywords.robot b/tests/dcaegen2/testcases/resources/dcae_keywords.robot
index 059372fb..52424e63 100644
--- a/tests/dcaegen2/testcases/resources/dcae_keywords.robot
+++ b/tests/dcaegen2/testcases/resources/dcae_keywords.robot
@@ -139,6 +139,13 @@ Publish Event To VES Collector With Put Method
${resp}= Put Request ${session} ${evtpath} data=${evtdata} headers=${suite_headers}
[Return] ${resp}
+Send Request And Validate Response And Error Message
+ [Documentation] Post singel event to passed url and validate received response code and content
+ [Arguments] ${keyword} ${session} ${evtpath} ${evtjson} ${resp_code} ${msg_content}
+ ${resp}= Send Request And Validate Response ${keyword} ${session} ${evtpath} ${evtjson} ${resp_code}
+ ${error_message}= Set Variable ${resp.json()['requestError']['ServiceException']['text']}
+ Should Be Equal As Strings ${msg_content} ${error_message}
+
Send Request And Validate Response
[Documentation] Post singel event to passed url with passed data and validate received response
[Arguments] ${keyword} ${session} ${evtpath} ${evtjson} ${resp_code} ${msg_code}=None ${topic}=None
@@ -149,6 +156,7 @@ Send Request And Validate Response
${isEmpty}= Is Json Empty ${resp}
Run Keyword If '${isEmpty}' == False Log ${resp.json()}
Run Keyword If '${msg_code}' != 'None' Check Whether Message Received ${msg_code} ${topic}
+ [Return] ${resp}
Check Whether Message Received
[Documentation] Validare if message has been received