Add Test case for parameter out of schema send to VES eventBatch API
Issue-ID: INT-1455
Signed-off-by: Marcin Przybysz <marcin.przybysz@nokia.com>
Change-Id: Idb4fe6fbd2e7d61cb6f87b5bcb59db774a5edac4
diff --git a/tests/dcaegen2/testcases/dcae_ves.robot b/tests/dcaegen2/testcases/dcae_ves.robot
index 61ebf4d..60aed5f 100644
--- a/tests/dcaegen2/testcases/dcae_ves.robot
+++ b/tests/dcaegen2/testcases/dcae_ves.robot
@@ -41,7 +41,7 @@
[Documentation] Post single event with empty json to /eventListener/v7 endpoint and expect 400 Response Status Code
Send Request And Validate Response Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_EMPTY_JSON} 400
-Publish Single VES VNF Measurement Event wit parameter out of schema
+Publish Single VES VNF Measurement Event with parameter out of schema
[Tags] DCAE-VESC-R1
[Documentation] Post single event with parameter which is not defined in schema and send to /eventListener/v7 endpoint. Expected 400 Response Status Code
Send Request And Validate Response Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_PARAMETER_OUT_OF_SCHEMA_V7} 400
@@ -77,6 +77,11 @@
[Documentation] Post event list where one of the events doesn't have mandatory domain param, 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_ENDPOINT_V7} ${VES_BATCH_MISSING_MANDATORY_PARAM_V7} 400
+Publish VES Batch Events wih parameter out of schema
+ [Tags] DCAE-VESC-R1
+ [Documentation] Post event list where one of the events have additional dummy param, 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_ENDPOINT_V7} ${VES_BATCH_PARAM_OUT_OF_SCHEMA_V7} 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