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