Add Test case for empty json send to VES eventBatch API 57/101957/2
authormprzybys <marcin.przybysz@nokia.com>
Wed, 19 Feb 2020 08:14:09 +0000 (08:14 +0000)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 25 Feb 2020 11:15:28 +0000 (11:15 +0000)
Issue-ID: INT-1453

Signed-off-by: Marcin Przybysz <marcin.przybysz@nokia.com>
Change-Id: I3e3a23e5405f9ca79c65f33952880c561071bca1

tests/dcaegen2/testcases/dcae_ves.robot

index d53846c..739c2bb 100644 (file)
@@ -67,6 +67,11 @@ Publish VES VoLTE Fault Batch Events
     [Documentation]   Post single event with valid data to /eventListener/v5/eventBatch endpoint and expect 202 Response Status Code
     Send Request And Validate Response  Publish Event To VES Collector  ${http_session}  ${VES_BATCH_EVENT_PATH}  ${EVENT_BATCH_DATA_FILE}  202  ab305d54-85b4-a31b-7db2-fb6b9e546025
 
+Publish VES Batch Events with empty json
+    [Tags]    DCAE-VESC-R1
+    [Documentation]   Post empty json to /eventListener/v7/eventBatch endpoint and expect 400 Response Status Code
+    Send Request And Validate Response  Publish Event To VES Collector  ${http_session}  ${VES_BATCH_EVENT_PATH}  ${VES_EMPTY_JSON}  400
+
 Publish VES Event With Invalid Method
     [Tags]    DCAE-VESC-R1
     [Documentation]    Use invalid Put instead of Post method to expect 405 Response Status Code