diff options
author | 2019-06-03 11:46:23 +0200 | |
---|---|---|
committer | 2019-06-04 15:57:42 +0200 | |
commit | e98a725cf73e84c2d3808bbae2067a8863dd5ca7 (patch) | |
tree | b9dffae7260d37cf8d094483365bf523a24fb1fb /tests/dcaegen2/prh-testcases/resources/prh_library.robot | |
parent | fffb18083b967e82c2dcb746a1fd51961500ddbe (diff) |
Refactor PrhLibrary.py
Issue-ID: INT-1094
Signed-off-by: biniek <lukasz.biniek@nokia.com>
Change-Id: Ic946c3ce58b3d94e4d8e3c4f206be4b707c31084
Diffstat (limited to 'tests/dcaegen2/prh-testcases/resources/prh_library.robot')
-rw-r--r-- | tests/dcaegen2/prh-testcases/resources/prh_library.robot | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/dcaegen2/prh-testcases/resources/prh_library.robot b/tests/dcaegen2/prh-testcases/resources/prh_library.robot index 1fae1005..6302ef76 100644 --- a/tests/dcaegen2/prh-testcases/resources/prh_library.robot +++ b/tests/dcaegen2/prh-testcases/resources/prh_library.robot @@ -25,8 +25,9 @@ Verify event with missing required field is logged [Arguments] ${test_case_directory} ${invalid_ves_event}= Get Data From File ${test_case_directory}/invalid-ves-event.json Set VES event in DMaaP ${invalid_ves_event} - ${error_msg}= Create event parsing error ${invalid_ves_event} - Wait Until Keyword Succeeds 10x 3000ms Check PRH log ${error_msg} + ${notification}= Create invalid notification ${invalid_ves_event} + ${error_msg}= Set Variable Incorrect json, consumerDmaapModel can not be created: + Wait Until Keyword Succeeds 10x 3000ms Check PRH json log ${error_msg} ${notification} Verify incorrect JSON event is logged [Timeout] 60s @@ -77,6 +78,11 @@ Check PRH log ${found}= Find log entry ${log_entry} Should Be True ${found} +Check PRH json log + [Arguments] ${prefix} ${json} + ${found}= Find log json ${prefix} ${json} + Should Be True ${found} + Create event parsing error [Arguments] ${ves_event} ${notification}= Create invalid notification ${ves_event} |