summaryrefslogtreecommitdiffstats
path: root/csit/scripts/aaisimulator/wiremock/mappings/aai.json
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2021-07-29 15:37:21 +0000
committerGerrit Code Review <gerrit@onap.org>2021-07-29 15:37:21 +0000
commit96225a9516e146223c3ce10e1181f56ee672a865 (patch)
tree7fd369d4ad8c526c6f41747d093f35fe4653558a /csit/scripts/aaisimulator/wiremock/mappings/aai.json
parent954895be00005e8b1bbfae360c474d4fac4d69e7 (diff)
parent06c4aa69e525c7865a9465c11594a271c3e5ffbd (diff)
Merge "Add A&AI Mock Response Simulator for Testing"
Former-commit-id: 131a4ede1c7e7e0dea5e4746e989afe4480a6509
Diffstat (limited to 'csit/scripts/aaisimulator/wiremock/mappings/aai.json')
-rwxr-xr-xcsit/scripts/aaisimulator/wiremock/mappings/aai.json41
1 files changed, 41 insertions, 0 deletions
diff --git a/csit/scripts/aaisimulator/wiremock/mappings/aai.json b/csit/scripts/aaisimulator/wiremock/mappings/aai.json
new file mode 100755
index 00000000..64739068
--- /dev/null
+++ b/csit/scripts/aaisimulator/wiremock/mappings/aai.json
@@ -0,0 +1,41 @@
+{
+ "mappings": [{
+ "request": {
+ "method": "GET",
+ "url": "/aai/v24/business/customers/customer/testsvc1/service-subscriptions/service-subscription/test/service-instances/service-instance/5c4f2d89-57a3-47e9-b49b-d3c63eb0b3ca?depth=1"
+ },
+ "response": {
+ "status": 200,
+ "jsonBody": {
+ "service-instance-id": "5c4f2d89-57a3-47e9-b49b-d3c63eb0b3ca",
+ "service-instance-name": "Nzrdm61asmsf01_svc",
+ "service-type": "INFRASTRUCTURE",
+ "service-role": "PROVIDER-NETWORK",
+ "environment-context": "General_Revenue-Bearing",
+ "workload-context": "Testing",
+ "resource-version": "1616417209896",
+ "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/5c4f2d89-57a3-47e9-b49b-d3c63eb0b3ca/service-data/service-topology/",
+ "orchestration-status": "Inventoried"
+ }
+ }
+ },
+ {
+ "request": {
+ "method": "PATCH",
+ "url": "/aai/v24/business/customers/customer/testsvc1/service-subscriptions/service-subscription/test/service-instances/service-instance/5c4f2d89-57a3-47e9-b49b-d3c63eb0b3ca?resource-version=1616417209896",
+ "bodyPatterns": [{
+ "equalToJson": {
+ "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/5c4f2d89-57a3-47e9-b49b-d3c63eb0b3ca/service-data/service-topology/",
+ "resource-version": "1616417209896",
+ "service-instance-name": "zrdm61asmsf01_svc"
+ },
+ "ignoreArrayOrder": true,
+ "ignoreExtraElements": true
+ }]
+ },
+ "response": {
+ "status": 200
+ }
+ }
+ ]
+}