summaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/bbs_tests.robot
diff options
context:
space:
mode:
authorStavros Kanarakis <stavros.kanarakis@nokia.com>2020-03-03 13:47:45 +0200
committerStavros Kanarakis <stavros.kanarakis@nokia.com>2020-03-03 13:51:22 +0200
commit9f330c25a03f90ae1ced491d36d1314463e6f6a4 (patch)
tree33d5b451c2d0588b1b68c4ebc68839b4cc083b9d /tests/dcaegen2-services-bbs-event-processor/bbs-testcases/bbs_tests.robot
parentf3f1b5e5f426fc181d25061cef39429b9498106f (diff)
Align BBS-ep CSIT tests with latest code changes (DCAE-SDK upgrade)
Issue-ID: DCAEGEN2-2105 Signed-off-by: Stavros Kanarakis <stavros.kanarakis@nokia.com> Change-Id: I5d23ffff7e6c21bbd85eaa54147053d5d5893ec2
Diffstat (limited to 'tests/dcaegen2-services-bbs-event-processor/bbs-testcases/bbs_tests.robot')
-rw-r--r--tests/dcaegen2-services-bbs-event-processor/bbs-testcases/bbs_tests.robot67
1 files changed, 30 insertions, 37 deletions
diff --git a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/bbs_tests.robot b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/bbs_tests.robot
index a0db4b2f..c60ffe6d 100644
--- a/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/bbs_tests.robot
+++ b/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/bbs_tests.robot
@@ -14,16 +14,15 @@ ${AAI_SIMULATOR_SETUP_URL} http://${AAI_SIMULATOR_SETUP}
${AUTH_EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_all_fields.json
${AUTH_EVENT_WITH_WRONG_SOURCENAME} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_wrong_sourceName.json
${AUTH_EVENT_WITHOUT_SWVERSION} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_without_swversion.json
-${AUTH_EVENT_WITH_MISSING_RGMAC} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_rgmac.json
${AUTH_EVENT_WITH_MISSING_STATE} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_new_old_state.json
${AUTH_EVENT_WITH_MISSING_SOURCENAME} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_event_with_missing_sourceName.json
-${AUTH_NOT_JSON_FORMAT} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_not_json_format.json
+${AUTH_MALFORMED_JSON_FORMAT} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_malformed_json_format.json
${AUTH_POLICY} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/auth_policy_with_all_fields.json
${UPDATE_EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_all_fields.json
${UPDATE_EVENT_WITH_WRONG_CORRELATION} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_wrong_correlation.json
${UPDATE_EVENT_WITH_MISSING_ATTACHMENT} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_attachment.json
${UPDATE_EVENT_WITH_MISSING_CORRELATION} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_event_with_missing_correlation.json
-${UPDATE_NOT_JSON_FORMAT} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_not_json_format.json
+${UPDATE_MALFORMED_JSON_FORMAT} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_malformed_json_format.json
${UPDATE_POLICY} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/json_events/update_policy_with_all_fields.json
${AAI_PNFS} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/aai_records/aai_pnfs.json
${AAI_SERVICES} %{WORKSPACE}/tests/dcaegen2-services-bbs-event-processor/bbs-testcases/assets/aai_records/aai_services.json
@@ -37,12 +36,6 @@ Valid DMaaP CPE_AUTHENTICATION event can trigger Policy
${AUTH_EVENT_WITH_ALL_VALID_REQUIRED_FIELDS}
${AUTH_EVENT_WITHOUT_SWVERSION}
-Invalid DMaaP CPE_AUTHENTICATION event RG MAC cannot trigger Policy
- [Documentation] BBS get invalid RG MAC CPE_AUTHENTICATION event from DMaaP with missing required fields - BBS does not trigger Policy
- [Tags] BBS Invalid RG MAC CPE_AUTHENTICATION event
- [Template] Invalid rgmac auth event processing
- ${AUTH_EVENT_WITH_MISSING_RGMAC}
-
Invalid DMaaP CPE_AUTHENTICATION event cannot trigger Policy
[Documentation] BBS get invalid CPE_AUTHENTICATION event from DMaaP with missing required fields - BBS does not trigger Policy
[Tags] BBS Invalid CPE_AUTHENTICATION event
@@ -58,23 +51,23 @@ Get valid CPE_AUTHENTICATION event from DMaaP and PNF record in AAI does not exi
Set event in DMaaP ${data}
Wait Until Keyword Succeeds 20x 2000ms Check BBS log Error while retrieving PNF: A&AI Request for (/aai/v14/network/pnfs/pnf/Wrong-PNF-Name?depth=all)
-CPE_AUTHENTICATION Event in DMaaP is not JSON format
- [Documentation] BBS CPE_AUTHENTICATION not JSON format event from DMaaP - BBS does not Trigger Policy
+CPE_AUTHENTICATION Event in DMaaP has malformed JSON format
+ [Documentation] BBS CPE_AUTHENTICATION has malformed JSON format event from DMaaP - BBS does not Trigger Policy
[Tags] BBS
- ${data}= Get Data From File ${AUTH_NOT_JSON_FORMAT}
+ ${data}= Get Data From File ${AUTH_MALFORMED_JSON_FORMAT}
Set event in DMaaP ${data}
- Wait Until Keyword Succeeds 20x 2000ms Check BBS log DMaaP Consumption Exception: Not a JSON Array:
+ Wait Until Keyword Succeeds 20x 2000ms Check BBS log DMaaP Consumer error: com.google.gson.stream.MalformedJsonException
-# Get valid CPE_AUTHENTICATION event from DMaaP and AAI is not responding
-# [Documentation] BBS get valid CPE_AUTHENTICATION event from DMaaP with all required fields and AAI is not responding - BBS does not trigger Policy
-# [Tags] BBS AAI Uses containers
-# [Timeout] 180s
-# ${data}= Get Data From File ${AUTH_EVENT_WITH_ALL_VALID_REQUIRED_FIELDS}
-# Ensure Container Is Exited aai_simulator
-# Set event in DMaaP ${data}
-# Wait Until Keyword Succeeds 20x 2000ms Check BBS log Error while retrieving PNF: aai_simulator: Try again
-# Ensure Container Is Running aai_simulator
-# Set AAI Records
+ # Get valid CPE_AUTHENTICATION event from DMaaP and AAI is not responding
+ # [Documentation] BBS get valid CPE_AUTHENTICATION event from DMaaP with all required fields and AAI is not responding - BBS does not trigger Policy
+ # [Tags] BBS AAI Uses containers
+ # [Timeout] 180s
+ # ${data}= Get Data From File ${AUTH_EVENT_WITH_ALL_VALID_REQUIRED_FIELDS}
+ # Ensure Container Is Exited aai_simulator
+ # Set event in DMaaP ${data}
+ # Wait Until Keyword Succeeds 20x 2000ms Check BBS log Error while retrieving PNF: aai_simulator: Try again
+ # Ensure Container Is Running aai_simulator
+ # Set AAI Records
Valid DMaaP PNF_UPDATE event can trigger Policy
[Documentation] BBS get valid PNF_UPDATE event from DMaaP with required fields - BBS triggers Policy
@@ -98,20 +91,20 @@ Get valid PNF_UPDATE event from DMaaP and PNF record in AAI does not exist
Wait Until Keyword Succeeds 20x 2000ms Check BBS log Error while retrieving PNF: A&AI Request for (/aai/v14/network/pnfs/pnf/Wrong-Correlation-Id?depth=all)
-PNF_UPDATE Event in DMaaP is not JSON format
- [Documentation] BBS PNF_UPDATE not JSON format event from DMaaP - BBS does not Trigger Policy
+PNF_UPDATE Event in DMaaP has malformed JSON format
+ [Documentation] BBS PNF_UPDATE has malformed JSON format event from DMaaP - BBS does not Trigger Policy
[Tags] BBS
- ${data}= Get Data From File ${UPDATE_NOT_JSON_FORMAT}
+ ${data}= Get Data From File ${UPDATE_MALFORMED_JSON_FORMAT}
Set event in DMaaP ${data}
- Wait Until Keyword Succeeds 20x 2000ms Check BBS log DMaaP Consumption Exception: Not a JSON Array:
+ Wait Until Keyword Succeeds 20x 2000ms Check BBS log DMaaP Consumer error: com.google.gson.stream.MalformedJsonException
-# Get valid PNF_UPDATE event from DMaaP and AAI is not responding
-# [Documentation] BBS get valid PNF_UPDATE event from DMaaP with all required fields and AAI is not responding - BBS does not trigger Policy
-# [Tags] BBS AAI Uses containers
-# [Timeout] 180s
-# ${data}= Get Data From File ${UPDATE_EVENT_WITH_ALL_VALID_REQUIRED_FIELDS}
-# Ensure Container Is Exited aai_simulator
-# Set event in DMaaP ${data}
-# Wait Until Keyword Succeeds 20x 2000ms Check BBS log Error while retrieving PNF: aai_simulator: Try again
-# Ensure Container Is Running aai_simulator
-# Set AAI Records
+ # Get valid PNF_UPDATE event from DMaaP and AAI is not responding
+ # [Documentation] BBS get valid PNF_UPDATE event from DMaaP with all required fields and AAI is not responding - BBS does not trigger Policy
+ # [Tags] BBS AAI Uses containers
+ # [Timeout] 180s
+ # ${data}= Get Data From File ${UPDATE_EVENT_WITH_ALL_VALID_REQUIRED_FIELDS}
+ # Ensure Container Is Exited aai_simulator
+ # Set event in DMaaP ${data}
+ # Wait Until Keyword Succeeds 20x 2000ms Check BBS log Error while retrieving PNF: aai_simulator: Try again
+ # Ensure Container Is Running aai_simulator
+ # Set AAI Records