summaryrefslogtreecommitdiffstats
path: root/test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-09-27 10:29:30 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-09-27 12:50:28 -0700
commit2d3d8dcf6ef1bd2a161c69d561c629c5ec3f59c4 (patch)
tree652fd47a183c291e96c6721f550a5f63464f6e66 /test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot
parente161173e279a73134dda4c2f429605d6c9ee1fe7 (diff)
Move CSIT to integration/csit repo
To facilite branching of CSIT tests, all CSIT test code and scripts are relocated to the integration/csit repo. Change-Id: I6777cd414e43dbf2bfa6215f7e50849e1a6a2e59 Issue-ID: INT-671 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot')
-rw-r--r--test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot65
1 files changed, 0 insertions, 65 deletions
diff --git a/test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot b/test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot
deleted file mode 100644
index 23d86663a..000000000
--- a/test/csit/tests/dcaegen2/prh-testcases/prh_tests.robot
+++ /dev/null
@@ -1,65 +0,0 @@
-*** Settings ***
-Documentation Integration tests for PRH.
-... PRH receive events from DMaaP and produce or not PNF_READY notification depends on required fields in received event.
-Suite Setup Run keywords Create header Create sessions
-Library resources/PrhLibrary.py
-Resource resources/prh_library.robot
-Resource ../../common.robot
-
-*** Variables ***
-${DMAAP_SIMULATOR_URL} http://${DMAAP_SIMULATOR}
-${AAI_SIMULATOR_URL} http://${AAI_SIMULATOR}
-${PRH_URL} http://${PRH}
-${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/event_with_all_fields.json
-${EVENT_WITH_IPV4} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/event_with_IPV4.json
-${EVENT_WITH_IPV6} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/event_with_IPV6.json
-${EVENT_WITH_MISSING_IPV4_AND_IPV6} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_IPV4_and_IPV6.json
-${EVENT_WITH_MISSING_SOURCENAME} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_sourceName.json
-${EVENT_WITH_MISSING_SOURCENAME_AND_IPV4} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_sourceName_and_IPV4.json
-${EVENT_WITH_MISSING_SOURCENAME_AND_IPV6} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_sourceName_and_IPV6.json
-${EVENT_WITH_MISSING_SOURCENAME_IPV4_AND_IPV6} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/event_with_missing_sourceName_IPV4_and_IPV6.json
-${Not_json_format} %{WORKSPACE}/test/csit/tests/dcaegen2/prh-testcases/assets/json_events/not_json_format.json
-
-*** Test Cases ***
-Valid DMaaP event can be converted to PNF_READY notification
- [Documentation] PRH get valid event from DMaaP with required fields - PRH produce PNF_READY notification
- [Tags] PRH Valid event
- [Template] Valid event processing
- ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS}
- ${EVENT_WITH_IPV4}
- ${EVENT_WITH_IPV6}
-
-Invalid DMaaP event cannot be converted to PNF_READY notification
- [Documentation] PRH get invalid event from DMaaP with missing required fields - PRH does not produce PNF_READY notification
- [Tags] PRH Invalid event
- [Template] Invalid event processing
- ${EVENT_WITH_MISSING_IPV4_AND_IPV6}
- ${EVENT_WITH_MISSING_SOURCENAME}
- ${EVENT_WITH_MISSING_SOURCENAME_AND_IPV4}
- ${EVENT_WITH_MISSING_SOURCENAME_AND_IPV6}
- ${EVENT_WITH_MISSING_SOURCENAME_IPV4_AND_IPV6}
-
-Get valid event from DMaaP and record in AAI does not exist
- [Documentation] PRH get valid event from DMaaP with all required fields and in AAI record doesn't exist - PRH does not produce PNF_READY notification
- [Tags] PRH Missing AAI record
- [Timeout] 30s
- ${data}= Get Data From File ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS}
- Set PNF name in AAI wrong_aai_record
- Set event in DMaaP ${data}
- Wait Until Keyword Succeeds 100x 300ms Check PRH log java.io.IOException: Connection closed prematurely
-
-Event in DMaaP is not JSON format
- [Documentation] PRH get not JSON format event from DMaaP - PRH does not produce PNF_READY notification
- [Tags] PRH
- ${data}= Get Data From File ${Not_json_format}
- Set event in DMaaP ${data}
- Wait Until Keyword Succeeds 100x 300ms Check PRH log |java.lang.IllegalStateException: Not a JSON Array:
-
-Get valid event from DMaaP and AAI is not responding
- [Documentation] PRH get valid event from DMaaP with all required fields and AAI is not responding - PRH does not produce PNF_READY notification
- [Tags] PRH AAI
- [Timeout] 180s
- ${data}= Get Data From File ${EVENT_WITH_ALL_VALID_REQUIRED_FIELDS}
- Stop AAI
- Set event in DMaaP ${data}
- Wait Until Keyword Succeeds 100x 300ms Check PRH log java.net.UnknownHostException: aai