0bb278a8ef5818f4c6d7c2c530df72285c3a38fd
[vid.git] /
1 import {getTestBed, TestBed} from '@angular/core/testing';
2 import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
3 import {NgRedux} from '@angular-redux/store';
4 import {BasicControlGenerator} from "../basic.control.generator";
5 import {AaiService} from "../../../../services/aaiService/aai.service";
6 import {GenericFormService} from "../../generic-form.service";
7 import {FormBuilder} from "@angular/forms";
8 import {LogService} from "../../../../utils/log/log.service";
9 import {FormControlNames, NetworkControlGenerator} from "./network.control.generator";
10 import {FormControlModel, ValidatorModel, ValidatorOptions} from "../../../../models/formControlModels/formControl.model";
11 import {FeatureFlagsService} from "../../../../services/featureFlag/feature-flags.service";
12
13 class MockAppStore<T> {
14   getState(){
15   return {
16   "global": {
17     "name": null,
18     "flags": {
19       "FLAG_NETWORK_TO_ASYNC_INSTANTIATION": false,
20       "FLAG_SHOW_ASSIGNMENTS": true,
21       "FLAG_FABRIC_CONFIGURATION_ASSIGNMENTS": true,
22       "FLAG_SHOW_VERIFY_SERVICE": false,
23       "FLAG_SERVICE_MODEL_CACHE": true,
24       "FLAG_ADD_MSO_TESTAPI_FIELD": true
25     },
26     "type": "[FLAGS] Update"
27   },
28   "service": {
29     "serviceHierarchy": {
30       "6e59c5de-f052-46fa-aa7e-2fca9d674c44": {
31         "service": {
32           "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
33           "invariantUuid": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
34           "name": "ComplexService",
35           "version": "1.0",
36           "toscaModelURL": null,
37           "category": "Emanuel",
38           "serviceType": "",
39           "serviceRole": "",
40           "description": "ComplexService",
41           "serviceEcompNaming": "false",
42           "instantiationType": "Macro",
43           "inputs": {}
44         },
45         "vnfs": {
46           "VF_vGeraldine 0": {
47             "uuid": "d6557200-ecf2-4641-8094-5393ae3aae60",
48             "invariantUuid": "4160458e-f648-4b30-a176-43881ffffe9e",
49             "description": "VSP_vGeraldine",
50             "name": "VF_vGeraldine",
51             "version": "2.0",
52             "customizationUuid": "91415b44-753d-494c-926a-456a9172bbb9",
53             "inputs": {},
54             "commands": {},
55             "properties": {
56               "max_instances": 10,
57               "min_instances": 1,
58               "gpb2_Internal2_mac": "00:11:22:EF:AC:DF",
59               "sctp-b-ipv6-egress_src_start_port": "0",
60               "sctp-a-ipv6-egress_rule_application": "any",
61               "Internal2_allow_transit": "true",
62               "sctp-b-IPv6_ethertype": "IPv6",
63               "sctp-a-egress_rule_application": "any",
64               "sctp-b-ingress_action": "pass",
65               "sctp-b-ingress_rule_protocol": "icmp",
66               "ncb2_Internal1_mac": "00:11:22:EF:AC:DF",
67               "sctp-b-ipv6-ingress-src_start_port": "0.0",
68               "ncb1_Internal2_mac": "00:11:22:EF:AC:DF",
69               "fsb_volume_size_0": "320.0",
70               "sctp-b-egress_src_addresses": "local",
71               "sctp-a-ipv6-ingress_ethertype": "IPv4",
72               "sctp-a-ipv6-ingress-dst_start_port": "0",
73               "sctp-b-ipv6-ingress_rule_application": "any",
74               "domain_name": "default-domain",
75               "sctp-a-ingress_rule_protocol": "icmp",
76               "sctp-b-egress-src_start_port": "0.0",
77               "sctp-a-egress_src_addresses": "local",
78               "sctp-b-display_name": "epc-sctp-b-ipv4v6-sec-group",
79               "sctp-a-egress-src_start_port": "0.0",
80               "sctp-a-ingress_ethertype": "IPv4",
81               "sctp-b-ipv6-ingress-dst_end_port": "65535",
82               "sctp-b-dst_subnet_prefix_v6": "::",
83               "nf_naming": "{ecomp_generated_naming=true}",
84               "sctp-a-ipv6-ingress_src_subnet_prefix": "0.0.0.0",
85               "sctp-b-egress-dst_start_port": "0.0",
86               "ncb_flavor_name": "nv.c20r64d1",
87               "gpb1_Internal1_mac": "00:11:22:EF:AC:DF",
88               "sctp-b-egress_dst_subnet_prefix_len": "0.0",
89               "Internal2_net_cidr": "10.0.0.10",
90               "sctp-a-ingress-dst_start_port": "0.0",
91               "sctp-a-egress-dst_start_port": "0.0",
92               "fsb1_Internal2_mac": "00:11:22:EF:AC:DF",
93               "sctp-a-egress_ethertype": "IPv4",
94               "vlc_st_service_mode": "in-network-nat",
95               "sctp-a-ipv6-egress_ethertype": "IPv4",
96               "sctp-a-egress-src_end_port": "65535.0",
97               "sctp-b-ipv6-egress_rule_application": "any",
98               "sctp-b-egress_action": "pass",
99               "sctp-a-ingress-src_subnet_prefix_len": "0.0",
100               "sctp-b-ipv6-ingress-src_end_port": "65535.0",
101               "sctp-b-name": "epc-sctp-b-ipv4v6-sec-group",
102               "fsb2_Internal1_mac": "00:11:22:EF:AC:DF",
103               "sctp-a-ipv6-ingress-src_start_port": "0.0",
104               "sctp-b-ipv6-egress_ethertype": "IPv4",
105               "Internal1_net_cidr": "10.0.0.10",
106               "sctp-a-egress_dst_subnet_prefix": "0.0.0.0",
107               "fsb_flavor_name": "nv.c20r64d1",
108               "sctp_rule_protocol": "132",
109               "sctp-b-ipv6-ingress_src_subnet_prefix_len": "0",
110               "sctp-a-ipv6-ingress_rule_application": "any",
111               "ecomp_generated_naming": "false",
112               "sctp-a-IPv6_ethertype": "IPv6",
113               "vlc2_Internal1_mac": "00:11:22:EF:AC:DF",
114               "vlc_st_virtualization_type": "virtual-machine",
115               "sctp-b-ingress-dst_start_port": "0.0",
116               "sctp-b-ingress-dst_end_port": "65535.0",
117               "sctp-a-ipv6-ingress-src_end_port": "65535.0",
118               "sctp-a-display_name": "epc-sctp-a-ipv4v6-sec-group",
119               "sctp-b-ingress_rule_application": "any",
120               "int2_sec_group_name": "int2-sec-group",
121               "vlc_flavor_name": "nd.c16r64d1",
122               "sctp-b-ipv6-egress_src_addresses": "local",
123               "vlc_st_interface_type_int1": "other1",
124               "sctp-b-egress-src_end_port": "65535.0",
125               "sctp-a-ipv6-egress-dst_start_port": "0",
126               "vlc_st_interface_type_int2": "other2",
127               "sctp-a-ipv6-egress_rule_protocol": "any",
128               "Internal2_shared": "false",
129               "sctp-a-ipv6-egress_dst_subnet_prefix_len": "0",
130               "Internal2_rpf": "disable",
131               "vlc1_Internal1_mac": "00:11:22:EF:AC:DF",
132               "sctp-b-ipv6-egress_src_end_port": "65535",
133               "sctp-a-ipv6-egress_src_addresses": "local",
134               "sctp-a-ingress-dst_end_port": "65535.0",
135               "sctp-a-ipv6-egress_src_end_port": "65535",
136               "Internal1_forwarding_mode": "l2",
137               "Internal2_dhcp": "false",
138               "sctp-a-dst_subnet_prefix_v6": "::",
139               "pxe_image_name": "MME_PXE-Boot_16ACP04_GA.qcow2",
140               "vlc_st_interface_type_gtp": "other0",
141               "ncb1_Internal1_mac": "00:11:22:EF:AC:DF",
142               "sctp-b-src_subnet_prefix_v6": "::",
143               "sctp-a-egress_dst_subnet_prefix_len": "0.0",
144               "int1_sec_group_name": "int1-sec-group",
145               "Internal1_dhcp": "false",
146               "sctp-a-ipv6-egress_dst_end_port": "65535",
147               "Internal2_forwarding_mode": "l2",
148               "fsb2_Internal2_mac": "00:11:22:EF:AC:DF",
149               "sctp-b-egress_dst_subnet_prefix": "0.0.0.0",
150               "Internal1_net_cidr_len": "17",
151               "gpb2_Internal1_mac": "00:11:22:EF:AC:DF",
152               "sctp-b-ingress-src_subnet_prefix_len": "0.0",
153               "sctp-a-ingress_dst_addresses": "local",
154               "sctp-a-egress_action": "pass",
155               "fsb_volume_type_0": "SF-Default-SSD",
156               "ncb2_Internal2_mac": "00:11:22:EF:AC:DF",
157               "vlc_st_interface_type_sctp_a": "left",
158               "vlc_st_interface_type_sctp_b": "right",
159               "sctp-a-src_subnet_prefix_v6": "::",
160               "vlc_st_version": "2",
161               "sctp-b-egress_ethertype": "IPv4",
162               "sctp-a-ingress_rule_application": "any",
163               "gpb1_Internal2_mac": "00:11:22:EF:AC:DF",
164               "instance_ip_family_v6": "v6",
165               "sctp-a-ipv6-egress_src_start_port": "0",
166               "sctp-b-ingress-src_start_port": "0.0",
167               "sctp-b-ingress_dst_addresses": "local",
168               "fsb1_Internal1_mac": "00:11:22:EF:AC:DF",
169               "vlc_st_interface_type_oam": "management",
170               "multi_stage_design": "true",
171               "oam_sec_group_name": "oam-sec-group",
172               "Internal2_net_gateway": "10.0.0.10",
173               "sctp-a-ipv6-ingress-dst_end_port": "65535",
174               "sctp-b-ipv6-egress-dst_start_port": "0",
175               "Internal1_net_gateway": "10.0.0.10",
176               "sctp-b-ipv6-egress_rule_protocol": "any",
177               "gtp_sec_group_name": "gtp-sec-group",
178               "sctp-a-ipv6-egress_dst_subnet_prefix": "0.0.0.0",
179               "sctp-b-ipv6-egress_dst_subnet_prefix_len": "0",
180               "sctp-a-ipv6-ingress_dst_addresses": "local",
181               "sctp-a-egress_rule_protocol": "icmp",
182               "sctp-b-ipv6-egress_action": "pass",
183               "sctp-a-ipv6-egress_action": "pass",
184               "Internal1_shared": "false",
185               "sctp-b-ipv6-ingress_rule_protocol": "any",
186               "Internal2_net_cidr_len": "17",
187               "sctp-a-name": "epc-sctp-a-ipv4v6-sec-group",
188               "sctp-a-ingress-src_end_port": "65535.0",
189               "sctp-b-ipv6-ingress_src_subnet_prefix": "0.0.0.0",
190               "sctp-a-egress-dst_end_port": "65535.0",
191               "sctp-a-ingress_action": "pass",
192               "sctp-b-egress_rule_protocol": "icmp",
193               "sctp-b-ipv6-ingress_action": "pass",
194               "vlc_st_service_type": "firewall",
195               "sctp-b-ipv6-egress_dst_end_port": "65535",
196               "sctp-b-ipv6-ingress-dst_start_port": "0",
197               "vlc2_Internal2_mac": "00:11:22:EF:AC:DF",
198               "vlc_st_availability_zone": "true",
199               "fsb_volume_image_name_1": "MME_FSB2_16ACP04_GA.qcow2",
200               "sctp-b-ingress-src_subnet_prefix": "0.0.0.0",
201               "sctp-a-ipv6-ingress_src_subnet_prefix_len": "0",
202               "Internal1_allow_transit": "true",
203               "gpb_flavor_name": "nv.c20r64d1",
204               "availability_zone_max_count": "1",
205               "fsb_volume_image_name_0": "MME_FSB1_16ACP04_GA.qcow2",
206               "sctp-b-ipv6-ingress_dst_addresses": "local",
207               "sctp-b-ipv6-egress_dst_subnet_prefix": "0.0.0.0",
208               "sctp-b-ipv6-ingress_ethertype": "IPv4",
209               "vlc1_Internal2_mac": "00:11:22:EF:AC:DF",
210               "sctp-a-ingress-src_subnet_prefix": "0.0.0.0",
211               "sctp-a-ipv6-ingress_action": "pass",
212               "Internal1_rpf": "disable",
213               "sctp-b-ingress_ethertype": "IPv4",
214               "sctp-b-egress_rule_application": "any",
215               "sctp-b-ingress-src_end_port": "65535.0",
216               "sctp-a-ipv6-ingress_rule_protocol": "any",
217               "sctp-a-ingress-src_start_port": "0.0",
218               "sctp-b-egress-dst_end_port": "65535.0"
219             },
220             "type": "VF",
221             "modelCustomizationName": "VF_vGeraldine 0",
222             "vfModules": {
223               "vf_vgeraldine0..VfVgeraldine..vflorence_vlc..module-1": {
224                 "uuid": "522159d5-d6e0-4c2a-aa44-5a542a12a830",
225                 "invariantUuid": "98a7c88b-b577-476a-90e4-e25a5871e02b",
226                 "customizationUuid": "55b1be94-671a-403e-a26c-667e9c47d091",
227                 "description": null,
228                 "name": "VfVgeraldine..vflorence_vlc..module-1",
229                 "version": "2",
230                 "modelCustomizationName": "VfVgeraldine..vflorence_vlc..module-1",
231                 "properties": {
232                   "minCountInstances": 0,
233                   "maxCountInstances": null,
234                   "initialCount": 0,
235                   "vfModuleLabel": "vflorence_vlc"
236                 },
237                 "inputs": {},
238                 "volumeGroupAllowed": true
239               },
240               "vf_vgeraldine0..VfVgeraldine..vflorence_gpb..module-2": {
241                 "uuid": "41708296-e443-4c71-953f-d9a010f059e1",
242                 "invariantUuid": "1cca90b8-3490-495e-87da-3f3e4c57d5b9",
243                 "customizationUuid": "6add59e0-7fe1-4bc4-af48-f8812422ae7c",
244                 "description": null,
245                 "name": "VfVgeraldine..vflorence_gpb..module-2",
246                 "version": "2",
247                 "modelCustomizationName": "VfVgeraldine..vflorence_gpb..module-2",
248                 "properties": {
249                   "minCountInstances": 0,
250                   "maxCountInstances": null,
251                   "initialCount": 0,
252                   "vfModuleLabel": "vflorence_gpb"
253                 },
254                 "inputs": {},
255                 "volumeGroupAllowed": false
256               },
257               "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
258                 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
259                 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
260                 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
261                 "description": null,
262                 "name": "VfVgeraldine..base_vflorence..module-0",
263                 "version": "2",
264                 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
265                 "properties": {
266                   "minCountInstances": 1,
267                   "maxCountInstances": 1,
268                   "initialCount": 1,
269                   "vfModuleLabel": "base_vflorence"
270                 },
271                 "inputs": {},
272                 "volumeGroupAllowed": true
273               }
274             },
275             "volumeGroups": {
276               "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
277                 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
278                 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
279                 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
280                 "description": null,
281                 "name": "VfVgeraldine..base_vflorence..module-0",
282                 "version": "2",
283                 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
284                 "properties": {
285                   "minCountInstances": 1,
286                   "maxCountInstances": 1,
287                   "initialCount": 1,
288                   "vfModuleLabel": "base_vflorence"
289                 },
290                 "inputs": {}
291               }
292             },
293             "vfcInstanceGroups": {}
294           }
295         },
296         "networks": {
297           "ExtVL 0": {
298             "uuid": "ddc3f20c-08b5-40fd-af72-c6d14636b986",
299             "invariantUuid": "379f816b-a7aa-422f-be30-17114ff50b7c",
300             "description": "ECOMP generic virtual link (network) base type for all other service-level and global networks",
301             "name": "ExtVL",
302             "version": "37.0",
303             "customizationUuid": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
304             "inputs": {},
305             "commands": {},
306             "properties": {
307               "ecomp_generated_naming" : "false",
308               "network_assignments": "{is_external_network=false, ipv4_subnet_default_assignment={min_subnets_count=1}, ecomp_generated_network_assignment=false, ipv6_subnet_default_assignment={min_subnets_count=1}}",
309               "exVL_naming": "{ecomp_generated_naming=true}",
310               "network_flows": "{is_network_policy=false, is_bound_to_vpn=false}",
311               "network_homing": "{ecomp_selected_instance_node_target=false}"
312             },
313             "type": "VL",
314             "modelCustomizationName": "ExtVL 0"
315           },
316           "ExtVL 1": {
317             "uuid": "ddc3f20c-08b5-40fd-af72-c6d14636b987",
318             "invariantUuid": "379f816b-a7aa-422f-be30-17114ff50b7c",
319             "description": "ECOMP generic virtual link (network) base type for all other service-level and global networks",
320             "name": "ExtVL1",
321             "version": "37.0",
322             "customizationUuid": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
323             "inputs": {},
324             "commands": {},
325             "properties": {
326               "ecomp_generated_naming" : "true",
327               "network_assignments": "{is_external_network=false, ipv4_subnet_default_assignment={min_subnets_count=1}, ecomp_generated_network_assignment=false, ipv6_subnet_default_assignment={min_subnets_count=1}}",
328               "exVL_naming": "{ecomp_generated_naming=true}",
329               "network_flows": "{is_network_policy=false, is_bound_to_vpn=false}",
330               "network_homing": "{ecomp_selected_instance_node_target=false}"
331             },
332             "type": "VL",
333             "modelCustomizationName": "ExtVL 0"
334           }
335         },
336         "collectionResources": {},
337         "configurations": {
338           "Port Mirroring Configuration By Policy 0": {
339             "uuid": "b4398538-e89d-4f13-b33d-ca323434ba50",
340             "invariantUuid": "6ef0ca40-f366-4897-951f-abd65d25f6f7",
341             "description": "A port mirroring configuration by policy object",
342             "name": "Port Mirroring Configuration By Policy",
343             "version": "27.0",
344             "customizationUuid": "3c3b7b8d-8669-4b3b-8664-61970041fad2",
345             "inputs": {},
346             "commands": {},
347             "properties": {},
348             "type": "Configuration",
349             "modelCustomizationName": "Port Mirroring Configuration By Policy 0",
350             "sourceNodes": [],
351             "collectorNodes": null,
352             "configurationByPolicy": false
353           }
354         },
355         "serviceProxies": {},
356         "vfModules": {
357           "vf_vgeraldine0..VfVgeraldine..vflorence_vlc..module-1": {
358             "uuid": "522159d5-d6e0-4c2a-aa44-5a542a12a830",
359             "invariantUuid": "98a7c88b-b577-476a-90e4-e25a5871e02b",
360             "customizationUuid": "55b1be94-671a-403e-a26c-667e9c47d091",
361             "description": null,
362             "name": "VfVgeraldine..vflorence_vlc..module-1",
363             "version": "2",
364             "modelCustomizationName": "VfVgeraldine..vflorence_vlc..module-1",
365             "properties": {
366               "minCountInstances": 0,
367               "maxCountInstances": null,
368               "initialCount": 0,
369               "vfModuleLabel": "vflorence_vlc"
370             },
371             "inputs": {},
372             "volumeGroupAllowed": true
373           },
374           "vf_vgeraldine0..VfVgeraldine..vflorence_gpb..module-2": {
375             "uuid": "41708296-e443-4c71-953f-d9a010f059e1",
376             "invariantUuid": "1cca90b8-3490-495e-87da-3f3e4c57d5b9",
377             "customizationUuid": "6add59e0-7fe1-4bc4-af48-f8812422ae7c",
378             "description": null,
379             "name": "VfVgeraldine..vflorence_gpb..module-2",
380             "version": "2",
381             "modelCustomizationName": "VfVgeraldine..vflorence_gpb..module-2",
382             "properties": {
383               "minCountInstances": 0,
384               "maxCountInstances": null,
385               "initialCount": 0,
386               "vfModuleLabel": "vflorence_gpb"
387             },
388             "inputs": {},
389             "volumeGroupAllowed": false
390           },
391           "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
392             "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
393             "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
394             "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
395             "description": null,
396             "name": "VfVgeraldine..base_vflorence..module-0",
397             "version": "2",
398             "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
399             "properties": {
400               "minCountInstances": 1,
401               "maxCountInstances": 1,
402               "initialCount": 1,
403               "vfModuleLabel": "base_vflorence"
404             },
405             "inputs": {},
406             "volumeGroupAllowed": true
407           }
408         },
409         "volumeGroups": {
410           "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
411             "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
412             "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
413             "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
414             "description": null,
415             "name": "VfVgeraldine..base_vflorence..module-0",
416             "version": "2",
417             "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
418             "properties": {
419               "minCountInstances": 1,
420               "maxCountInstances": 1,
421               "initialCount": 1,
422               "vfModuleLabel": "base_vflorence"
423             },
424             "inputs": {}
425           }
426         },
427         "pnfs": {}
428       }
429     },
430     "serviceInstance": {
431       "6e59c5de-f052-46fa-aa7e-2fca9d674c44": {
432         "networks" : {},
433         "vnfs": {
434           "VF_vGeraldine 0": {
435             "rollbackOnFailure": "true",
436             "vfModules": {
437               "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
438                 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0vmvzo": {
439                   "isMissingData": false,
440                   "sdncPreReload": null,
441                   "modelInfo": {
442                     "modelType": "VFmodule",
443                     "modelInvariantId": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
444                     "modelVersionId": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
445                     "modelName": "VfVgeraldine..base_vflorence..module-0",
446                     "modelVersion": "2",
447                     "modelCustomizationId": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
448                     "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0"
449                   },
450                   "instanceParams": [
451                     {}
452                     ],
453                   "trackById": "wmtm6sy2uj"
454                 }
455               }
456             },
457             "isMissingData": true,
458             "originalName": "VF_vGeraldine 0",
459             "vnfStoreKey": "VF_vGeraldine 0",
460             "trackById": "p3wk448m5do",
461             "uuid": "d6557200-ecf2-4641-8094-5393ae3aae60",
462             "productFamilyId": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
463             "lcpCloudRegionId": null,
464             "tenantId": null,
465             "lineOfBusiness": null,
466             "platformName": null,
467             "modelInfo": {
468               "modelType": "VF",
469               "modelInvariantId": "4160458e-f648-4b30-a176-43881ffffe9e",
470               "modelVersionId": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
471               "modelName": "VF_vGeraldine",
472               "modelVersion": "2.0",
473               "modelCustomizationName": "VF_vGeraldine 0"
474             }
475           }
476         },
477         "instanceParams": [
478           {}
479           ],
480         "validationCounter": 1,
481         "existingNames": {},
482         "existingVNFCounterMap": {
483           "d6557200-ecf2-4641-8094-5393ae3aae60": 1
484         },
485         "globalSubscriberId": "e433710f-9217-458d-a79d-1c7aff376d89",
486         "subscriptionServiceType": "TYLER SILVIA",
487         "owningEntityId": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
488         "productFamilyId": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
489         "lcpCloudRegionId": "hvf6",
490         "tenantId": "229bcdc6eaeb4ca59d55221141d01f8e",
491         "aicZoneId": "JAG1",
492         "projectName": "x1",
493         "rollbackOnFailure": "true",
494         "bulkSize": 1,
495         "modelInfo": {
496           "modelInvariantId": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
497           "modelVersionId": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
498           "modelName": "ComplexService",
499           "modelVersion": "1.0",
500           "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44"
501         },
502         "isALaCarte": false,
503         "name": "ComplexService",
504         "version": "1.0",
505         "description": "ComplexService",
506         "category": "Emanuel",
507         "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
508         "invariantUuid": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
509         "serviceType": "",
510         "serviceRole": "",
511         "isMultiStepDesign": false
512       }
513     },
514     "lcpRegionsAndTenants": {
515       "lcpRegionList": [
516         {
517           "id": "AAIAIC25",
518           "name": "AAIAIC25",
519           "isPermitted": true
520         },
521         {
522           "id": "hvf6",
523           "name": "hvf6",
524           "isPermitted": true
525         }
526         ],
527       "lcpRegionsTenantsMap": {
528         "AAIAIC25": [
529           {
530             "id": "092eb9e8e4b7412e8787dd091bc58e86",
531             "name": "USP-SIP-IC-24335-T-01",
532             "isPermitted": true
533           }
534           ],
535         "hvf6": [
536           {
537             "id": "bae71557c5bb4d5aac6743a4e5f1d054",
538             "name": "AIN Web Tool-15-D-testalexandria",
539             "isPermitted": true
540           },
541           {
542             "id": "229bcdc6eaeb4ca59d55221141d01f8e",
543             "name": "AIN Web Tool-15-D-STTest2",
544             "isPermitted": true
545           },
546           {
547             "id": "1178612d2b394be4834ad77f567c0af2",
548             "name": "AIN Web Tool-15-D-SSPtestcustome",
549             "isPermitted": true
550           },
551           {
552             "id": "19c5ade915eb461e8af52fb2fd8cd1f2",
553             "name": "AIN Web Tool-15-D-UncheckedEcopm",
554             "isPermitted": true
555           },
556           {
557             "id": "de007636e25249238447264a988a927b",
558             "name": "AIN Web Tool-15-D-dfsdf",
559             "isPermitted": true
560           },
561           {
562             "id": "62f29b3613634ca6a3065cbe0e020c44",
563             "name": "AIN/SMS-16-D-Multiservices1",
564             "isPermitted": true
565           },
566           {
567             "id": "649289e30d3244e0b48098114d63c2aa",
568             "name": "AIN Web Tool-15-D-SSPST66",
569             "isPermitted": true
570           },
571           {
572             "id": "3f21eeea6c2c486bba31dab816c05a32",
573             "name": "AIN Web Tool-15-D-ASSPST47",
574             "isPermitted": true
575           },
576           {
577             "id": "f60ce21d3ee6427586cff0d22b03b773",
578             "name": "CESAR-100-D-sspjg67246",
579             "isPermitted": true
580           },
581           {
582             "id": "8774659e425f479895ae091bb5d46560",
583             "name": "CESAR-100-D-sspjg68359",
584             "isPermitted": true
585           },
586           {
587             "id": "624eb554b0d147c19ff8885341760481",
588             "name": "AINWebTool-15-D-iftach",
589             "isPermitted": true
590           },
591           {
592             "id": "214f55f5fc414c678059c383b03e4962",
593             "name": "CESAR-100-D-sspjg612401",
594             "isPermitted": true
595           },
596           {
597             "id": "c90666c291664841bb98e4d981ff1db5",
598             "name": "CESAR-100-D-sspjg621340",
599             "isPermitted": true
600           },
601           {
602             "id": "ce5b6bc5c7b348e1bf4b91ac9a174278",
603             "name": "sspjg621351cloned",
604             "isPermitted": true
605           },
606           {
607             "id": "b386b768a3f24c8e953abbe0b3488c02",
608             "name": "AINWebTool-15-D-eteancomp",
609             "isPermitted": true
610           },
611           {
612             "id": "dc6c4dbfd225474e9deaadd34968646c",
613             "name": "AINWebTool-15-T-SPFET",
614             "isPermitted": true
615           },
616           {
617             "id": "02cb5030e9914aa4be120bd9ed1e19eb",
618             "name": "AINWebTool-15-X-eeweww",
619             "isPermitted": true
620           },
621           {
622             "id": "f2f3830e4c984d45bcd00e1a04158a79",
623             "name": "CESAR-100-D-spjg61909",
624             "isPermitted": true
625           },
626           {
627             "id": "05b91bd5137f4929878edd965755c06d",
628             "name": "CESAR-100-D-sspjg621512cloned",
629             "isPermitted": true
630           },
631           {
632             "id": "7002fbe8482d4a989ddf445b1ce336e0",
633             "name": "AINWebTool-15-X-vdr",
634             "isPermitted": true
635           },
636           {
637             "id": "4008522be43741dcb1f5422022a2aa0b",
638             "name": "AINWebTool-15-D-ssasa",
639             "isPermitted": true
640           },
641           {
642             "id": "f44e2e96a1b6476abfda2fa407b00169",
643             "name": "AINWebTool-15-D-PFNPT",
644             "isPermitted": true
645           },
646           {
647             "id": "b69a52bec8a84669a37a1e8b72708be7",
648             "name": "AINWebTool-15-X-vdre",
649             "isPermitted": true
650           },
651           {
652             "id": "fac7d9fd56154caeb9332202dcf2969f",
653             "name": "AINWebTool-15-X-NONPODECOMP",
654             "isPermitted": true
655           },
656           {
657             "id": "2d34d8396e194eb49969fd61ffbff961",
658             "name": "DN5242-Nov16-T5",
659             "isPermitted": true
660           },
661           {
662             "id": "cb42a77ff45b48a8b8deb83bb64acc74",
663             "name": "ro-T11",
664             "isPermitted": true
665           },
666           {
667             "id": "fa45ca53c80b492fa8be5477cd84fc2b",
668             "name": "ro-T112",
669             "isPermitted": true
670           },
671           {
672             "id": "4914ab0ab3a743e58f0eefdacc1dde77",
673             "name": "DN5242-Nov21-T1",
674             "isPermitted": true
675           },
676           {
677             "id": "d0a3e3f2964542259d155a81c41aadc3",
678             "name": "test-hvf6-09",
679             "isPermitted": true
680           },
681           {
682             "id": "cbb99fe4ada84631b7baf046b6fd2044",
683             "name": "DN5242-Nov16-T3",
684             "isPermitted": true
685           }
686           ]
687       }
688     },
689     "productFamilies": [
690       {
691         "id": "ebc3bc3d-62fd-4a3f-a037-f619df4ff034",
692         "name": "ERICA",
693         "isPermitted": true
694       },
695       {
696         "id": "17cc1042-527b-11e6-beb8-9e71128cae77",
697         "name": "IGNACIO",
698         "isPermitted": true
699       },
700       {
701         "id": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
702         "name": "Christie",
703         "isPermitted": true
704       },
705       {
706         "id": "a4f6f2ae-9bf5-4ed7-b904-06b2099c4bd7",
707         "name": "Enhanced Services",
708         "isPermitted": true
709       },
710       {
711         "id": "vTerrance",
712         "name": "vTerrance",
713         "isPermitted": true
714       },
715       {
716         "id": "323d69d9-2efe-4r45-ay0a-89ea7ard4e6f",
717         "name": "vEsmeralda",
718         "isPermitted": true
719       },
720       {
721         "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
722         "name": "Emanuel",
723         "isPermitted": true
724       },
725       {
726         "id": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
727         "name": "BVOIP",
728         "isPermitted": true
729       },
730       {
731         "id": "db171b8f-115c-4992-a2e3-ee04cae357e0",
732         "name": "LINDSEY",
733         "isPermitted": true
734       },
735       {
736         "id": "LRSI-OSPF",
737         "name": "LRSI-OSPF",
738         "isPermitted": true
739       },
740       {
741         "id": "vRosemarie",
742         "name": "HNGATEWAY",
743         "isPermitted": true
744       },
745       {
746         "id": "vHNPaas",
747         "name": "WILKINS",
748         "isPermitted": true
749       },
750       {
751         "id": "e433710f-9217-458d-a79d-1c7aff376d89",
752         "name": "TYLER SILVIA",
753         "isPermitted": true
754       },
755       {
756         "id": "b6a3f28c-eebf-494c-a900-055cc7c874ce",
757         "name": "VROUTER",
758         "isPermitted": true
759       },
760       {
761         "id": "vMuriel",
762         "name": "vMuriel",
763         "isPermitted": true
764       },
765       {
766         "id": "0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1",
767         "name": "CARA Griffin",
768         "isPermitted": true
769       },
770       {
771         "id": "c7611ebe-c324-48f1-8085-94aef0c6ef3d",
772         "name": "DARREN MCGEE",
773         "isPermitted": true
774       },
775       {
776         "id": "e30755dc-5673-4b6b-9dcf-9abdd96b93d1",
777         "name": "Transport",
778         "isPermitted": true
779       },
780       {
781         "id": "vSalvatore",
782         "name": "vSalvatore",
783         "isPermitted": true
784       },
785       {
786         "id": "d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4",
787         "name": "JOSEFINA",
788         "isPermitted": true
789       },
790       {
791         "id": "vHubbard",
792         "name": "vHubbard",
793         "isPermitted": true
794       },
795       {
796         "id": "12a96a9d-4b4c-4349-a950-fe1159602621",
797         "name": "DARREN MCGEE",
798         "isPermitted": true
799       }
800       ],
801     "serviceTypes": {
802       "e433710f-9217-458d-a79d-1c7aff376d89": [
803         {
804           "id": "0",
805           "name": "vRichardson",
806           "isPermitted": false
807         },
808         {
809           "id": "1",
810           "name": "TYLER SILVIA",
811           "isPermitted": true
812         },
813         {
814           "id": "2",
815           "name": "Emanuel",
816           "isPermitted": false
817         },
818         {
819           "id": "3",
820           "name": "vJamie",
821           "isPermitted": false
822         },
823         {
824           "id": "4",
825           "name": "vVoiceMail",
826           "isPermitted": false
827         },
828         {
829           "id": "5",
830           "name": "Kennedy",
831           "isPermitted": false
832         },
833         {
834           "id": "6",
835           "name": "vPorfirio",
836           "isPermitted": false
837         },
838         {
839           "id": "7",
840           "name": "vVM",
841           "isPermitted": false
842         },
843         {
844           "id": "8",
845           "name": "vOTA",
846           "isPermitted": false
847         },
848         {
849           "id": "9",
850           "name": "vFLORENCE",
851           "isPermitted": false
852         },
853         {
854           "id": "10",
855           "name": "vMNS",
856           "isPermitted": false
857         },
858         {
859           "id": "11",
860           "name": "vEsmeralda",
861           "isPermitted": false
862         },
863         {
864           "id": "12",
865           "name": "VPMS",
866           "isPermitted": false
867         },
868         {
869           "id": "13",
870           "name": "vWINIFRED",
871           "isPermitted": false
872         },
873         {
874           "id": "14",
875           "name": "SSD",
876           "isPermitted": false
877         },
878         {
879           "id": "15",
880           "name": "vMOG",
881           "isPermitted": false
882         },
883         {
884           "id": "16",
885           "name": "LINDSEY",
886           "isPermitted": false
887         },
888         {
889           "id": "17",
890           "name": "JOHANNA_SANTOS",
891           "isPermitted": false
892         },
893         {
894           "id": "18",
895           "name": "vCarroll",
896           "isPermitted": false
897         }
898         ]
899     },
900     "aicZones": [
901       {
902         "id": "NFT1",
903         "name": "NFTJSSSS-NFT1"
904       },
905       {
906         "id": "JAG1",
907         "name": "YUDFJULP-JAG1"
908       },
909       {
910         "id": "YYY1",
911         "name": "UUUAIAAI-YYY1"
912       },
913       {
914         "id": "BAN1",
915         "name": "VSDKYUTP-BAN1"
916       },
917       {
918         "id": "DKJ1",
919         "name": "DKJSJDKA-DKJ1"
920       },
921       {
922         "id": "MCS1",
923         "name": "ASACMAMS-MCS1"
924       },
925       {
926         "id": "UIO1",
927         "name": "uioclli1-UIO1"
928       },
929       {
930         "id": "RAJ1",
931         "name": "YGBIJNLQ-RAJ1"
932       },
933       {
934         "id": "OPA1",
935         "name": "opaclli1-OPA1"
936       },
937       {
938         "id": "SDE1",
939         "name": "ZXCVBNMA-SDE1"
940       },
941       {
942         "id": "VEN2",
943         "name": "FGHJUHIL-VEN2"
944       },
945       {
946         "id": "ORL1",
947         "name": "ORLDFLMA-ORL1"
948       },
949       {
950         "id": "JAD1",
951         "name": "JADECLLI-JAD1"
952       },
953       {
954         "id": "ZXL1",
955         "name": "LWLWCANN-ZXL1"
956       },
957       {
958         "id": "CKL1",
959         "name": "CLKSKCKK-CKL1"
960       },
961       {
962         "id": "SDF1",
963         "name": "sdfclli1-SDF1"
964       },
965       {
966         "id": "RAD1",
967         "name": "RADICAL1-RAD1"
968       },
969       {
970         "id": "KIT1",
971         "name": "BHYJFGLN-KIT1"
972       },
973       {
974         "id": "REL1",
975         "name": "INGERFGT-REL1"
976       },
977       {
978         "id": "JNL1",
979         "name": "CJALSDAC-JNL1"
980       },
981       {
982         "id": "OLK1",
983         "name": "OLKOLKLS-OLK1"
984       },
985       {
986         "id": "CHI1",
987         "name": "CHILLIWE-CHI1"
988       },
989       {
990         "id": "UUU4",
991         "name": "UUUAAAUU-UUU4"
992       },
993       {
994         "id": "TUF1",
995         "name": "TUFCLLI1-TUF1"
996       },
997       {
998         "id": "KJN1",
999         "name": "CKALDKSA-KJN1"
1000       },
1001       {
1002         "id": "SAM1",
1003         "name": "SNDGCA64-SAN1"
1004       },
1005       {
1006         "id": "SCK1",
1007         "name": "SCKSCKSK-SCK1"
1008       },
1009       {
1010         "id": "HJH1",
1011         "name": "AOEEQQQD-HJH1"
1012       },
1013       {
1014         "id": "HGD1",
1015         "name": "SDFQWHGD-HGD1"
1016       },
1017       {
1018         "id": "KOR1",
1019         "name": "HYFLNBVT-KOR1"
1020       },
1021       {
1022         "id": "ATL43",
1023         "name": "AICLOCID-ATL43"
1024       },
1025       {
1026         "id": "ATL54",
1027         "name": "AICFTAAI-ATL54"
1028       },
1029       {
1030         "id": "ATL66",
1031         "name": "CLLIAAII-ATL66"
1032       },
1033       {
1034         "id": "VEL1",
1035         "name": "BNMLKUIK-VEL1"
1036       },
1037       {
1038         "id": "ICC1",
1039         "name": "SANJITAT-ICC1"
1040       },
1041       {
1042         "id": "MNT11",
1043         "name": "WSXEFBTH-MNT11"
1044       },
1045       {
1046         "id": "DEF2",
1047         "name": "WSBHGTYL-DEF2"
1048       },
1049       {
1050         "id": "MAD11",
1051         "name": "SDFQWGKL-MAD11"
1052       },
1053       {
1054         "id": "OLG1",
1055         "name": "OLHOLHOL-OLG1"
1056       },
1057       {
1058         "id": "GAR1",
1059         "name": "NGFVSJKO-GAR1"
1060       },
1061       {
1062         "id": "SAN22",
1063         "name": "GNVLSCTL-SAN22"
1064       },
1065       {
1066         "id": "HRG1",
1067         "name": "HRGHRGGS-HRG1"
1068       },
1069       {
1070         "id": "JCS1",
1071         "name": "JCSJSCJS-JCS1"
1072       },
1073       {
1074         "id": "DHA12",
1075         "name": "WSXEDECF-DHA12"
1076       },
1077       {
1078         "id": "HJE1",
1079         "name": "AOEEWWWD-HJE1"
1080       },
1081       {
1082         "id": "NCA1",
1083         "name": "NCANCANN-NCA1"
1084       },
1085       {
1086         "id": "IOP1",
1087         "name": "iopclli1-IOP1"
1088       },
1089       {
1090         "id": "RTY1",
1091         "name": "rtyclli1-RTY1"
1092       },
1093       {
1094         "id": "KAP1",
1095         "name": "HIOUYTRQ-KAP1"
1096       },
1097       {
1098         "id": "ZEN1",
1099         "name": "ZENCLLI1-ZEN1"
1100       },
1101       {
1102         "id": "HKA1",
1103         "name": "JAKHLASS-HKA1"
1104       },
1105       {
1106         "id": "CQK1",
1107         "name": "CQKSCAKK-CQK1"
1108       },
1109       {
1110         "id": "SAI1",
1111         "name": "UBEKQLPD-SAI1"
1112       },
1113       {
1114         "id": "ERT1",
1115         "name": "ertclli1-ERT1"
1116       },
1117       {
1118         "id": "IBB1",
1119         "name": "PLMKOIJU-IBB1"
1120       },
1121       {
1122         "id": "TIR2",
1123         "name": "PLKINHYI-TIR2"
1124       },
1125       {
1126         "id": "HSD1",
1127         "name": "CHASKCDS-HSD1"
1128       },
1129       {
1130         "id": "SLF78",
1131         "name": "SDCTLFN1-SLF78"
1132       },
1133       {
1134         "id": "SEE78",
1135         "name": "SDCTEEE4-SEE78"
1136       },
1137       {
1138         "id": "SAN13",
1139         "name": "TOKYJPFA-SAN13"
1140       },
1141       {
1142         "id": "SAA78",
1143         "name": "SDCTAAA1-SAA78"
1144       },
1145       {
1146         "id": "LUC1",
1147         "name": "ATLDFGYC-LUC1"
1148       },
1149       {
1150         "id": "AMD13",
1151         "name": "MEMATLAN-AMD13"
1152       },
1153       {
1154         "id": "TOR1",
1155         "name": "TOROONXN-TOR1"
1156       },
1157       {
1158         "id": "QWE1",
1159         "name": "QWECLLI1-QWE1"
1160       },
1161       {
1162         "id": "ZOG1",
1163         "name": "ZOGASTRO-ZOG1"
1164       },
1165       {
1166         "id": "CAL33",
1167         "name": "CALIFORN-CAL33"
1168       },
1169       {
1170         "id": "SHH78",
1171         "name": "SDIT1HHH-SHH78"
1172       },
1173       {
1174         "id": "DSA1",
1175         "name": "LKJHGFDS-DSA1"
1176       },
1177       {
1178         "id": "CLG1",
1179         "name": "CLGRABAD-CLG1"
1180       },
1181       {
1182         "id": "BNA1",
1183         "name": "BNARAGBK-BNA1"
1184       },
1185       {
1186         "id": "ATL84",
1187         "name": "CANTTCOC-ATL84"
1188       },
1189       {
1190         "id": "APP1",
1191         "name": "WBHGTYUI-APP1"
1192       },
1193       {
1194         "id": "RJN1",
1195         "name": "RJNRBZAW-RJN1"
1196       },
1197       {
1198         "id": "EHH78",
1199         "name": "SDCSHHH5-EHH78"
1200       },
1201       {
1202         "id": "mac10",
1203         "name": "PKGTESTF-mac10"
1204       },
1205       {
1206         "id": "SXB78",
1207         "name": "SDCTGXB1-SXB78"
1208       },
1209       {
1210         "id": "SAX78",
1211         "name": "SDCTAXG1-SAX78"
1212       },
1213       {
1214         "id": "SYD1",
1215         "name": "SYDNAUBV-SYD1"
1216       },
1217       {
1218         "id": "TOK1",
1219         "name": "TOKYJPFA-TOK1"
1220       },
1221       {
1222         "id": "KGM2",
1223         "name": "KGMTNC20-KGM2"
1224       },
1225       {
1226         "id": "DCC1b",
1227         "name": "POIUYTGH-DCC1b"
1228       },
1229       {
1230         "id": "SKK78",
1231         "name": "SDCTKKK1-SKK78"
1232       },
1233       {
1234         "id": "SGG78",
1235         "name": "SDCTGGG1-SGG78"
1236       },
1237       {
1238         "id": "SJJ78",
1239         "name": "SDCTJJJ1-SJJ78"
1240       },
1241       {
1242         "id": "SBX78",
1243         "name": "SDCTBXG1-SBX78"
1244       },
1245       {
1246         "id": "LAG1",
1247         "name": "LARGIZON-LAG1"
1248       },
1249       {
1250         "id": "IAA1",
1251         "name": "QAZXSWED-IAA1"
1252       },
1253       {
1254         "id": "POI1",
1255         "name": "PLMNJKIU-POI1"
1256       },
1257       {
1258         "id": "LAG1a",
1259         "name": "LARGIZON-LAG1a"
1260       },
1261       {
1262         "id": "PBL1",
1263         "name": "PBLAPBAI-PBL1"
1264       },
1265       {
1266         "id": "LAG45",
1267         "name": "LARGIZON-LAG1a"
1268       },
1269       {
1270         "id": "MAR1",
1271         "name": "MNBVCXZM-MAR1"
1272       },
1273       {
1274         "id": "HST70",
1275         "name": "HSTNTX70-HST70"
1276       },
1277       {
1278         "id": "DCC1a",
1279         "name": "POIUYTGH-DCC1a"
1280       },
1281       {
1282         "id": "TOL1",
1283         "name": "TOLDOH21-TOL1"
1284       },
1285       {
1286         "id": "LON1",
1287         "name": "LONEENCO-LON1"
1288       },
1289       {
1290         "id": "SJU78",
1291         "name": "SDIT1JUB-SJU78"
1292       },
1293       {
1294         "id": "STN27",
1295         "name": "HSTNTX01-STN27"
1296       },
1297       {
1298         "id": "SSW56",
1299         "name": "ss8126GT-SSW56"
1300       },
1301       {
1302         "id": "SBB78",
1303         "name": "SDIT1BBB-SBB78"
1304       },
1305       {
1306         "id": "DCC3",
1307         "name": "POIUYTGH-DCC3"
1308       },
1309       {
1310         "id": "GNV1",
1311         "name": "GNVLSCTL-GNV1"
1312       },
1313       {
1314         "id": "WAS1",
1315         "name": "WASHDCSW-WAS1"
1316       },
1317       {
1318         "id": "TOY1",
1319         "name": "TORYONNZ-TOY1"
1320       },
1321       {
1322         "id": "STT1",
1323         "name": "STTLWA02-STT1"
1324       },
1325       {
1326         "id": "STG1",
1327         "name": "STTGGE62-STG1"
1328       },
1329       {
1330         "id": "SLL78",
1331         "name": "SDCTLLL1-SLL78"
1332       },
1333       {
1334         "id": "SBU78",
1335         "name": "SDIT1BUB-SBU78"
1336       },
1337       {
1338         "id": "ATL2",
1339         "name": "ATLNGANW-ATL2"
1340       },
1341       {
1342         "id": "BOT1",
1343         "name": "BOTHWAKY-BOT1"
1344       },
1345       {
1346         "id": "SNG1",
1347         "name": "SNGPSIAU-SNG1"
1348       },
1349       {
1350         "id": "NYC1",
1351         "name": "NYCMNY54-NYC1"
1352       },
1353       {
1354         "id": "LAG1b",
1355         "name": "LARGIZON-LAG1b"
1356       },
1357       {
1358         "id": "AMD15",
1359         "name": "AMDFAA01-AMD15"
1360       },
1361       {
1362         "id": "SNA1",
1363         "name": "SNANTXCA-SNA1"
1364       },
1365       {
1366         "id": "PLT1",
1367         "name": "PLTNCA60-PLT1"
1368       },
1369       {
1370         "id": "TLP1",
1371         "name": "TLPNXM18-TLP1"
1372       },
1373       {
1374         "id": "SDD81",
1375         "name": "SAIT1DD6-SDD81"
1376       },
1377       {
1378         "id": "DCC1",
1379         "name": "POIUYTGH-DCC1"
1380       },
1381       {
1382         "id": "DCC2",
1383         "name": "POIUYTGH-DCC2"
1384       },
1385       {
1386         "id": "OKC1",
1387         "name": "OKCBOK55-OKC1"
1388       },
1389       {
1390         "id": "PAR1",
1391         "name": "PARSFRCG-PAR1"
1392       },
1393       {
1394         "id": "TES36",
1395         "name": "ABCEETES-TES36"
1396       },
1397       {
1398         "id": "COM1",
1399         "name": "PLMKOPIU-COM1"
1400       },
1401       {
1402         "id": "ANI1",
1403         "name": "ATLNGTRE-ANI1"
1404       },
1405       {
1406         "id": "SDG78",
1407         "name": "SDIT1BDG-SDG78"
1408       },
1409       {
1410         "id": "mac20",
1411         "name": "PKGTESTF-mac20"
1412       },
1413       {
1414         "id": "DSF45",
1415         "name": "DSFBG123-DSF45"
1416       },
1417       {
1418         "id": "HST25",
1419         "name": "HSTNTX01-HST25"
1420       },
1421       {
1422         "id": "AMD18",
1423         "name": "AUDIMA01-AMD18"
1424       },
1425       {
1426         "id": "SAA80",
1427         "name": "SAIT9AA3-SAA80"
1428       },
1429       {
1430         "id": "SSA56",
1431         "name": "SSIT2AA7-SSA56"
1432       },
1433       {
1434         "id": "SDD82",
1435         "name": "SAIT1DD9-SDD82"
1436       },
1437       {
1438         "id": "JCV1",
1439         "name": "JCVLFLBW-JCV1"
1440       },
1441       {
1442         "id": "SUL2",
1443         "name": "WERTYUJK-SUL2"
1444       },
1445       {
1446         "id": "PUR1",
1447         "name": "purelyde-PUR1"
1448       },
1449       {
1450         "id": "FDE55",
1451         "name": "FDERT555-FDE55"
1452       },
1453       {
1454         "id": "SITE",
1455         "name": "LONEENCO-SITE"
1456       },
1457       {
1458         "id": "ATL1",
1459         "name": "ATLNGAMA-ATL1"
1460       },
1461       {
1462         "id": "JUL1",
1463         "name": "ZXCVBNMM-JUL1"
1464       },
1465       {
1466         "id": "TAT34",
1467         "name": "TESAAISB-TAT34"
1468       },
1469       {
1470         "id": "XCP12",
1471         "name": "CHKGH123-XCP12"
1472       },
1473       {
1474         "id": "RAI1",
1475         "name": "poiuytre-RAI1"
1476       },
1477       {
1478         "id": "HPO1",
1479         "name": "ATLNGAUP-HPO1"
1480       },
1481       {
1482         "id": "KJF12",
1483         "name": "KJFDH123-KJF12"
1484       },
1485       {
1486         "id": "SCC80",
1487         "name": "SAIT9CC3-SCC80"
1488       },
1489       {
1490         "id": "SAA12",
1491         "name": "SAIT9AF8-SAA12"
1492       },
1493       {
1494         "id": "SAA14",
1495         "name": "SAIT1AA9-SAA14"
1496       },
1497       {
1498         "id": "ATL35",
1499         "name": "TTESSAAI-ATL35"
1500       },
1501       {
1502         "id": "CWY1",
1503         "name": "CWYMOWBS-CWY1"
1504       },
1505       {
1506         "id": "ATL76",
1507         "name": "TELEPAAI-ATL76"
1508       },
1509       {
1510         "id": "DSL12",
1511         "name": "DSLFK242-DSL12"
1512       },
1513       {
1514         "id": "ATL53",
1515         "name": "AAIATLTE-ATL53"
1516       },
1517       {
1518         "id": "SAA11",
1519         "name": "SAIT9AA2-SAA11"
1520       },
1521       {
1522         "id": "ATL62",
1523         "name": "TESSASCH-ATL62"
1524       },
1525       {
1526         "id": "AUG1",
1527         "name": "ASDFGHJK-AUG1"
1528       },
1529       {
1530         "id": "POI22",
1531         "name": "POIUY123-POI22"
1532       },
1533       {
1534         "id": "SAA13",
1535         "name": "SAIT1AA9-SAA13"
1536       },
1537       {
1538         "id": "BHY17",
1539         "name": "BHYTFRF3-BHY17"
1540       },
1541       {
1542         "id": "LIS1",
1543         "name": "HOSTPROF-LIS1"
1544       },
1545       {
1546         "id": "SIP1",
1547         "name": "ZXCVBNMK-SIP1"
1548       },
1549       {
1550         "id": "ATL99",
1551         "name": "TEESTAAI-ATL43"
1552       },
1553       {
1554         "id": "ATL64",
1555         "name": "FORLOAAJ-ATL64"
1556       },
1557       {
1558         "id": "TAT33",
1559         "name": "TESAAISA-TAT33"
1560       },
1561       {
1562         "id": "RAD10",
1563         "name": "INDIPUNE-RAD10"
1564       },
1565       {
1566         "id": "RTW5",
1567         "name": "BHYTFRY4-RTW5"
1568       },
1569       {
1570         "id": "JGS1",
1571         "name": "KSJKKKKK-JGS1"
1572       },
1573       {
1574         "id": "ATL98",
1575         "name": "TEESTAAI-ATL43"
1576       },
1577       {
1578         "id": "WAN1",
1579         "name": "LEIWANGW-WAN1"
1580       },
1581       {
1582         "id": "ATL44",
1583         "name": "ATLSANAB-ATL44"
1584       },
1585       {
1586         "id": "RTD2",
1587         "name": "BHYTFRk4-RTD2"
1588       },
1589       {
1590         "id": "NIR1",
1591         "name": "ORFLMANA-NIR1"
1592       },
1593       {
1594         "id": "ATL75",
1595         "name": "SANAAIRE-ATL75"
1596       },
1597       {
1598         "id": "NUM1",
1599         "name": "QWERTYUI-NUM1"
1600       },
1601       {
1602         "id": "hvf32",
1603         "name": "MDTWNJ21-hvf32"
1604       },
1605       {
1606         "id": "RTZ4",
1607         "name": "BHYTFRZ6-RTZ4"
1608       },
1609       {
1610         "id": "ATL56",
1611         "name": "ATLSANAC-ATL56"
1612       },
1613       {
1614         "id": "AMS1",
1615         "name": "AMSTNLBW-AMS1"
1616       },
1617       {
1618         "id": "RCT1",
1619         "name": "AMSTERNL-RCT1"
1620       },
1621       {
1622         "id": "JAN1",
1623         "name": "ORFLMATT-JAN1"
1624       },
1625       {
1626         "id": "ABC14",
1627         "name": "TESAAISA-ABC14"
1628       },
1629       {
1630         "id": "TAT37",
1631         "name": "TESAAISD-TAT37"
1632       },
1633       {
1634         "id": "MIC54",
1635         "name": "MICHIGAN-MIC54"
1636       },
1637       {
1638         "id": "ABC11",
1639         "name": "ATLSANAI-ABC11"
1640       },
1641       {
1642         "id": "AMF11",
1643         "name": "AMDOCS01-AMF11"
1644       },
1645       {
1646         "id": "ATL63",
1647         "name": "ATLSANEW-ATL63"
1648       },
1649       {
1650         "id": "ABC12",
1651         "name": "ATLSECIA-ABC12"
1652       },
1653       {
1654         "id": "hvf20",
1655         "name": "MDTWNJ21-hvf20"
1656       },
1657       {
1658         "id": "ABC15",
1659         "name": "AAITESAN-ABC15"
1660       },
1661       {
1662         "id": "AVT1",
1663         "name": "AVTRFLHD-AVT1"
1664       },
1665       {
1666         "id": "ATL34",
1667         "name": "ATLSANAI-ATL34"
1668       }
1669       ],
1670     "categoryParameters": {
1671       "owningEntityList": [
1672         {
1673           "id": "aaa1",
1674           "name": "aaa1"
1675         },
1676         {
1677           "id": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
1678           "name": "WayneHolland"
1679         },
1680         {
1681           "id": "Melissa",
1682           "name": "Melissa"
1683         }
1684         ],
1685       "projectList": [
1686         {
1687           "id": "WATKINS",
1688           "name": "WATKINS"
1689         },
1690         {
1691           "id": "x1",
1692           "name": "x1"
1693         },
1694         {
1695           "id": "yyy1",
1696           "name": "yyy1"
1697         }
1698         ],
1699       "lineOfBusinessList": [
1700         {
1701           "id": "ONAP",
1702           "name": "ONAP"
1703         },
1704         {
1705           "id": "zzz1",
1706           "name": "zzz1"
1707         }
1708         ],
1709       "platformList": [
1710         {
1711           "id": "platform",
1712           "name": "platform"
1713         },
1714         {
1715           "id": "xxx1",
1716           "name": "xxx1"
1717         }
1718         ]
1719     },
1720     "type": "[LCP_REGIONS_AND_TENANTS] Update",
1721     "subscribers": [
1722       {
1723         "id": "CAR_2020_ER",
1724         "name": "CAR_2020_ER",
1725         "isPermitted": true
1726       },
1727       {
1728         "id": "21014aa2-526b-11e6-beb8-9e71128cae77",
1729         "name": "JULIO ERICKSON",
1730         "isPermitted": false
1731       },
1732       {
1733         "id": "DHV1707-TestSubscriber-2",
1734         "name": "DALE BRIDGES",
1735         "isPermitted": false
1736       },
1737       {
1738         "id": "DHV1707-TestSubscriber-1",
1739         "name": "LLOYD BRIDGES",
1740         "isPermitted": false
1741       },
1742       {
1743         "id": "jimmy-example",
1744         "name": "JimmyExampleCust-20161102",
1745         "isPermitted": false
1746       },
1747       {
1748         "id": "jimmy-example2",
1749         "name": "JimmyExampleCust-20161103",
1750         "isPermitted": false
1751       },
1752       {
1753         "id": "ERICA5779-TestSub-PWT-102",
1754         "name": "ERICA5779-TestSub-PWT-102",
1755         "isPermitted": false
1756       },
1757       {
1758         "id": "ERICA5779-TestSub-PWT-101",
1759         "name": "ERICA5779-TestSub-PWT-101",
1760         "isPermitted": false
1761       },
1762       {
1763         "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
1764         "name": "Emanuel",
1765         "isPermitted": false
1766       },
1767       {
1768         "id": "ERICA5779-Subscriber-4",
1769         "name": "ERICA5779-Subscriber-5",
1770         "isPermitted": false
1771       },
1772       {
1773         "id": "ERICA5779-TestSub-PWT-103",
1774         "name": "ERICA5779-TestSub-PWT-103",
1775         "isPermitted": false
1776       },
1777       {
1778         "id": "ERICA5779-Subscriber-2",
1779         "name": "ERICA5779-Subscriber-2",
1780         "isPermitted": false
1781       },
1782       {
1783         "id": "e433710f-9217-458d-a79d-1c7aff376d89",
1784         "name": "SILVIA ROBBINS",
1785         "isPermitted": true
1786       },
1787       {
1788         "id": "ERICA5779-Subscriber-3",
1789         "name": "ERICA5779-Subscriber-3",
1790         "isPermitted": false
1791       },
1792       {
1793         "id": "31739f3e-526b-11e6-beb8-9e71128cae77",
1794         "name": "CRAIG/ROBERTS",
1795         "isPermitted": false
1796       }
1797       ]
1798   }
1799 }
1800 }
1801 }
1802
1803 class MockFeatureFlagsService {}
1804
1805 describe('Network Control Generator', () => {
1806   let injector;
1807   let service: NetworkControlGenerator;
1808   let httpMock: HttpTestingController;
1809
1810   beforeEach(() => {
1811     TestBed.configureTestingModule({
1812       imports: [HttpClientTestingModule],
1813       providers: [NetworkControlGenerator,
1814         GenericFormService,
1815         BasicControlGenerator,
1816         AaiService,
1817         FormBuilder,
1818         LogService,
1819         {provide:FeatureFlagsService, useClass: MockFeatureFlagsService},
1820         {provide: NgRedux, useClass: MockAppStore}]
1821     });
1822
1823     injector = getTestBed();
1824     service = injector.get(NetworkControlGenerator);
1825     httpMock = injector.get(HttpTestingController);
1826   });
1827
1828   test('getMacroFormControls check for mandatory controls', () => {
1829     const serviceId : string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1830     const networkName : string = "ExtVL 0";
1831     const networkStoreKey : string = "ExtVL 0";
1832     const controls :FormControlModel[] = service.getMacroFormControls(serviceId, networkStoreKey, networkName, false);
1833
1834     const mandatoryControls : string[] = [
1835       FormControlNames.LCPCLOUD_REGION_ID,
1836       'tenantId',
1837       'lineOfBusiness'
1838     ];
1839     for(let i = 0 ; i < mandatoryControls.length ; i++){
1840       let requiredExist = controls.find(ctrl => ctrl.controlName === mandatoryControls[i]).validations.find(item => item.validatorName === 'required');
1841       expect(requiredExist).toBeDefined();
1842     }
1843   });
1844
1845
1846   test('getMacroFormControls should return instance name if isEcompName is true', () => {
1847     const serviceId : string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1848     const networkName : string = "ExtVL 1";
1849     const networkStoreKey : string = "ExtVL 1";
1850     const controls :FormControlModel[] = service.getMacroFormControls(serviceId, networkStoreKey, networkName, false);
1851
1852     const controlsOrderNames = [
1853       FormControlNames.INSTANCE_NAME,
1854       FormControlNames.PRODUCT_FAMILY_ID,
1855       FormControlNames.LCPCLOUD_REGION_ID ,
1856       'legacyRegion',
1857       'tenantId',
1858       'platformName',
1859       'lineOfBusiness'];
1860
1861
1862
1863     expect(controls.length).toEqual(7);
1864     for(let i = 0 ; i < controls.length ; i++){
1865       expect(controls[i].controlName).toEqual(controlsOrderNames[i]);
1866     }
1867   });
1868
1869   test('getMacroFormControls should return the correct order of controls', () => {
1870     const serviceId : string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1871     const networkName : string = "ExtVL 0";
1872     const networkStoreKey : string = "ExtVL 0";
1873     const controls :FormControlModel[] = service.getMacroFormControls(serviceId, networkStoreKey, networkName, false);
1874
1875     const controlsOrderNames = [
1876       FormControlNames.INSTANCE_NAME,
1877       FormControlNames.PRODUCT_FAMILY_ID,
1878       FormControlNames.LCPCLOUD_REGION_ID ,
1879       'legacyRegion',
1880       'tenantId',
1881       'platformName',
1882       'lineOfBusiness'];
1883
1884
1885
1886     expect(controls.length).toEqual(7);
1887     for(let i = 0 ; i < controls.length ; i++){
1888       expect(controls[i].controlName).toEqual(controlsOrderNames[i]);
1889     }
1890   });
1891
1892   test('getMacroFormControls should not return the rollback status', () => {
1893     const serviceId : string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1894     const networkName : string = "ExtVL 0";
1895     const networkStoreKey : string = "ExtVL 0";
1896     const controls :FormControlModel[] = service.getMacroFormControls(serviceId, networkStoreKey, networkName, false);
1897
1898     const controlsOrderNames = [
1899       FormControlNames.INSTANCE_NAME,
1900       FormControlNames.PRODUCT_FAMILY_ID,
1901       FormControlNames.LCPCLOUD_REGION_ID ,
1902       'legacyRegion',
1903       'tenantId',
1904       'platformName',
1905       'lineOfBusiness',
1906       FormControlNames.ROLLBACK_ON_FAILURE
1907     ];
1908
1909
1910
1911     expect(controls.length).toEqual(7);
1912     for(let i = 0 ; i < controls.length ; i++){
1913       expect(controls[i].controlName).toEqual(controlsOrderNames[i]);
1914     }
1915   });
1916
1917   test('getAlacartFormControls should return the correct order of controls', () => {
1918     const controls:FormControlModel[] = getAlaCarteFormControls();
1919
1920     const controlsOrderNames = [
1921       FormControlNames.INSTANCE_NAME,
1922       FormControlNames.PRODUCT_FAMILY_ID,
1923       FormControlNames.LCPCLOUD_REGION_ID,
1924       'legacyRegion',
1925       'tenantId',
1926       'platformName',
1927       'lineOfBusiness',
1928       'rollbackOnFailure'];
1929     expect(controls.length).toEqual(8);
1930     for(let i = 0 ; i < controls.length ; i++) {
1931       expect(controls[i].controlName).toEqual(controlsOrderNames[i]);
1932     }
1933   });
1934
1935   function getAlaCarteFormControls(): FormControlModel[] {
1936     const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1937     const networkName: string = "ExtVL 0";
1938     const networkStoreKey: string = "ExtVL 0";
1939     const controls: FormControlModel[] = service.getAlaCarteFormControls(serviceId, networkStoreKey, networkName, false);
1940     return controls;
1941   }
1942
1943   test('getAlacartFormControls instance name control validator shall have the expected regex', () => {
1944     const controls:FormControlModel[] = getAlaCarteFormControls();
1945
1946     const instanceNameControl: FormControlModel = <FormControlModel>controls.find(item => item.controlName === FormControlNames.INSTANCE_NAME);
1947     const instanceNameValidator: ValidatorModel = instanceNameControl.validations.find(val => val.validatorName === ValidatorOptions.pattern);
1948     expect(instanceNameValidator.validatorArg).toEqual(/^[a-zA-Z0-9._-]*$/);
1949   });
1950
1951   test('getAlacartFormControls check for mandatory controls', () => {
1952     const controls:FormControlModel[] = getAlaCarteFormControls();
1953
1954     const mandatoryControls : string[] = [
1955       FormControlNames.INSTANCE_NAME,
1956       FormControlNames.LCPCLOUD_REGION_ID,
1957       'tenantId',
1958       'rollbackOnFailure'
1959     ];
1960     for(let i = 0 ; i < mandatoryControls.length ; i++){
1961       let requiredExist = controls.find(ctrl => ctrl.controlName === mandatoryControls[i]).validations.find(item => item.validatorName === 'required');
1962       expect(requiredExist).toBeDefined();
1963     }
1964   });
1965 });
1966