aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.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/resources/prh_library.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/resources/prh_library.robot')
-rw-r--r--test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot56
1 files changed, 0 insertions, 56 deletions
diff --git a/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot b/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
deleted file mode 100644
index 73ce2a2c4..000000000
--- a/test/csit/tests/dcaegen2/prh-testcases/resources/prh_library.robot
+++ /dev/null
@@ -1,56 +0,0 @@
-*** Settings ***
-Library RequestsLibrary
-Library Collections
-Library PrhLibrary.py
-Resource ../../../common.robot
-
-*** Keywords ***
-Create header
- ${headers}= Create Dictionary Accept=application/json Content-Type=application/json
- Set Suite Variable ${suite_headers} ${headers}
-
-Create sessions
- Create Session dmaap_session ${DMAAP_SIMULATOR_URL}
- Set Suite Variable ${suite_dmaap_session} dmaap_session
- Create Session aai_session ${AAI_SIMULATOR_URL}
- Set Suite Variable ${suite_aai_session} aai_session
-
-Invalid event processing
- [Arguments] ${input_invalid_event_in_dmaap}
- [Timeout] 30s
- ${data}= Get Data From File ${input_invalid_event_in_dmaap}
- Set event in DMaaP ${data}
- ${invalid_notification}= Create invalid notification ${data}
- ${notification}= Catenate SEPARATOR= \\n |org.onap.dcaegen2.services.prh.exceptions.DmaapNotFoundException: Incorrect json, consumerDmaapModel can not be created: ${invalid_notification}
- Wait Until Keyword Succeeds 100x 100ms Check PRH log ${notification}
-
-Valid event processing
- [Arguments] ${input_valid_event_in_dmaap}
- [Timeout] 30s
- ${data}= Get Data From File ${input_valid_event_in_dmaap}
- ${posted_event_to_dmaap}= Create PNF_Ready notification ${data}
- ${pnf_name}= Create PNF name ${data}
- Set PNF name in AAI ${pnf_name}
- Set event in DMaaP ${data}
- Wait Until Keyword Succeeds 100x 300ms Check PNF_READY notification ${posted_event_to_dmaap}
-
-Check PRH log
- [Arguments] ${searched_log}
- ${status}= Check for log ${searched_log}
- Should Be Equal As Strings ${status} True
-
-Check PNF_READY notification
- [Arguments] ${posted_event_to_dmaap}
- ${resp}= Get Request ${suite_dmaap_session} /events/pnfReady headers=${suite_headers}
- Should Be Equal ${resp.text} ${posted_event_to_dmaap}
-
-Set PNF name in AAI
- [Arguments] ${pnfs_name}
- ${headers}= Create Dictionary Accept=application/json Content-Type=text/html
- ${resp}= Put Request ${suite_aai_session} /set_pnfs headers=${headers} data=${pnfs_name}
- Should Be Equal As Strings ${resp.status_code} 200
-
-Set event in DMaaP
- [Arguments] ${event_in_dmaap}
- ${resp}= Put Request ${suite_dmaap_session} /set_get_event headers=${suite_headers} data=${event_in_dmaap}
- Should Be Equal As Strings ${resp.status_code} 200