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