aboutsummaryrefslogtreecommitdiffstats
path: root/csit/scripts/aaisimulator/wiremock/mappings/aai.json
blob: 64739068a44a7182bbd38d2aeec1f3e33baf97e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
            }
        }
    ]
}