CSIT tests update for Synchronous VES collector
[integration/csit.git] / tests / dcaegen2 / testcases / 04__backwards_compatibility_tests.robot
1 *** Settings ***
2 Resource          ./resources/dcae_keywords.robot
3 *** Test Cases ***
4 VES Collector HTTP Health Check
5     [Tags]    DCAE-VESC-R1  DCAE-VESC-HC
6     [Documentation]   Run healthcheck over HTTP
7     Override Collector Properties  ${VES_BACKWARDS_COMPATIBILITY_PROPERTIES}
8     Run Healthcheck  ${http_session}
9
10 Publish Single VES VNF Measurement Event API V7
11     [Tags]    DCAE-VESC-R1
12     [Documentation]   Post single event with valid data to /eventListener/v7 endpoint and expect 200 Response Status Code
13     Send Request And Validate Response  Publish Event To VES Collector  ${http_session}  ${VES_EVENTLISTENER_V7}  ${VES_VALID_JSON_V7}  200
14
15 Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 404, expected VES response code 503
16     [Tags]    DCAE-VESC-R1
17     [Documentation]   Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code
18     Set Successfull Dmaap Code  404
19     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}
20
21 Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 408, expected VES response code 503
22     [Tags]    DCAE-VESC-R1
23     [Documentation]   Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code
24     Set Successfull Dmaap Code  408
25     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}
26
27 Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 429, expected VES response code 503
28     [Tags]    DCAE-VESC-R1
29     [Documentation]   Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code
30     Set Successfull Dmaap Code  429
31     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}
32
33 Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 502, expected VES response code 503
34     [Tags]    DCAE-VESC-R1
35     [Documentation]   Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code
36     Set Successfull Dmaap Code  502
37     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}
38
39 Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 503, expected VES response code 503
40     [Tags]    DCAE-VESC-R1
41     [Documentation]   Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code
42     Set Successfull Dmaap Code  503
43     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}
44
45 Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 504, expected VES response code 503
46     [Tags]    DCAE-VESC-R1
47     [Documentation]   Post single event with valid data to /eventListener/v7 endpoint and expect 503 Response Status Code
48     Set Successfull Dmaap Code  504
49     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}
50
51 Publish Single VES VNF Measurement Event API V7 DmaaP response code mock as 413, expected VES response code 413
52     [Tags]    DCAE-VESC-R1
53     [Documentation]   Post single event with valid data to /eventListener/v7 endpoint and expect 413 Response Status Code
54     Set Successfull Dmaap Code  413
55     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}
56
57 Publish VES Batch Event With Different Domain Parameters
58     [Tags]    DCAE-VESC-R1
59     [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
60     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