aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2/prh-testcases/resources/prh_library.robot
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-10-19 13:57:29 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-19 13:57:29 +0000
commitdff4368ec33b87949935d2561acf9b55bd69aabc (patch)
tree9f7ac558573bd8a039363615626478546d32d41b /tests/dcaegen2/prh-testcases/resources/prh_library.robot
parent3daec4157eb6804b81c9fac639ead8632ff3c16b (diff)
parent55d368698ab39f8a039831f9d244f01742aac419 (diff)
Merge "SSL setup for AAI and simulator"
Diffstat (limited to 'tests/dcaegen2/prh-testcases/resources/prh_library.robot')
-rw-r--r--tests/dcaegen2/prh-testcases/resources/prh_library.robot13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/dcaegen2/prh-testcases/resources/prh_library.robot b/tests/dcaegen2/prh-testcases/resources/prh_library.robot
index fcad88d7..b7653671 100644
--- a/tests/dcaegen2/prh-testcases/resources/prh_library.robot
+++ b/tests/dcaegen2/prh-testcases/resources/prh_library.robot
@@ -12,8 +12,11 @@ Create header
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
+ Create Session aai_setup_session ${AAI_SIMULATOR_SETUP_URL}
+ Set Suite Variable ${aai_setup_session} aai_setup_session
+
+Reset Simulators
+ Reset AAI simulator
Invalid event processing
[Arguments] ${input_invalid_event_in_dmaap}
@@ -47,10 +50,14 @@ Check PNF_READY notification
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}
+ ${resp}= Put Request ${aai_setup_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
+
+Reset AAI simulator
+ ${resp}= Post Request ${aai_setup_session} /reset
+ Should Be Equal As Strings ${resp.status_code} 200