summaryrefslogtreecommitdiffstats
path: root/csit/scripts/aaisimulator/wiremock/mappings/aai.json
diff options
context:
space:
mode:
authorJonathan Platt <jonathan.platt@att.com>2021-07-28 13:00:04 -0400
committerJonathan Platt <jonathan.platt@att.com>2021-07-28 13:00:04 -0400
commit06c4aa69e525c7865a9465c11594a271c3e5ffbd (patch)
tree338f3b62367be17296d309dc6987251f6cdb3d5b /csit/scripts/aaisimulator/wiremock/mappings/aai.json
parentcdcd58f6f622c7c3b05fdf7ae96d5a716a6194cc (diff)
Add A&AI Mock Response Simulator for Testing
Added A&AI mock response simulator for CSIT test cases. Issue-ID: SDNC-1586 Signed-off-by: Jonathan Platt <jonathan.platt@att.com> Change-Id: I89ab08598ae3628e668353097a6763c50951a14d Former-commit-id: 698315d91a4071d467bb7760f57d3584c9008c28
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
+ }
+ }
+ ]
+}