aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2/prh-testcases
diff options
context:
space:
mode:
authorMarcin Migdal <marcin.migdal@nokia.com>2019-04-05 12:30:47 +0200
committerMarcin Migdal <marcin.migdal@nokia.com>2019-04-05 12:56:42 +0200
commit725c070fc65047300a7f529e65197fdb8ab8f331 (patch)
treef08454784e97a0720d10378b1f21462c29de3bb1 /tests/dcaegen2/prh-testcases
parent99cb872dd3345bf6330200ac04fd633c544d1198 (diff)
Add logs to AAI keyword
Change-Id: I50e3bd59d6c75ea311db8828a26ab04a6a7f5dfd Issue-ID: INT-989 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
Diffstat (limited to 'tests/dcaegen2/prh-testcases')
-rw-r--r--tests/dcaegen2/prh-testcases/assets/json_events/ves-event-pnf-registration-with-attachment-point.json19
-rw-r--r--tests/dcaegen2/prh-testcases/resources/prh_library.robot6
2 files changed, 22 insertions, 3 deletions
diff --git a/tests/dcaegen2/prh-testcases/assets/json_events/ves-event-pnf-registration-with-attachment-point.json b/tests/dcaegen2/prh-testcases/assets/json_events/ves-event-pnf-registration-with-attachment-point.json
new file mode 100644
index 00000000..9d730bf6
--- /dev/null
+++ b/tests/dcaegen2/prh-testcases/assets/json_events/ves-event-pnf-registration-with-attachment-point.json
@@ -0,0 +1,19 @@
+{
+ "event": {
+ "commonEventHeader": {
+ "sourceName":"NOK6061ZW1",
+ "nfNamingCode": "nfNamingCode"
+ },
+ "pnfRegistrationFields": {
+ "serialNumber":"serialNumber",
+ "vendorName":"vendorName",
+ "modelNumber":"modelNumber",
+ "unitType":"unitType",
+ "additionalFields": {
+ "attachmentPoint": "bla-bla-30-3",
+ "svlan": "1005",
+ "cvlan": "678"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/tests/dcaegen2/prh-testcases/resources/prh_library.robot b/tests/dcaegen2/prh-testcases/resources/prh_library.robot
index 9d4dca2e..a6a01eb9 100644
--- a/tests/dcaegen2/prh-testcases/resources/prh_library.robot
+++ b/tests/dcaegen2/prh-testcases/resources/prh_library.robot
@@ -53,9 +53,9 @@ Check PNF_READY notification
Set PNF name in AAI
[Arguments] ${pnf_name}
${headers}= Create Dictionary Accept=application/json Content-Type=text/html
- #Log AAI url ${AAI_SIMULATOR_SETUP_URL}
- #Log Http headers ${headers}
- #Log PNF name ${pnf_name}
+ Log AAI url ${AAI_SIMULATOR_SETUP_URL}
+ Log Http headers ${headers}
+ Log PNF name ${pnf_name}
${resp}= Put Request ${aai_setup_session} /set_pnf headers=${headers} data=${pnf_name}
Should Be Equal As Strings ${resp.status_code} 200