diff options
author | Pawel <pawel.kasperkiewicz@nokia.com> | 2021-06-18 15:26:31 +0200 |
---|---|---|
committer | Pawel <pawel.kasperkiewicz@nokia.com> | 2021-06-18 15:26:31 +0200 |
commit | 1a2435d72a46d8daec2a0259275fee4842da5a9a (patch) | |
tree | d9cc01dfa41912b9adbb563952c56b90d347ad89 /tests/dcaegen2/testcases/04__backwards_compatibility_tests.robot | |
parent | b950ff8ea39c666ba3e593d051cfd826be6fd080 (diff) |
CSIT tests update for Synchronous VES collector
-When evens belonging to different domains are reported in eventBatch
-When different stndDefinedNamespace is used if domain==stndDefined
-Error codes resulting from DMaaP-MR errors, mapped to HTTP/503
Issue-ID: DCAEGEN2-1483
Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com>
Change-Id: I4c993e4c7bfd22981030c69e126e90bbf7e48d4a
Diffstat (limited to 'tests/dcaegen2/testcases/04__backwards_compatibility_tests.robot')
-rw-r--r-- | tests/dcaegen2/testcases/04__backwards_compatibility_tests.robot | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/dcaegen2/testcases/04__backwards_compatibility_tests.robot b/tests/dcaegen2/testcases/04__backwards_compatibility_tests.robot new file mode 100644 index 00000000..a1f285d5 --- /dev/null +++ b/tests/dcaegen2/testcases/04__backwards_compatibility_tests.robot @@ -0,0 +1,60 @@ +*** Settings *** +Resource ./resources/dcae_keywords.robot +*** Test Cases *** +VES Collector HTTP Health Check + [Tags] DCAE-VESC-R1 DCAE-VESC-HC + [Documentation] Run healthcheck over HTTP + Override Collector Properties ${VES_BACKWARDS_COMPATIBILITY_PROPERTIES} + Run Healthcheck ${http_session} + +Publish Single VES VNF Measurement Event API V7 + [Tags] DCAE-VESC-R1 + [Documentation] Post single event with valid data to /eventListener/v7 endpoint and expect 200 Response Status Code + Send Request And Validate Response Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_VALID_JSON_V7} 200 + +Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 404, expected VES response code 503 + [Tags] DCAE-VESC-R1 + [Documentation] Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code + Set Successfull Dmaap Code 404 + Send Request And Validate Response And Error Message Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_VALID_JSON_V7} 503 ${ERROR_MESSAGE_CODE} + +Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 408, expected VES response code 503 + [Tags] DCAE-VESC-R1 + [Documentation] Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code + Set Successfull Dmaap Code 408 + Send Request And Validate Response And Error Message Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_VALID_JSON_V7} 503 ${ERROR_MESSAGE_CODE} + +Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 429, expected VES response code 503 + [Tags] DCAE-VESC-R1 + [Documentation] Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code + Set Successfull Dmaap Code 429 + Send Request And Validate Response And Error Message Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_VALID_JSON_V7} 503 ${ERROR_MESSAGE_CODE} + +Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 502, expected VES response code 503 + [Tags] DCAE-VESC-R1 + [Documentation] Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code + Set Successfull Dmaap Code 502 + Send Request And Validate Response And Error Message Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_VALID_JSON_V7} 503 ${ERROR_MESSAGE_CODE} + +Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 503, expected VES response code 503 + [Tags] DCAE-VESC-R1 + [Documentation] Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code + Set Successfull Dmaap Code 503 + Send Request And Validate Response And Error Message Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_VALID_JSON_V7} 503 ${ERROR_MESSAGE_CODE} + +Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 504, expected VES response code 503 + [Tags] DCAE-VESC-R1 + [Documentation] Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code + Set Successfull Dmaap Code 504 + Send Request And Validate Response And Error Message Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_VALID_JSON_V7} 503 ${ERROR_MESSAGE_CODE} + +Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 413, expected VES response code 413 + [Tags] DCAE-VESC-R1 + [Documentation] Post single event with valid data to /eventListener/v7 endpoint and expect 413 Response Status Code + Set Successfull Dmaap Code 413 + Send Request And Validate Response And Error Message Publish Event To VES Collector ${http_session} ${VES_EVENTLISTENER_V7} ${VES_VALID_JSON_V7} 413 ${ERROR_MESSAGE_CODE} + +Publish VES Batch Event With Different Domain Parameters + [Tags] DCAE-VESC-R1 + [Documentation] Post batch event with two different domain fileds data to /eventListener/v7/eventBatch endpoint, expect 400 Response Status Code and "Different value of domain fields in Batch Event" message + Send Request And Validate Response And Error Message Publish Event To VES Collector ${http_session} ${VES_BATCH_EVENT_ENDPOINT_V7} ${VES_BATCH_TWO_DIFFERENT_DOMAIN} 400 Different value of domain fields in Batch Event
\ No newline at end of file |