"Adding Sdc-simulator for Nst selection "
[optf/has.git] / conductor / conductor / tests / functional / simulators / aaisim / aai_imposter.jsont
1 {
2   "port": 8081,
3   "protocol": "http",
4   "stubs": [{
5     "responses": [
6       { "is": { 
7            "statusCode": 200,
8            "body": {{ get_nsi_response }}
9          }
10       }
11     ],
12     "predicates": [{
13       "and": [
14         {
15           "equals": {
16             "path": "/aai/v14/nodes/service-instances",
17             "method": "GET",
18             "query": {
19                "model-version-id": "bfba363e-e39c-4bd9-a9d5-1371c28f4d22",
20                "model-invariant-id": "21d57d4b-52ad-4d3c-a798-248b5bb9124a",
21                "depth": 2
22             }
23           }
24         }
25       ]
26     }]
27   },
28   {
29     "responses": [
30       { "is": {
31            "statusCode": 200,
32            "body": {{ get_nst_response }}
33          }
34       }
35     ],
36     "predicates": [{
37       "and": [
38         {
39           "equals": {
40             "path": "/aai/v14/service-design-and-creation/models",
41             "method": "GET",
42             "query": {
43                "model-role": "NST",
44                "depth": 2
45             }
46           }
47         }
48       ]
49     }]
50   },
51   {
52     "responses": [
53       { "is": { 
54            "statusCode": 200,
55            "body": {{ get_nssi_response }}
56          }
57       }
58     ],
59     "predicates": [{
60       "and": [
61         {
62           "equals": {
63             "path": "/aai/v14/nodes/service-instances",
64             "method": "GET",
65             "query": {
66                "model-version-id": "8d770214-d3e7-43ea-b7a6-9b235dcbcd34",
67                "model-invariant-id": "c343a533-c045-4ec0-bbb6-f30eb8eb5a41",
68                "depth": 2
69             }
70           }
71         }
72       ]
73     }]
74   },
75   {
76     "responses": [
77       { "is": { 
78            "statusCode": 200,
79            "body": {{ healthcheck }}
80          }
81       }
82     ],
83     "predicates": [{
84       "and": [
85         {
86           "equals": {
87             "path": "/healthcheck",
88             "method": "GET"
89           }
90         }
91       ]
92     }]
93   },
94   {
95     "responses": [
96       { "is": { 
97            "statusCode": 200,
98            "body": {{ get_onap_regions }}
99          }
100       }
101     ],
102     "predicates": [{
103       "and": [
104         {
105           "equals": {
106             "path": "/aai/v14/cloud-infrastructure/cloud-regions/",
107             "method": "GET"
108           }
109         }
110       ]
111     }]
112   },
113   {
114     "responses": [
115       { "is": { 
116            "statusCode": 200,
117            "body": {{ get_onap_complex_DLLSTX233 }}
118          }
119       }
120     ],
121     "predicates": [{
122       "and": [
123         {
124           "equals": {
125             "path": "/aai/v14/cloud-infrastructure/complexes/complex/DLLSTX233",
126             "method": "GET"
127           }
128         }
129       ]
130     }]
131   },
132   {
133     "responses": [
134       { "is": { 
135            "statusCode": 200,
136            "body": {{ get_flavors_cloud_region_1 }}
137          }
138       }
139     ],
140     "predicates": [{
141       "and": [
142         {
143           "equals": {
144             "path": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/HPA-cloud/cloud-region-1/flavors/",
145             "method": "GET"
146           }
147         }
148       ]
149     }]
150   },
151   {
152     "responses": [
153       { "is": { 
154            "statusCode": 200,
155            "body": {{ get_flavors_cloud_region_2 }}
156          }
157       }
158     ],
159     "predicates": [{
160       "and": [
161         {
162           "equals": {
163             "path": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/HPA-cloud/cloud-region-2/flavors/",
164             "method": "GET"
165           }
166         }
167       ]
168     }]
169   },
170   {
171     "responses": [
172       { "is": { 
173            "statusCode": 404,
174            "body": "Not found" 
175          }
176       }
177     ]
178   }]
179 }