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