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