Merge from ecomp 718fd196 - Integration Tests
[vid.git] / vid-automation / src / main / java / org / onap / simulator / presetGenerator / presets / aai / PresetAAIGetL3NetworksByCloudRegionSpecificState.java
1 package org.onap.simulator.presetGenerator.presets.aai;
2
3 public class PresetAAIGetL3NetworksByCloudRegionSpecificState extends AAIBaseGetL3NetworksByCloudRegionPreset {
4     private int stateNum = 1;
5
6     public PresetAAIGetL3NetworksByCloudRegionSpecificState(int stateNum) {
7         super();
8         this.stateNum = stateNum;
9     }
10
11     public PresetAAIGetL3NetworksByCloudRegionSpecificState(String cloudOwner, String cloudRegionId, String tenantId) {
12         super(tenantId, null, cloudRegionId, cloudOwner, null);
13     }
14
15     @Override
16     public Object getResponseBody() {
17         if (stateNum == 1) {
18             return STATE_1;
19         } else
20             return STATE_2;
21     }
22
23     private static final String STATE_1 = "{ "
24             + "  \"results\": [{ "
25             + "      \"l3-network\": { "
26             + "        \"network-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861131\", "
27             + "        \"network-name\": \"AUK51a_oam_calea_net_0\", "
28             + "        \"network-type\": \"SR-IOV-PROVIDER2-0\", "
29             + "        \"network-role\": \"oam_calea_net_0\", "
30             + "        \"network-technology\": \"STANDARD-SR-IOV\", "
31             + "        \"is-bound-to-vpn\": true, "
32             + "        \"resource-version\": \"1540925016770\", "
33             + "        \"orchestration-status\": \"Active\", "
34             + "        \"model-invariant-id\": \"b9a9b549-0ee4-49fc-b4f2-5edc6701da68\", "
35             + "        \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", "
36             + "        \"model-customization-id\": \"e5f33853-f84c-4cdd-99f2-93846957aa18\", "
37             + "        \"physical-network-name\": \"sriovnet0\", "
38             + "        \"is-provider-network\": true, "
39             + "        \"is-shared-network\": true, "
40             + "        \"is-external-network\": false, "
41             + "        \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/ddd91e3d-7cd1-4010-958d-94c729937d2d/service-data/networks/network/dbd80094-df1a-4831-8699-a96949dbca5c/network-data/network-topology/\", "
42             + "        \"relationship-list\": { "
43             + "          \"relationship\": [{ "
44             + "              \"related-to\": \"service-instance\", "
45             + "              \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", "
46             + "              \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/ddd91e3d-7cd1-4010-958d-94c729937d2d\", "
47             + "              \"relationship-data\": [{ "
48             + "                  \"relationship-key\": \"customer.global-customer-id\", "
49             + "                  \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" "
50             + "                }, { "
51             + "                  \"relationship-key\": \"service-subscription.service-type\", "
52             + "                  \"relationship-value\": \"Emanuel\" "
53             + "                }, { "
54             + "                  \"relationship-key\": \"service-instance.service-instance-id\", "
55             + "                  \"relationship-value\": \"1c98917b-8255-43c6-98f1-7a2942e75ce1\" "
56             + "                } "
57             + "              ], "
58             + "              \"related-to-property\": [{ "
59             + "                  \"property-key\": \"service-instance.service-instance-name\", "
60             + "                  \"property-value\": \"AUK51a_oam_calea_net_service_0\" "
61             + "                } "
62             + "              ] "
63             + "            }, { "
64             + "              \"related-to\": \"tenant\", "
65             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
66             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", "
67             + "              \"relationship-data\": [{ "
68             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
69             + "                  \"relationship-value\": \"att-nc\" "
70             + "                }, { "
71             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
72             + "                  \"relationship-value\": \"auk51a\" "
73             + "                }, { "
74             + "                  \"relationship-key\": \"tenant.tenant-id\", "
75             + "                  \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" "
76             + "                } "
77             + "              ], "
78             + "              \"related-to-property\": [{ "
79             + "                  \"property-key\": \"tenant.tenant-name\", "
80             + "                  \"property-value\": \"ecomp_ispt\" "
81             + "                } "
82             + "              ] "
83             + "            }, { "
84             + "              \"related-to\": \"cloud-region\", "
85             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
86             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", "
87             + "              \"relationship-data\": [{ "
88             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
89             + "                  \"relationship-value\": \"att-nc\" "
90             + "                }, { "
91             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
92             + "                  \"relationship-value\": \"auk51a\" "
93             + "                } "
94             + "              ], "
95             + "              \"related-to-property\": [{ "
96             + "                  \"property-key\": \"cloud-region.owner-defined-type\", "
97             + "                  \"property-value\": \"lcp\" "
98             + "                } "
99             + "              ] "
100             + "            }, { "
101             + "              \"related-to\": \"vpn-binding\", "
102             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
103             + "              \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", "
104             + "              \"relationship-data\": [{ "
105             + "                  \"relationship-key\": \"vpn-binding.vpn-id\", "
106             + "                  \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" "
107             + "                } "
108             + "              ], "
109             + "              \"related-to-property\": [{ "
110             + "                  \"property-key\": \"vpn-binding.vpn-name\", "
111             + "                  \"property-value\": \"LPPVPN\" "
112             + "                }, { "
113             + "                  \"property-key\": \"vpn-binding.vpn-type\", "
114             + "                  \"property-value\": \"CUSTOMER\" "
115             + "                } "
116             + "              ] "
117             + "            } "
118             + "          ] "
119             + "        } "
120             + "      } "
121             + "    }, { "
122             + "      \"l3-network\": { "
123             + "        \"network-id\": \"b45cdb14-7a80-4ebd-b979-b1d7c7620851\", "
124             + "        \"network-name\": \"AUK51a_oam_calea_net_1\", "
125             + "        \"network-type\": \"SR-IOV-PROVIDER2-1\", "
126             + "        \"network-role\": \"oam_calea_net_1\", "
127             + "        \"network-technology\": \"STANDARD-SR-IOV\", "
128             + "        \"is-bound-to-vpn\": true, "
129             + "        \"resource-version\": \"1540925016770\", "
130             + "        \"orchestration-status\": \"Active\", "
131             + "        \"model-invariant-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", "
132             + "        \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", "
133             + "        \"model-customization-id\": \"3b45cdb14-7a80-4ebd-b979-b1d7c7620851\", "
134             + "        \"physical-network-name\": \"sriovnet1\", "
135             + "        \"is-provider-network\": true, "
136             + "        \"is-shared-network\": true, "
137             + "        \"is-external-network\": false, "
138             + "        \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/ee1b756e-3c9c-4ee0-974b-6218f377b20d/service-data/networks/network/fa1d9589-478d-41ea-96e6-39714ddc6aa5/network-data/network-topology/\", "
139             + "        \"relationship-list\": { "
140             + "          \"relationship\": [{ "
141             + "              \"related-to\": \"service-instance\", "
142             + "              \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", "
143             + "              \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/ee1b756e-3c9c-4ee0-974b-6218f377b20d\", "
144             + "              \"relationship-data\": [{ "
145             + "                  \"relationship-key\": \"customer.global-customer-id\", "
146             + "                  \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" "
147             + "                }, { "
148             + "                  \"relationship-key\": \"service-subscription.service-type\", "
149             + "                  \"relationship-value\": \"Emanuel\" "
150             + "                }, { "
151             + "                  \"relationship-key\": \"service-instance.service-instance-id\", "
152             + "                  \"relationship-value\": \"fc21e453-7ff4-438e-bc69-df1f9474b00a\" "
153             + "                } "
154             + "              ], "
155             + "              \"related-to-property\": [{ "
156             + "                  \"property-key\": \"service-instance.service-instance-name\", "
157             + "                  \"property-value\": \"AUK51a_oam_calea_net_service_1\" "
158             + "                } "
159             + "              ] "
160             + "            }, { "
161             + "              \"related-to\": \"tenant\", "
162             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
163             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", "
164             + "              \"relationship-data\": [{ "
165             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
166             + "                  \"relationship-value\": \"att-nc\" "
167             + "                }, { "
168             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
169             + "                  \"relationship-value\": \"auk51a\" "
170             + "                }, { "
171             + "                  \"relationship-key\": \"tenant.tenant-id\", "
172             + "                  \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" "
173             + "                } "
174             + "              ], "
175             + "              \"related-to-property\": [{ "
176             + "                  \"property-key\": \"tenant.tenant-name\", "
177             + "                  \"property-value\": \"ecomp_ispt\" "
178             + "                } "
179             + "              ] "
180             + "            }, { "
181             + "              \"related-to\": \"cloud-region\", "
182             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
183             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", "
184             + "              \"relationship-data\": [{ "
185             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
186             + "                  \"relationship-value\": \"att-nc\" "
187             + "                }, { "
188             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
189             + "                  \"relationship-value\": \"auk51a\" "
190             + "                } "
191             + "              ], "
192             + "              \"related-to-property\": [{ "
193             + "                  \"property-key\": \"cloud-region.owner-defined-type\", "
194             + "                  \"property-value\": \"lcp\" "
195             + "                } "
196             + "              ] "
197             + "            }, { "
198             + "              \"related-to\": \"vpn-binding\", "
199             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
200             + "              \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", "
201             + "              \"relationship-data\": [{ "
202             + "                  \"relationship-key\": \"vpn-binding.vpn-id\", "
203             + "                  \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" "
204             + "                } "
205             + "              ], "
206             + "              \"related-to-property\": [{ "
207             + "                  \"property-key\": \"vpn-binding.vpn-name\", "
208             + "                  \"property-value\": \"LPPVPN\" "
209             + "                }, { "
210             + "                  \"property-key\": \"vpn-binding.vpn-type\", "
211             + "                  \"property-value\": \"CUSTOMER\" "
212             + "                } "
213             + "              ] "
214             + "            } "
215             + "          ] "
216             + "        } "
217             + "      } "
218             + "    }, { "
219             + "      \"l3-network\": { "
220             + "        \"network-id\": \"10a74149-c9d7-4918-bbcf-d5fb9b1799ce\", "
221             + "        \"network-name\": \"AUK51a_oam_calea_net_2\", "
222             + "        \"network-type\": \"SR-IOV-PROVIDER2-2\", "
223             + "        \"network-role\": \"oam_calea_net_2\", "
224             + "        \"network-technology\": \"STANDARD-SR-IOV\", "
225             + "        \"is-bound-to-vpn\": true, "
226             + "        \"resource-version\": \"1540925016770\", "
227             + "        \"orchestration-status\": \"Active\", "
228             + "        \"model-invariant-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", "
229             + "        \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", "
230             + "        \"model-customization-id\": \"10a74149-c9d7-4918-bbcf-d5fb9b1799ce\", "
231             + "        \"physical-network-name\": \"sriovnet2\", "
232             + "        \"is-provider-network\": true, "
233             + "        \"is-shared-network\": true, "
234             + "        \"is-external-network\": false, "
235             + "        \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/315ccdb4-5a11-499f-95dc-25ae4be37dad/service-data/networks/network/2d4f97f5-702a-4707-b9e5-aa9d3e35deeb/network-data/network-topology/\", "
236             + "        \"relationship-list\": { "
237             + "          \"relationship\": [{ "
238             + "              \"related-to\": \"service-instance\", "
239             + "              \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", "
240             + "              \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/315ccdb4-5a11-499f-95dc-25ae4be37dad\", "
241             + "              \"relationship-data\": [{ "
242             + "                  \"relationship-key\": \"customer.global-customer-id\", "
243             + "                  \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" "
244             + "                }, { "
245             + "                  \"relationship-key\": \"service-subscription.service-type\", "
246             + "                  \"relationship-value\": \"Emanuel\" "
247             + "                }, { "
248             + "                  \"relationship-key\": \"service-instance.service-instance-id\", "
249             + "                  \"relationship-value\": \"b28d8a84-7d93-4b56-b525-c239c1e780a4\" "
250             + "                } "
251             + "              ], "
252             + "              \"related-to-property\": [{ "
253             + "                  \"property-key\": \"service-instance.service-instance-name\", "
254             + "                  \"property-value\": \"AUK51a_oam_calea_net_service_2\" "
255             + "                } "
256             + "              ] "
257             + "            }, { "
258             + "              \"related-to\": \"tenant\", "
259             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
260             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", "
261             + "              \"relationship-data\": [{ "
262             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
263             + "                  \"relationship-value\": \"att-nc\" "
264             + "                }, { "
265             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
266             + "                  \"relationship-value\": \"auk51a\" "
267             + "                }, { "
268             + "                  \"relationship-key\": \"tenant.tenant-id\", "
269             + "                  \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" "
270             + "                } "
271             + "              ], "
272             + "              \"related-to-property\": [{ "
273             + "                  \"property-key\": \"tenant.tenant-name\", "
274             + "                  \"property-value\": \"ecomp_ispt\" "
275             + "                } "
276             + "              ] "
277             + "            }, { "
278             + "              \"related-to\": \"cloud-region\", "
279             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
280             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", "
281             + "              \"relationship-data\": [{ "
282             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
283             + "                  \"relationship-value\": \"att-nc\" "
284             + "                }, { "
285             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
286             + "                  \"relationship-value\": \"auk51a\" "
287             + "                } "
288             + "              ], "
289             + "              \"related-to-property\": [{ "
290             + "                  \"property-key\": \"cloud-region.owner-defined-type\", "
291             + "                  \"property-value\": \"lcp\" "
292             + "                } "
293             + "              ] "
294             + "            }, { "
295             + "              \"related-to\": \"vpn-binding\", "
296             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
297             + "              \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", "
298             + "              \"relationship-data\": [{ "
299             + "                  \"relationship-key\": \"vpn-binding.vpn-id\", "
300             + "                  \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" "
301             + "                } "
302             + "              ], "
303             + "              \"related-to-property\": [{ "
304             + "                  \"property-key\": \"vpn-binding.vpn-name\", "
305             + "                  \"property-value\": \"LPPVPN\" "
306             + "                }, { "
307             + "                  \"property-key\": \"vpn-binding.vpn-type\", "
308             + "                  \"property-value\": \"CUSTOMER\" "
309             + "                } "
310             + "              ] "
311             + "            } "
312             + "          ] "
313             + "        } "
314             + "      } "
315             + "    }, { "
316             + "      \"l3-network\": { "
317             + "        \"network-id\": \"95380967-0f1c-41e9-a47f-9baa3f90860c\", "
318             + "        \"network-name\": \"AUK51a_oam_calea_net_3\", "
319             + "        \"network-type\": \"SR-IOV-PROVIDER2-3\", "
320             + "        \"network-role\": \"oam_calea_net_3\", "
321             + "        \"network-technology\": \"STANDARD-SR-IOV\", "
322             + "        \"is-bound-to-vpn\": true, "
323             + "        \"resource-version\": \"1540925016770\", "
324             + "        \"orchestration-status\": \"Active\", "
325             + "        \"model-invariant-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", "
326             + "        \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", "
327             + "        \"model-customization-id\": \"95380967-0f1c-41e9-a47f-9baa3f90860c\", "
328             + "        \"physical-network-name\": \"sriovnet3\", "
329             + "        \"is-provider-network\": true, "
330             + "        \"is-shared-network\": true, "
331             + "        \"is-external-network\": false, "
332             + "        \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/c44ad6cc-639a-4c6b-a327-583afd656a0d/service-data/networks/network/cf18fbb3-ddcb-4774-bd30-e0e895c0e35e/network-data/network-topology/\", "
333             + "        \"relationship-list\": { "
334             + "          \"relationship\": [{ "
335             + "              \"related-to\": \"service-instance\", "
336             + "              \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", "
337             + "              \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/c44ad6cc-639a-4c6b-a327-583afd656a0d\", "
338             + "              \"relationship-data\": [{ "
339             + "                  \"relationship-key\": \"customer.global-customer-id\", "
340             + "                  \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" "
341             + "                }, { "
342             + "                  \"relationship-key\": \"service-subscription.service-type\", "
343             + "                  \"relationship-value\": \"Emanuel\" "
344             + "                }, { "
345             + "                  \"relationship-key\": \"service-instance.service-instance-id\", "
346             + "                  \"relationship-value\": \"f09bbb55-8942-4621-892f-4690a8e5570a\" "
347             + "                } "
348             + "              ], "
349             + "              \"related-to-property\": [{ "
350             + "                  \"property-key\": \"service-instance.service-instance-name\", "
351             + "                  \"property-value\": \"AUK51a_oam_calea_net_service_3\" "
352             + "                } "
353             + "              ] "
354             + "            }, { "
355             + "              \"related-to\": \"tenant\", "
356             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
357             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", "
358             + "              \"relationship-data\": [{ "
359             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
360             + "                  \"relationship-value\": \"att-nc\" "
361             + "                }, { "
362             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
363             + "                  \"relationship-value\": \"auk51a\" "
364             + "                }, { "
365             + "                  \"relationship-key\": \"tenant.tenant-id\", "
366             + "                  \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" "
367             + "                } "
368             + "              ], "
369             + "              \"related-to-property\": [{ "
370             + "                  \"property-key\": \"tenant.tenant-name\", "
371             + "                  \"property-value\": \"ecomp_ispt\" "
372             + "                } "
373             + "              ] "
374             + "            }, { "
375             + "              \"related-to\": \"cloud-region\", "
376             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
377             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", "
378             + "              \"relationship-data\": [{ "
379             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
380             + "                  \"relationship-value\": \"att-nc\" "
381             + "                }, { "
382             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
383             + "                  \"relationship-value\": \"auk51a\" "
384             + "                } "
385             + "              ], "
386             + "              \"related-to-property\": [{ "
387             + "                  \"property-key\": \"cloud-region.owner-defined-type\", "
388             + "                  \"property-value\": \"lcp\" "
389             + "                } "
390             + "              ] "
391             + "            }, { "
392             + "              \"related-to\": \"vpn-binding\", "
393             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
394             + "              \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", "
395             + "              \"relationship-data\": [{ "
396             + "                  \"relationship-key\": \"vpn-binding.vpn-id\", "
397             + "                  \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" "
398             + "                } "
399             + "              ], "
400             + "              \"related-to-property\": [{ "
401             + "                  \"property-key\": \"vpn-binding.vpn-name\", "
402             + "                  \"property-value\": \"LPPVPN\" "
403             + "                }, { "
404             + "                  \"property-key\": \"vpn-binding.vpn-type\", "
405             + "                  \"property-value\": \"CUSTOMER\" "
406             + "                } "
407             + "              ] "
408             + "            } "
409             + "          ] "
410             + "        } "
411             + "      } "
412             + "    }, { "
413             + "      \"l3-network\": { "
414             + "        \"network-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", "
415             + "        \"network-name\": \"AUK51a_oam_calea_net_0\", "
416             + "        \"network-type\": \"SR-IOV-PROVIDER2-0\", "
417             + "        \"network-technology\": \"STANDARD-SR-IOV\", "
418             + "        \"is-bound-to-vpn\": true, "
419             + "        \"resource-version\": \"1540925016770\", "
420             + "        \"orchestration-status\": \"Active\", "
421             + "        \"model-invariant-id\": \"3b3308d4-0cd3-43e4-9a7b-d1925c861135\", "
422             + "        \"model-version-id\": \"77010093-df36-4dcb-8428-c3d02bf3f88d\", "
423             + "        \"model-customization-id\": \"95380967-0f1c-41e9-a47f-9baa3f90860c\", "
424             + "        \"physical-network-name\": \"sriovnet0\", "
425             + "        \"is-provider-network\": true, "
426             + "        \"is-shared-network\": true, "
427             + "        \"is-external-network\": false, "
428             + "        \"selflink\": \"restconf/config/GENERIC-RESOURCE-API:services/service/74141179-b5b9-4383-aab4-45f5b9f70127/service-data/networks/network/62cecd1b-f4bf-4e16-add9-2b6f5181e595/network-data/network-topology/\", "
429             + "        \"relationship-list\": { "
430             + "          \"relationship\": [{ "
431             + "              \"related-to\": \"service-instance\", "
432             + "              \"relationship-label\": \"org.onap.relationships.inventory.ComposedOf\", "
433             + "              \"related-link\": \"/aai/v14/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/74141179-b5b9-4383-aab4-45f5b9f70127\", "
434             + "              \"relationship-data\": [{ "
435             + "                  \"relationship-key\": \"customer.global-customer-id\", "
436             + "                  \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\" "
437             + "                }, { "
438             + "                  \"relationship-key\": \"service-subscription.service-type\", "
439             + "                  \"relationship-value\": \"Emanuel\" "
440             + "                }, { "
441             + "                  \"relationship-key\": \"service-instance.service-instance-id\", "
442             + "                  \"relationship-value\": \"1c98917b-8255-43c6-98f1-7a2942e75ce1\" "
443             + "                } "
444             + "              ], "
445             + "              \"related-to-property\": [{ "
446             + "                  \"property-key\": \"service-instance.service-instance-name\", "
447             + "                  \"property-value\": \"AUK51a_oam_calea_net_service_0\" "
448             + "                } "
449             + "              ] "
450             + "            }, { "
451             + "              \"related-to\": \"tenant\", "
452             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
453             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a/tenants/tenant/b530fc990b6d4334bd45518bebca6a51\", "
454             + "              \"relationship-data\": [{ "
455             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
456             + "                  \"relationship-value\": \"att-nc\" "
457             + "                }, { "
458             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
459             + "                  \"relationship-value\": \"auk51a\" "
460             + "                }, { "
461             + "                  \"relationship-key\": \"tenant.tenant-id\", "
462             + "                  \"relationship-value\": \"b530fc990b6d4334bd45518bebca6a51\" "
463             + "                } "
464             + "              ], "
465             + "              \"related-to-property\": [{ "
466             + "                  \"property-key\": \"tenant.tenant-name\", "
467             + "                  \"property-value\": \"ecomp_ispt\" "
468             + "                } "
469             + "              ] "
470             + "            }, { "
471             + "              \"related-to\": \"cloud-region\", "
472             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
473             + "              \"related-link\": \"/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/att-nc/auk51a\", "
474             + "              \"relationship-data\": [{ "
475             + "                  \"relationship-key\": \"cloud-region.cloud-owner\", "
476             + "                  \"relationship-value\": \"att-nc\" "
477             + "                }, { "
478             + "                  \"relationship-key\": \"cloud-region.cloud-region-id\", "
479             + "                  \"relationship-value\": \"auk51a\" "
480             + "                } "
481             + "              ], "
482             + "              \"related-to-property\": [{ "
483             + "                  \"property-key\": \"cloud-region.owner-defined-type\", "
484             + "                  \"property-value\": \"lcp\" "
485             + "                } "
486             + "              ] "
487             + "            }, { "
488             + "              \"related-to\": \"vpn-binding\", "
489             + "              \"relationship-label\": \"org.onap.relationships.inventory.Uses\", "
490             + "              \"related-link\": \"/aai/v14/network/vpn-bindings/vpn-binding/3e7834fb-a8e0-4243-a837-5352ccab4602\", "
491             + "              \"relationship-data\": [{ "
492             + "                  \"relationship-key\": \"vpn-binding.vpn-id\", "
493             + "                  \"relationship-value\": \"3e7834fb-a8e0-4243-a837-5352ccab4602\" "
494             + "                } "
495             + "              ], "
496             + "              \"related-to-property\": [{ "
497             + "                  \"property-key\": \"vpn-binding.vpn-name\", "
498             + "                  \"property-value\": \"LPPVPN\" "
499             + "                }, { "
500             + "                  \"property-key\": \"vpn-binding.vpn-type\", "
501             + "                  \"property-value\": \"CUSTOMER\" "
502             + "                } "
503             + "              ] "
504             + "            } "
505             + "          ] "
506             + "        } "
507             + "      } "
508             + "    } "
509             + "  ] "
510             + "}";
511
512     private static final String STATE_2 = "{\"results\": [" +
513             "   {\"l3-network\":    {" +
514             "      \"network-id\": \"CC-l3network_1\"," +
515             "      \"is-bound-to-vpn\": false," +
516             "      \"resource-version\": \"1556206041065\"," +
517             "      \"is-provider-network\": false," +
518             "      \"is-shared-network\": false," +
519             "      \"is-external-network\": false," +
520             "      \"relationship-list\": {\"relationship\": [      {" +
521             "         \"related-to\": \"tenant\"," +
522             "         \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
523             "         \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T1\"," +
524             "         \"relationship-data\":          [" +
525             "                        {" +
526             "               \"relationship-key\": \"cloud-region.cloud-owner\"," +
527             "               \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" +
528             "            }," +
529             "                        {" +
530             "               \"relationship-key\": \"cloud-region.cloud-region-id\"," +
531             "               \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" +
532             "            }," +
533             "                        {" +
534             "               \"relationship-key\": \"tenant.tenant-id\"," +
535             "               \"relationship-value\": \"tenant-id-CC-ANAI-528T1\"" +
536             "            }" +
537             "         ]," +
538             "         \"related-to-property\": [         {" +
539             "            \"property-key\": \"tenant.tenant-name\"," +
540             "            \"property-value\": \"tenant-name-CC-ANAI-528T1\"" +
541             "         }]" +
542             "      }]}" +
543             "   }}," +
544             "   {\"l3-network\":    {" +
545             "      \"network-id\": \"CC-l3network_3\"," +
546             "      \"network-name\": \"DLLSTXRNDS3\"," +
547             "      \"network-role\": \"Backup\"," +
548             "      \"is-bound-to-vpn\": true," +
549             "      \"resource-version\": \"1556139217403\"," +
550             "      \"is-provider-network\": false," +
551             "      \"is-shared-network\": false," +
552             "      \"is-external-network\": false," +
553             "      \"relationship-list\": {\"relationship\":       [" +
554             "                  {" +
555             "            \"related-to\": \"tenant\"," +
556             "            \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
557             "            \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T1\"," +
558             "            \"relationship-data\":             [" +
559             "                              {" +
560             "                  \"relationship-key\": \"cloud-region.cloud-owner\"," +
561             "                  \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" +
562             "               }," +
563             "                              {" +
564             "                  \"relationship-key\": \"cloud-region.cloud-region-id\"," +
565             "                  \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" +
566             "               }," +
567             "                              {" +
568             "                  \"relationship-key\": \"tenant.tenant-id\"," +
569             "                  \"relationship-value\": \"tenant-id-CC-ANAI-528T1\"" +
570             "               }" +
571             "            ]," +
572             "            \"related-to-property\": [            {" +
573             "               \"property-key\": \"tenant.tenant-name\"," +
574             "               \"property-value\": \"tenant-name-CC-ANAI-528T1\"" +
575             "            }]" +
576             "         }," +
577             "                  {" +
578             "            \"related-to\": \"tenant\"," +
579             "            \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
580             "            \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528-T2\"," +
581             "            \"relationship-data\":             [" +
582             "                              {" +
583             "                  \"relationship-key\": \"cloud-region.cloud-owner\"," +
584             "                  \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" +
585             "               }," +
586             "                              {" +
587             "                  \"relationship-key\": \"cloud-region.cloud-region-id\"," +
588             "                  \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" +
589             "               }," +
590             "                              {" +
591             "                  \"relationship-key\": \"tenant.tenant-id\"," +
592             "                  \"relationship-value\": \"tenant-id-CC-ANAI-528-T2\"" +
593             "               }" +
594             "            ]," +
595             "            \"related-to-property\": [            {" +
596             "               \"property-key\": \"tenant.tenant-name\"," +
597             "               \"property-value\": \"tenant-name-CC-ANAI-528T2\"" +
598             "            }]" +
599             "         }," +
600             "                  {" +
601             "            \"related-to\": \"tenant\"," +
602             "            \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
603             "            \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T3\"," +
604             "            \"relationship-data\":             [" +
605             "                              {" +
606             "                  \"relationship-key\": \"cloud-region.cloud-owner\"," +
607             "                  \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" +
608             "               }," +
609             "                              {" +
610             "                  \"relationship-key\": \"cloud-region.cloud-region-id\"," +
611             "                  \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" +
612             "               }," +
613             "                              {" +
614             "                  \"relationship-key\": \"tenant.tenant-id\"," +
615             "                  \"relationship-value\": \"tenant-id-CC-ANAI-528T3\"" +
616             "               }" +
617             "            ]," +
618             "            \"related-to-property\": [            {" +
619             "               \"property-key\": \"tenant.tenant-name\"," +
620             "               \"property-value\": \"tenant-name-CC-ANAI-528T3\"" +
621             "            }]" +
622             "         }" +
623             "      ]}" +
624             "   }}," +
625             "   {\"l3-network\":    {" +
626             "      \"network-id\": \"l3network2-550-as988q\"," +
627             "      \"network-name\": \"CHICGIL01VDBE01_SubIntNtwk043\"," +
628             "      \"network-type\": \"K6VD\"," +
629             "      \"network-role\": \"X92XE0j\"," +
630             "      \"network-technology\": \"ZYbPEnCjX6Oqd\"," +
631             "      \"neutron-network-id\": \"fpFvDje\"," +
632             "      \"is-bound-to-vpn\": false," +
633             "      \"service-id\": \"NJnzYaRlz0Test\"," +
634             "      \"network-role-instance\": 162," +
635             "      \"resource-version\": \"1556823012443\"," +
636             "      \"orchestration-status\": \"active\"," +
637             "      \"heat-stack-id\": \"0GmDeg\"," +
638             "      \"mso-catalog-key\": \"la5ylhZ5g0D\"," +
639             "      \"contrail-network-fqdn\": \"EaeexDk47\"," +
640             "      \"model-customization-id\": \"wgmn6PrJ5\"," +
641             "      \"widget-model-id\": \"e0yNr\"," +
642             "      \"widget-model-version\": \"yKpry3J0VVLn\"," +
643             "      \"physical-network-name\": \"wq6OKbZMTY\"," +
644             "      \"is-provider-network\": false," +
645             "      \"is-shared-network\": false," +
646             "      \"is-external-network\": false," +
647             "      \"selflink\": \"9xtMu4EPuTi\"," +
648             "      \"operational-status\": \"W8aj\"," +
649             "      \"is-trunked\": true," +
650             "      \"relationship-list\": {\"relationship\":       [" +
651             "                  {" +
652             "            \"related-to\": \"tenant\"," +
653             "            \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
654             "            \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T1\"," +
655             "            \"relationship-data\":             [" +
656             "                              {" +
657             "                  \"relationship-key\": \"cloud-region.cloud-owner\"," +
658             "                  \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" +
659             "               }," +
660             "                              {" +
661             "                  \"relationship-key\": \"cloud-region.cloud-region-id\"," +
662             "                  \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" +
663             "               }," +
664             "                              {" +
665             "                  \"relationship-key\": \"tenant.tenant-id\"," +
666             "                  \"relationship-value\": \"tenant-id-CC-ANAI-528T1\"" +
667             "               }" +
668             "            ]," +
669             "            \"related-to-property\": [            {" +
670             "               \"property-key\": \"tenant.tenant-name\"," +
671             "               \"property-value\": \"tenant-name-CC-ANAI-528T1\"" +
672             "            }]" +
673             "         }," +
674             "                  {" +
675             "            \"related-to\": \"configuration\"," +
676             "            \"relationship-label\": \"org.onap.relationships.inventory.PartOf\"," +
677             "            \"related-link\": \"/aai/v17/network/configurations/configuration/configuration2-550-as988q\"," +
678             "            \"relationship-data\": [            {" +
679             "               \"relationship-key\": \"configuration.configuration-id\"," +
680             "               \"relationship-value\": \"configuration2-550-as988q\"" +
681             "            }]" +
682             "         }," +
683             "                  {" +
684             "            \"related-to\": \"configuration\"," +
685             "            \"relationship-label\": \"org.onap.relationships.inventory.PartOf\"," +
686             "            \"related-link\": \"/aai/v17/network/configurations/configuration/configuration1-550-as988q\"," +
687             "            \"relationship-data\": [            {" +
688             "               \"relationship-key\": \"configuration.configuration-id\"," +
689             "               \"relationship-value\": \"configuration1-550-as988q\"" +
690             "            }]" +
691             "         }," +
692             "                  {" +
693             "            \"related-to\": \"vpn-binding\"," +
694             "            \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
695             "            \"related-link\": \"/aai/v17/network/vpn-bindings/vpn-binding/VPNbinding3-550-as988q\"," +
696             "            \"relationship-data\": [            {" +
697             "               \"relationship-key\": \"vpn-binding.vpn-id\"," +
698             "               \"relationship-value\": \"VPNbinding3-550-as988q\"" +
699             "            }]," +
700             "            \"related-to-property\":             [" +
701             "                              {" +
702             "                  \"property-key\": \"vpn-binding.vpn-name\"," +
703             "                  \"property-value\": \"SZ2A5L_VPNTest\"" +
704             "               }," +
705             "                              {" +
706             "                  \"property-key\": \"vpn-binding.vpn-type\"," +
707             "                  \"property-value\": \"1903e94v\"" +
708             "               }" +
709             "            ]" +
710             "         }" +
711             "      ]}" +
712             "   }}," +
713             "   {\"l3-network\":    {" +
714             "      \"network-id\": \"CC-l3network_2\"," +
715             "      \"network-name\": \"DLLSTXRNDS2\"," +
716             "      \"network-role\": \"Primary\"," +
717             "      \"is-bound-to-vpn\": true," +
718             "      \"resource-version\": \"1556136783141\"," +
719             "      \"is-provider-network\": true," +
720             "      \"is-shared-network\": true," +
721             "      \"is-external-network\": true," +
722             "      \"relationship-list\": {\"relationship\":       [" +
723             "                  {" +
724             "            \"related-to\": \"tenant\"," +
725             "            \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
726             "            \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528T1\"," +
727             "            \"relationship-data\":             [" +
728             "                              {" +
729             "                  \"relationship-key\": \"cloud-region.cloud-owner\"," +
730             "                  \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" +
731             "               }," +
732             "                              {" +
733             "                  \"relationship-key\": \"cloud-region.cloud-region-id\"," +
734             "                  \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" +
735             "               }," +
736             "                              {" +
737             "                  \"relationship-key\": \"tenant.tenant-id\"," +
738             "                  \"relationship-value\": \"tenant-id-CC-ANAI-528T1\"" +
739             "               }" +
740             "            ]," +
741             "            \"related-to-property\": [            {" +
742             "               \"property-key\": \"tenant.tenant-name\"," +
743             "               \"property-value\": \"tenant-name-CC-ANAI-528T1\"" +
744             "            }]" +
745             "         }," +
746             "                  {" +
747             "            \"related-to\": \"tenant\"," +
748             "            \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
749             "            \"related-link\": \"/aai/v17/cloud-infrastructure/cloud-regions/cloud-region/cloud-owner-CC-ANAI-528/cloud-region-id-CC-ANAI-528/tenants/tenant/tenant-id-CC-ANAI-528-T2\"," +
750             "            \"relationship-data\":             [" +
751             "                              {" +
752             "                  \"relationship-key\": \"cloud-region.cloud-owner\"," +
753             "                  \"relationship-value\": \"cloud-owner-CC-ANAI-528\"" +
754             "               }," +
755             "                              {" +
756             "                  \"relationship-key\": \"cloud-region.cloud-region-id\"," +
757             "                  \"relationship-value\": \"cloud-region-id-CC-ANAI-528\"" +
758             "               }," +
759             "                              {" +
760             "                  \"relationship-key\": \"tenant.tenant-id\"," +
761             "                  \"relationship-value\": \"tenant-id-CC-ANAI-528-T2\"" +
762             "               }" +
763             "            ]," +
764             "            \"related-to-property\": [            {" +
765             "               \"property-key\": \"tenant.tenant-name\"," +
766             "               \"property-value\": \"tenant-name-CC-ANAI-528T2\"" +
767             "            }]" +
768             "         }" +
769             "      ]}" +
770             "   }}" +
771             "]}";
772
773
774
775
776 }