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