diff options
author | 2019-03-27 19:11:43 +0200 | |
---|---|---|
committer | 2019-04-05 09:25:54 +0300 | |
commit | 40c1ddcef93d169922cdb2b95a817e2ff50a25ce (patch) | |
tree | ec9851ef03e7f9f25279fc081f2b317e10389630 /tests/dcaegen2/bbs-testcases/assets/aai_records | |
parent | 7aa8cd32c8458cd9a148ca8dad4c26635cab6d8b (diff) |
CSIT tests for bbs-event-processor
Change-Id: Iaf4d5f47754489b111a0af90bf3cdf819d4e62f7
Issue-ID: DCAEGEN2-1355
Signed-off-by: Stavros Kanarakis <stavros.kanarakis@nokia.com>
Diffstat (limited to 'tests/dcaegen2/bbs-testcases/assets/aai_records')
3 files changed, 109 insertions, 0 deletions
diff --git a/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_pnf_not_found.json b/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_pnf_not_found.json new file mode 100644 index 00000000..23c169fd --- /dev/null +++ b/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_pnf_not_found.json @@ -0,0 +1,17 @@ +[ +{ + "requestError": { + "serviceException": { + "messageId": "SVC3001", + "text": "Resource not found for %1 using id %2 (msg=%3) (ec=%4)", + "variables": [ + "GET", + "nodes/pnfs/pnf/Wrong-PNF-Name", + "Node Not Found:No Node of type pnf found at: nodes/pnfs/pnf/Wrong-PNF-Name", + "ERR.5.4.6114" + ] + } + } +} + +] diff --git a/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_pnfs.json b/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_pnfs.json new file mode 100644 index 00000000..4ea7827f --- /dev/null +++ b/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_pnfs.json @@ -0,0 +1,46 @@ +[ +{ + "pnf-name": "NVendor-Equip_Model-SN1234", + "in-maint": true, + "resource-version": "1551889263181", + "relationship-list": { + "relationship": [ + { + "related-to": "service-instance", + "relationship-label": "org.onap.relationships.inventory.ComposedOf", + "related-link": "/aai/v14/business/customers/customer/766162a3-53a9-42b8-8fe2-ebaa2213a6dd/service-subscriptions/service-subscription/BBS-CFS11/service-instances/service-instance/1923eaa8-8ab7-49ef-b4c2-e185efbbe832", + "relationship-data": [ + { + "relationship-key": "customer.global-customer-id", + "relationship-value": "766162a3-53a9-42b8-8fe2-ebaa2213a6dd" + }, + { + "relationship-key": "service-subscription.service-type", + "relationship-value": "BBS-CFS11" + }, + { + "relationship-key": "service-instance.service-instance-id", + "relationship-value": "1923eaa8-8ab7-49ef-b4c2-e185efbbe832" + } + ], + "related-to-property": [ + { + "property-key": "service-instance.service-instance-name" + } + ] + }, + { + "related-to": "logical-link", + "relationship-label": "org.onap.relationships.inventory.BridgedTo", + "related-link": "/aai/v14/network/logical-links/logical-link/olt11-11-11", + "relationship-data": [ + { + "relationship-key": "logical-link.link-name", + "relationship-value": "olt11-11-11" + } + ] + } + ] + } +} +] diff --git a/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_services.json b/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_services.json new file mode 100644 index 00000000..351cc780 --- /dev/null +++ b/tests/dcaegen2/bbs-testcases/assets/aai_records/aai_services.json @@ -0,0 +1,46 @@ +[ +{ + "service-instance-id": "1923eaa8-8ab7-49ef-b4c2-e185efbbe832", + "resource-version": "1551889260591", + "orchestration-status": "assigned", + "relationship-list": { + "relationship": [ + { + "related-to": "pnf", + "relationship-label": "org.onap.relationships.inventory.ComposedOf", + "related-link": "/aai/v14/network/pnfs/pnf/NVendor-Equip_Model-SN1234", + "relationship-data": [ + { + "relationship-key": "pnf.pnf-name", + "relationship-value": "NVendor-Equip_Model-SN1234" + } + ] + } + ] + }, + "metadata": { + "metadatum": [ + { + "metaname": "cvlan", + "metaval": "1005", + "resource-version": "1551889260599" + }, + { + "metaname": "svlan", + "metaval": "100", + "resource-version": "1551889260608" + }, + { + "metaname": "oltName", + "metaval": "olt1", + "resource-version": "1551889260616" + }, + { + "metaname": "rgw-mac-address", + "metaval": "01:02:03:04:05:06", + "resource-version": "1551889260624" + } + ] + } +} +] |