1 import {getTestBed, TestBed} from '@angular/core/testing';
2 import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
3 import {NgRedux} from '@angular-redux/store';
4 import {BasicControlGenerator} from "../basic.control.generator";
5 import {AaiService} from "../../../../services/aaiService/aai.service";
6 import {GenericFormService} from "../../generic-form.service";
7 import {FormBuilder} from "@angular/forms";
8 import {LogService} from "../../../../utils/log/log.service";
13 } from "../../../../models/formControlModels/formControl.model";
14 import {FormControlNames, VfModuleControlGenerator} from "./vfModule.control.generator";
15 import {FeatureFlagsService} from "../../../../services/featureFlag/feature-flags.service";
17 class MockAppStore<T> {
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
33 "type": "[FLAGS] Update"
37 "6e59c5de-f052-46fa-aa7e-2fca9d674c44": {
39 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
40 "invariantUuid": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
41 "name": "ComplexService",
43 "toscaModelURL": null,
44 "category": "Emanuel",
47 "description": "ComplexService",
48 "serviceEcompNaming": "false",
49 "instantiationType": "Macro",
54 "uuid": "d6557200-ecf2-4641-8094-5393ae3aae60",
55 "invariantUuid": "4160458e-f648-4b30-a176-43881ffffe9e",
56 "description": "VSP_vGeraldine",
57 "name": "VF_vGeraldine",
59 "customizationUuid": "91415b44-753d-494c-926a-456a9172bbb9",
62 "serviceEcompNaming" : "true",
64 "ecomp_generated_naming": "false",
67 "gpb2_Internal2_mac": "00:11:22:EF:AC:DF",
68 "sctp-b-ipv6-egress_src_start_port": "0",
69 "sctp-a-ipv6-egress_rule_application": "any",
70 "Internal2_allow_transit": "true",
71 "sctp-b-IPv6_ethertype": "IPv6",
72 "sctp-a-egress_rule_application": "any",
73 "sctp-b-ingress_action": "pass",
74 "sctp-b-ingress_rule_protocol": "icmp",
75 "ncb2_Internal1_mac": "00:11:22:EF:AC:DF",
76 "sctp-b-ipv6-ingress-src_start_port": "0.0",
77 "ncb1_Internal2_mac": "00:11:22:EF:AC:DF",
78 "fsb_volume_size_0": "320.0",
79 "sctp-b-egress_src_addresses": "local",
80 "sctp-a-ipv6-ingress_ethertype": "IPv4",
81 "sctp-a-ipv6-ingress-dst_start_port": "0",
82 "sctp-b-ipv6-ingress_rule_application": "any",
83 "domain_name": "default-domain",
84 "sctp-a-ingress_rule_protocol": "icmp",
85 "sctp-b-egress-src_start_port": "0.0",
86 "sctp-a-egress_src_addresses": "local",
87 "sctp-b-display_name": "epc-sctp-b-ipv4v6-sec-group",
88 "sctp-a-egress-src_start_port": "0.0",
89 "sctp-a-ingress_ethertype": "IPv4",
90 "sctp-b-ipv6-ingress-dst_end_port": "65535",
91 "sctp-b-dst_subnet_prefix_v6": "::",
92 "nf_naming": "{ecomp_generated_naming=true}",
93 "sctp-a-ipv6-ingress_src_subnet_prefix": "0.0.0.0",
94 "sctp-b-egress-dst_start_port": "0.0",
95 "ncb_flavor_name": "nv.c20r64d1",
96 "gpb1_Internal1_mac": "00:11:22:EF:AC:DF",
97 "sctp-b-egress_dst_subnet_prefix_len": "0.0",
98 "Internal2_net_cidr": "10.0.0.10",
99 "sctp-a-ingress-dst_start_port": "0.0",
100 "sctp-a-egress-dst_start_port": "0.0",
101 "fsb1_Internal2_mac": "00:11:22:EF:AC:DF",
102 "sctp-a-egress_ethertype": "IPv4",
103 "vlc_st_service_mode": "in-network-nat",
104 "sctp-a-ipv6-egress_ethertype": "IPv4",
105 "sctp-a-egress-src_end_port": "65535.0",
106 "sctp-b-ipv6-egress_rule_application": "any",
107 "sctp-b-egress_action": "pass",
108 "sctp-a-ingress-src_subnet_prefix_len": "0.0",
109 "sctp-b-ipv6-ingress-src_end_port": "65535.0",
110 "sctp-b-name": "epc-sctp-b-ipv4v6-sec-group",
111 "fsb2_Internal1_mac": "00:11:22:EF:AC:DF",
112 "sctp-a-ipv6-ingress-src_start_port": "0.0",
113 "sctp-b-ipv6-egress_ethertype": "IPv4",
114 "Internal1_net_cidr": "10.0.0.10",
115 "sctp-a-egress_dst_subnet_prefix": "0.0.0.0",
116 "fsb_flavor_name": "nv.c20r64d1",
117 "sctp_rule_protocol": "132",
118 "sctp-b-ipv6-ingress_src_subnet_prefix_len": "0",
119 "sctp-a-ipv6-ingress_rule_application": "any",
120 "sctp-a-IPv6_ethertype": "IPv6",
121 "vlc2_Internal1_mac": "00:11:22:EF:AC:DF",
122 "vlc_st_virtualization_type": "virtual-machine",
123 "sctp-b-ingress-dst_start_port": "0.0",
124 "sctp-b-ingress-dst_end_port": "65535.0",
125 "sctp-a-ipv6-ingress-src_end_port": "65535.0",
126 "sctp-a-display_name": "epc-sctp-a-ipv4v6-sec-group",
127 "sctp-b-ingress_rule_application": "any",
128 "int2_sec_group_name": "int2-sec-group",
129 "vlc_flavor_name": "nd.c16r64d1",
130 "sctp-b-ipv6-egress_src_addresses": "local",
131 "vlc_st_interface_type_int1": "other1",
132 "sctp-b-egress-src_end_port": "65535.0",
133 "sctp-a-ipv6-egress-dst_start_port": "0",
134 "vlc_st_interface_type_int2": "other2",
135 "sctp-a-ipv6-egress_rule_protocol": "any",
136 "Internal2_shared": "false",
137 "sctp-a-ipv6-egress_dst_subnet_prefix_len": "0",
138 "Internal2_rpf": "disable",
139 "vlc1_Internal1_mac": "00:11:22:EF:AC:DF",
140 "sctp-b-ipv6-egress_src_end_port": "65535",
141 "sctp-a-ipv6-egress_src_addresses": "local",
142 "sctp-a-ingress-dst_end_port": "65535.0",
143 "sctp-a-ipv6-egress_src_end_port": "65535",
144 "Internal1_forwarding_mode": "l2",
145 "Internal2_dhcp": "false",
146 "sctp-a-dst_subnet_prefix_v6": "::",
147 "pxe_image_name": "MME_PXE-Boot_16ACP04_GA.qcow2",
148 "vlc_st_interface_type_gtp": "other0",
149 "ncb1_Internal1_mac": "00:11:22:EF:AC:DF",
150 "sctp-b-src_subnet_prefix_v6": "::",
151 "sctp-a-egress_dst_subnet_prefix_len": "0.0",
152 "int1_sec_group_name": "int1-sec-group",
153 "Internal1_dhcp": "false",
154 "sctp-a-ipv6-egress_dst_end_port": "65535",
155 "Internal2_forwarding_mode": "l2",
156 "fsb2_Internal2_mac": "00:11:22:EF:AC:DF",
157 "sctp-b-egress_dst_subnet_prefix": "0.0.0.0",
158 "Internal1_net_cidr_len": "17",
159 "gpb2_Internal1_mac": "00:11:22:EF:AC:DF",
160 "sctp-b-ingress-src_subnet_prefix_len": "0.0",
161 "sctp-a-ingress_dst_addresses": "local",
162 "sctp-a-egress_action": "pass",
163 "fsb_volume_type_0": "SF-Default-SSD",
164 "ncb2_Internal2_mac": "00:11:22:EF:AC:DF",
165 "vlc_st_interface_type_sctp_a": "left",
166 "vlc_st_interface_type_sctp_b": "right",
167 "sctp-a-src_subnet_prefix_v6": "::",
168 "vlc_st_version": "2",
169 "sctp-b-egress_ethertype": "IPv4",
170 "sctp-a-ingress_rule_application": "any",
171 "gpb1_Internal2_mac": "00:11:22:EF:AC:DF",
172 "instance_ip_family_v6": "v6",
173 "sctp-a-ipv6-egress_src_start_port": "0",
174 "sctp-b-ingress-src_start_port": "0.0",
175 "sctp-b-ingress_dst_addresses": "local",
176 "fsb1_Internal1_mac": "00:11:22:EF:AC:DF",
177 "vlc_st_interface_type_oam": "management",
178 "multi_stage_design": "true",
179 "oam_sec_group_name": "oam-sec-group",
180 "Internal2_net_gateway": "10.0.0.10",
181 "sctp-a-ipv6-ingress-dst_end_port": "65535",
182 "sctp-b-ipv6-egress-dst_start_port": "0",
183 "Internal1_net_gateway": "10.0.0.10",
184 "sctp-b-ipv6-egress_rule_protocol": "any",
185 "gtp_sec_group_name": "gtp-sec-group",
186 "sctp-a-ipv6-egress_dst_subnet_prefix": "0.0.0.0",
187 "sctp-b-ipv6-egress_dst_subnet_prefix_len": "0",
188 "sctp-a-ipv6-ingress_dst_addresses": "local",
189 "sctp-a-egress_rule_protocol": "icmp",
190 "sctp-b-ipv6-egress_action": "pass",
191 "sctp-a-ipv6-egress_action": "pass",
192 "Internal1_shared": "false",
193 "sctp-b-ipv6-ingress_rule_protocol": "any",
194 "Internal2_net_cidr_len": "17",
195 "sctp-a-name": "epc-sctp-a-ipv4v6-sec-group",
196 "sctp-a-ingress-src_end_port": "65535.0",
197 "sctp-b-ipv6-ingress_src_subnet_prefix": "0.0.0.0",
198 "sctp-a-egress-dst_end_port": "65535.0",
199 "sctp-a-ingress_action": "pass",
200 "sctp-b-egress_rule_protocol": "icmp",
201 "sctp-b-ipv6-ingress_action": "pass",
202 "vlc_st_service_type": "firewall",
203 "sctp-b-ipv6-egress_dst_end_port": "65535",
204 "sctp-b-ipv6-ingress-dst_start_port": "0",
205 "vlc2_Internal2_mac": "00:11:22:EF:AC:DF",
206 "vlc_st_availability_zone": "true",
207 "fsb_volume_image_name_1": "MME_FSB2_16ACP04_GA.qcow2",
208 "sctp-b-ingress-src_subnet_prefix": "0.0.0.0",
209 "sctp-a-ipv6-ingress_src_subnet_prefix_len": "0",
210 "Internal1_allow_transit": "true",
211 "gpb_flavor_name": "nv.c20r64d1",
212 "availability_zone_max_count": "1",
213 "fsb_volume_image_name_0": "MME_FSB1_16ACP04_GA.qcow2",
214 "sctp-b-ipv6-ingress_dst_addresses": "local",
215 "sctp-b-ipv6-egress_dst_subnet_prefix": "0.0.0.0",
216 "sctp-b-ipv6-ingress_ethertype": "IPv4",
217 "vlc1_Internal2_mac": "00:11:22:EF:AC:DF",
218 "sctp-a-ingress-src_subnet_prefix": "0.0.0.0",
219 "sctp-a-ipv6-ingress_action": "pass",
220 "Internal1_rpf": "disable",
221 "sctp-b-ingress_ethertype": "IPv4",
222 "sctp-b-egress_rule_application": "any",
223 "sctp-b-ingress-src_end_port": "65535.0",
224 "sctp-a-ipv6-ingress_rule_protocol": "any",
225 "sctp-a-ingress-src_start_port": "0.0",
226 "sctp-b-egress-dst_end_port": "65535.0"
229 "modelCustomizationName": "VF_vGeraldine 0",
231 "vf_vgeraldine0..VfVgeraldine..vflorence_vlc..module-1": {
232 "uuid": "522159d5-d6e0-4c2a-aa44-5a542a12a830",
233 "invariantUuid": "98a7c88b-b577-476a-90e4-e25a5871e02b",
234 "customizationUuid": "55b1be94-671a-403e-a26c-667e9c47d091",
236 "name": "VfVgeraldine..vflorence_vlc..module-1",
238 "modelCustomizationName": "VfVgeraldine..vflorence_vlc..module-1",
240 "minCountInstances": 0,
241 "maxCountInstances": null,
243 "vfModuleLabel": "vflorence_vlc"
246 "volumeGroupAllowed": true
248 "vf_vgeraldine0..VfVgeraldine..vflorence_gpb..module-2": {
249 "uuid": "41708296-e443-4c71-953f-d9a010f059e1",
250 "invariantUuid": "1cca90b8-3490-495e-87da-3f3e4c57d5b9",
251 "customizationUuid": "6add59e0-7fe1-4bc4-af48-f8812422ae7c",
253 "name": "VfVgeraldine..vflorence_gpb..module-2",
255 "modelCustomizationName": "VfVgeraldine..vflorence_gpb..module-2",
257 "minCountInstances": 0,
258 "maxCountInstances": null,
260 "vfModuleLabel": "vflorence_gpb"
263 "volumeGroupAllowed": false
265 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
266 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
267 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
268 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
270 "name": "VfVgeraldine..base_vflorence..module-0",
272 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
274 "minCountInstances": 1,
275 "maxCountInstances": 1,
277 "vfModuleLabel": "base_vflorence"
280 "volumeGroupAllowed": true
284 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
285 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
286 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
287 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
289 "name": "VfVgeraldine..base_vflorence..module-0",
291 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
293 "minCountInstances": 1,
294 "maxCountInstances": 1,
296 "vfModuleLabel": "base_vflorence"
301 "vfcInstanceGroups": {}
306 "uuid": "ddc3f20c-08b5-40fd-af72-c6d14636b986",
307 "invariantUuid": "379f816b-a7aa-422f-be30-17114ff50b7c",
308 "description": "ECOMP generic virtual link (network) base type for all other service-level and global networks",
311 "customizationUuid": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
315 "ecomp_generated_naming": "false",
316 "network_assignments": "{is_external_network=false, ipv4_subnet_default_assignment={min_subnets_count=1}, ecomp_generated_network_assignment=false, ipv6_subnet_default_assignment={min_subnets_count=1}}",
317 "exVL_naming": "{ecomp_generated_naming=true}",
318 "network_flows": "{is_network_policy=false, is_bound_to_vpn=false}",
319 "network_homing": "{ecomp_selected_instance_node_target=false}"
322 "modelCustomizationName": "ExtVL 0"
325 "collectionResources": {},
327 "Port Mirroring Configuration By Policy 0": {
328 "uuid": "b4398538-e89d-4f13-b33d-ca323434ba50",
329 "invariantUuid": "6ef0ca40-f366-4897-951f-abd65d25f6f7",
330 "description": "A port mirroring configuration by policy object",
331 "name": "Port Mirroring Configuration By Policy",
333 "customizationUuid": "3c3b7b8d-8669-4b3b-8664-61970041fad2",
337 "type": "Configuration",
338 "modelCustomizationName": "Port Mirroring Configuration By Policy 0",
340 "collectorNodes": null,
341 "configurationByPolicy": false
344 "serviceProxies": {},
346 "vf_vgeraldine0..VfVgeraldine..vflorence_vlc..module-1": {
347 "uuid": "522159d5-d6e0-4c2a-aa44-5a542a12a830",
348 "invariantUuid": "98a7c88b-b577-476a-90e4-e25a5871e02b",
349 "customizationUuid": "55b1be94-671a-403e-a26c-667e9c47d091",
351 "name": "VfVgeraldine..vflorence_vlc..module-1",
353 "modelCustomizationName": "VfVgeraldine..vflorence_vlc..module-1",
355 "minCountInstances": 0,
356 "maxCountInstances": null,
358 "vfModuleLabel": "vflorence_vlc"
361 "volumeGroupAllowed": true
363 "vf_vgeraldine0..VfVgeraldine..vflorence_gpb..module-2": {
364 "uuid": "41708296-e443-4c71-953f-d9a010f059e1",
365 "invariantUuid": "1cca90b8-3490-495e-87da-3f3e4c57d5b9",
366 "customizationUuid": "6add59e0-7fe1-4bc4-af48-f8812422ae7c",
368 "name": "VfVgeraldine..vflorence_gpb..module-2",
370 "modelCustomizationName": "VfVgeraldine..vflorence_gpb..module-2",
372 "minCountInstances": 0,
373 "maxCountInstances": null,
375 "vfModuleLabel": "vflorence_gpb"
378 "volumeGroupAllowed": false
380 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
381 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
382 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
383 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
385 "name": "VfVgeraldine..base_vflorence..module-0",
387 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
389 "minCountInstances": 1,
390 "maxCountInstances": 1,
392 "vfModuleLabel": "base_vflorence"
395 "volumeGroupAllowed": true
399 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
400 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
401 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
402 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
404 "name": "VfVgeraldine..base_vflorence..module-0",
406 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
408 "minCountInstances": 1,
409 "maxCountInstances": 1,
411 "vfModuleLabel": "base_vflorence"
420 "6e59c5de-f052-46fa-aa7e-2fca9d674c44": {
424 "rollbackOnFailure": "true",
426 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
427 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0vmvzo": {
428 "isMissingData": false,
429 "sdncPreReload": null,
431 "modelType": "VFmodule",
432 "modelInvariantId": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
433 "modelVersionId": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
434 "modelName": "VfVgeraldine..base_vflorence..module-0",
436 "modelCustomizationId": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
437 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0"
442 "trackById": "wmtm6sy2uj"
446 "isMissingData": true,
447 "originalName": "VF_vGeraldine 0",
448 "vnfStoreKey": "VF_vGeraldine 0",
449 "trackById": "p3wk448m5do",
450 "uuid": "d6557200-ecf2-4641-8094-5393ae3aae60",
451 "productFamilyId": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
452 "lcpCloudRegionId": null,
454 "lineOfBusiness": null,
455 "platformName": null,
458 "modelInvariantId": "4160458e-f648-4b30-a176-43881ffffe9e",
459 "modelVersionId": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
460 "modelName": "VF_vGeraldine",
461 "modelVersion": "2.0",
462 "modelCustomizationName": "VF_vGeraldine 0"
469 "validationCounter": 1,
471 "existingVNFCounterMap": {
472 "d6557200-ecf2-4641-8094-5393ae3aae60": 1
474 "globalSubscriberId": "e433710f-9217-458d-a79d-1c7aff376d89",
475 "subscriptionServiceType": "TYLER SILVIA",
476 "owningEntityId": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
477 "productFamilyId": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
478 "lcpCloudRegionId": "hvf6",
479 "tenantId": "229bcdc6eaeb4ca59d55221141d01f8e",
482 "rollbackOnFailure": "true",
485 "modelInvariantId": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
486 "modelVersionId": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
487 "modelName": "ComplexService",
488 "modelVersion": "1.0",
489 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44"
492 "name": "ComplexService",
494 "description": "ComplexService",
495 "category": "Emanuel",
496 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
497 "invariantUuid": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
500 "isEcompGeneratedNaming": true,
501 "isMultiStepDesign": false
504 "lcpRegionsAndTenants": {
517 "lcpRegionsTenantsMap": {
520 "id": "092eb9e8e4b7412e8787dd091bc58e86",
521 "name": "USP-SIP-IC-24335-T-01",
527 "id": "bae71557c5bb4d5aac6743a4e5f1d054",
528 "name": "AIN Web Tool-15-D-testalexandria",
532 "id": "229bcdc6eaeb4ca59d55221141d01f8e",
533 "name": "AIN Web Tool-15-D-STTest2",
537 "id": "1178612d2b394be4834ad77f567c0af2",
538 "name": "AIN Web Tool-15-D-SSPtestcustome",
542 "id": "19c5ade915eb461e8af52fb2fd8cd1f2",
543 "name": "AIN Web Tool-15-D-UncheckedEcopm",
547 "id": "de007636e25249238447264a988a927b",
548 "name": "AIN Web Tool-15-D-dfsdf",
552 "id": "62f29b3613634ca6a3065cbe0e020c44",
553 "name": "AIN/SMS-16-D-Multiservices1",
557 "id": "649289e30d3244e0b48098114d63c2aa",
558 "name": "AIN Web Tool-15-D-SSPST66",
562 "id": "3f21eeea6c2c486bba31dab816c05a32",
563 "name": "AIN Web Tool-15-D-ASSPST47",
567 "id": "f60ce21d3ee6427586cff0d22b03b773",
568 "name": "CESAR-100-D-sspjg67246",
572 "id": "8774659e425f479895ae091bb5d46560",
573 "name": "CESAR-100-D-sspjg68359",
577 "id": "624eb554b0d147c19ff8885341760481",
578 "name": "AINWebTool-15-D-iftach",
582 "id": "214f55f5fc414c678059c383b03e4962",
583 "name": "CESAR-100-D-sspjg612401",
587 "id": "c90666c291664841bb98e4d981ff1db5",
588 "name": "CESAR-100-D-sspjg621340",
592 "id": "ce5b6bc5c7b348e1bf4b91ac9a174278",
593 "name": "sspjg621351cloned",
597 "id": "b386b768a3f24c8e953abbe0b3488c02",
598 "name": "AINWebTool-15-D-eteancomp",
602 "id": "dc6c4dbfd225474e9deaadd34968646c",
603 "name": "AINWebTool-15-T-SPFET",
607 "id": "02cb5030e9914aa4be120bd9ed1e19eb",
608 "name": "AINWebTool-15-X-eeweww",
612 "id": "f2f3830e4c984d45bcd00e1a04158a79",
613 "name": "CESAR-100-D-spjg61909",
617 "id": "05b91bd5137f4929878edd965755c06d",
618 "name": "CESAR-100-D-sspjg621512cloned",
622 "id": "7002fbe8482d4a989ddf445b1ce336e0",
623 "name": "AINWebTool-15-X-vdr",
627 "id": "4008522be43741dcb1f5422022a2aa0b",
628 "name": "AINWebTool-15-D-ssasa",
632 "id": "f44e2e96a1b6476abfda2fa407b00169",
633 "name": "AINWebTool-15-D-PFNPT",
637 "id": "b69a52bec8a84669a37a1e8b72708be7",
638 "name": "AINWebTool-15-X-vdre",
642 "id": "fac7d9fd56154caeb9332202dcf2969f",
643 "name": "AINWebTool-15-X-NONPODECOMP",
647 "id": "2d34d8396e194eb49969fd61ffbff961",
648 "name": "DN5242-Nov16-T5",
652 "id": "cb42a77ff45b48a8b8deb83bb64acc74",
657 "id": "fa45ca53c80b492fa8be5477cd84fc2b",
662 "id": "4914ab0ab3a743e58f0eefdacc1dde77",
663 "name": "DN5242-Nov21-T1",
667 "id": "d0a3e3f2964542259d155a81c41aadc3",
668 "name": "test-hvf6-09",
672 "id": "cbb99fe4ada84631b7baf046b6fd2044",
673 "name": "DN5242-Nov16-T3",
681 "id": "ebc3bc3d-62fd-4a3f-a037-f619df4ff034",
686 "id": "17cc1042-527b-11e6-beb8-9e71128cae77",
691 "id": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
696 "id": "a4f6f2ae-9bf5-4ed7-b904-06b2099c4bd7",
697 "name": "Enhanced Services",
706 "id": "323d69d9-2efe-4r45-ay0a-89ea7ard4e6f",
707 "name": "vEsmeralda",
711 "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
716 "id": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
721 "id": "db171b8f-115c-4992-a2e3-ee04cae357e0",
741 "id": "e433710f-9217-458d-a79d-1c7aff376d89",
742 "name": "TYLER SILVIA",
746 "id": "b6a3f28c-eebf-494c-a900-055cc7c874ce",
756 "id": "0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1",
757 "name": "CARA Griffin",
761 "id": "c7611ebe-c324-48f1-8085-94aef0c6ef3d",
762 "name": "DARREN MCGEE",
766 "id": "e30755dc-5673-4b6b-9dcf-9abdd96b93d1",
772 "name": "vSalvatore",
776 "id": "d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4",
786 "id": "12a96a9d-4b4c-4349-a950-fe1159602621",
787 "name": "DARREN MCGEE",
792 "e433710f-9217-458d-a79d-1c7aff376d89": [
795 "name": "vRichardson",
800 "name": "TYLER SILVIA",
815 "name": "vVoiceMail",
850 "name": "vEsmeralda",
880 "name": "JOHANNA_SANTOS",
893 "name": "NFTJSSSS-NFT1"
897 "name": "YUDFJULP-JAG1"
901 "name": "UUUAIAAI-YYY1"
905 "name": "VSDKYUTP-BAN1"
909 "name": "DKJSJDKA-DKJ1"
913 "name": "ASACMAMS-MCS1"
917 "name": "uioclli1-UIO1"
921 "name": "YGBIJNLQ-RAJ1"
925 "name": "opaclli1-OPA1"
929 "name": "ZXCVBNMA-SDE1"
933 "name": "FGHJUHIL-VEN2"
937 "name": "ORLDFLMA-ORL1"
941 "name": "JADECLLI-JAD1"
945 "name": "LWLWCANN-ZXL1"
949 "name": "CLKSKCKK-CKL1"
953 "name": "sdfclli1-SDF1"
957 "name": "RADICAL1-RAD1"
961 "name": "BHYJFGLN-KIT1"
965 "name": "INGERFGT-REL1"
969 "name": "CJALSDAC-JNL1"
973 "name": "OLKOLKLS-OLK1"
977 "name": "CHILLIWE-CHI1"
981 "name": "UUUAAAUU-UUU4"
985 "name": "TUFCLLI1-TUF1"
989 "name": "CKALDKSA-KJN1"
993 "name": "SNDGCA64-SAN1"
997 "name": "SCKSCKSK-SCK1"
1001 "name": "AOEEQQQD-HJH1"
1005 "name": "SDFQWHGD-HGD1"
1009 "name": "HYFLNBVT-KOR1"
1013 "name": "AICLOCID-ATL43"
1017 "name": "AICFTAAI-ATL54"
1021 "name": "CLLIAAII-ATL66"
1025 "name": "BNMLKUIK-VEL1"
1029 "name": "SANJITAT-ICC1"
1033 "name": "WSXEFBTH-MNT11"
1037 "name": "WSBHGTYL-DEF2"
1041 "name": "SDFQWGKL-MAD11"
1045 "name": "OLHOLHOL-OLG1"
1049 "name": "NGFVSJKO-GAR1"
1053 "name": "GNVLSCTL-SAN22"
1057 "name": "HRGHRGGS-HRG1"
1061 "name": "JCSJSCJS-JCS1"
1065 "name": "WSXEDECF-DHA12"
1069 "name": "AOEEWWWD-HJE1"
1073 "name": "NCANCANN-NCA1"
1077 "name": "iopclli1-IOP1"
1081 "name": "rtyclli1-RTY1"
1085 "name": "HIOUYTRQ-KAP1"
1089 "name": "ZENCLLI1-ZEN1"
1093 "name": "JAKHLASS-HKA1"
1097 "name": "CQKSCAKK-CQK1"
1101 "name": "UBEKQLPD-SAI1"
1105 "name": "ertclli1-ERT1"
1109 "name": "PLMKOIJU-IBB1"
1113 "name": "PLKINHYI-TIR2"
1117 "name": "CHASKCDS-HSD1"
1121 "name": "SDCTLFN1-SLF78"
1125 "name": "SDCTEEE4-SEE78"
1129 "name": "TOKYJPFA-SAN13"
1133 "name": "SDCTAAA1-SAA78"
1137 "name": "ATLDFGYC-LUC1"
1141 "name": "MEMATLAN-AMD13"
1145 "name": "TOROONXN-TOR1"
1149 "name": "QWECLLI1-QWE1"
1153 "name": "ZOGASTRO-ZOG1"
1157 "name": "CALIFORN-CAL33"
1161 "name": "SDIT1HHH-SHH78"
1165 "name": "LKJHGFDS-DSA1"
1169 "name": "CLGRABAD-CLG1"
1173 "name": "BNARAGBK-BNA1"
1177 "name": "CANTTCOC-ATL84"
1181 "name": "WBHGTYUI-APP1"
1185 "name": "RJNRBZAW-RJN1"
1189 "name": "SDCSHHH5-EHH78"
1193 "name": "PKGTESTF-mac10"
1197 "name": "SDCTGXB1-SXB78"
1201 "name": "SDCTAXG1-SAX78"
1205 "name": "SYDNAUBV-SYD1"
1209 "name": "TOKYJPFA-TOK1"
1213 "name": "KGMTNC20-KGM2"
1217 "name": "POIUYTGH-DCC1b"
1221 "name": "SDCTKKK1-SKK78"
1225 "name": "SDCTGGG1-SGG78"
1229 "name": "SDCTJJJ1-SJJ78"
1233 "name": "SDCTBXG1-SBX78"
1237 "name": "LARGIZON-LAG1"
1241 "name": "QAZXSWED-IAA1"
1245 "name": "PLMNJKIU-POI1"
1249 "name": "LARGIZON-LAG1a"
1253 "name": "PBLAPBAI-PBL1"
1257 "name": "LARGIZON-LAG1a"
1261 "name": "MNBVCXZM-MAR1"
1265 "name": "HSTNTX70-HST70"
1269 "name": "POIUYTGH-DCC1a"
1273 "name": "TOLDOH21-TOL1"
1277 "name": "LONEENCO-LON1"
1281 "name": "SDIT1JUB-SJU78"
1285 "name": "HSTNTX01-STN27"
1289 "name": "ss8126GT-SSW56"
1293 "name": "SDIT1BBB-SBB78"
1297 "name": "POIUYTGH-DCC3"
1301 "name": "GNVLSCTL-GNV1"
1305 "name": "WASHDCSW-WAS1"
1309 "name": "TORYONNZ-TOY1"
1313 "name": "STTLWA02-STT1"
1317 "name": "STTGGE62-STG1"
1321 "name": "SDCTLLL1-SLL78"
1325 "name": "SDIT1BUB-SBU78"
1329 "name": "ATLNGANW-ATL2"
1333 "name": "BOTHWAKY-BOT1"
1337 "name": "SNGPSIAU-SNG1"
1341 "name": "NYCMNY54-NYC1"
1345 "name": "LARGIZON-LAG1b"
1349 "name": "AMDFAA01-AMD15"
1353 "name": "SNANTXCA-SNA1"
1357 "name": "PLTNCA60-PLT1"
1361 "name": "TLPNXM18-TLP1"
1365 "name": "SAIT1DD6-SDD81"
1369 "name": "POIUYTGH-DCC1"
1373 "name": "POIUYTGH-DCC2"
1377 "name": "OKCBOK55-OKC1"
1381 "name": "PARSFRCG-PAR1"
1385 "name": "ABCEETES-TES36"
1389 "name": "PLMKOPIU-COM1"
1393 "name": "ATLNGTRE-ANI1"
1397 "name": "SDIT1BDG-SDG78"
1401 "name": "PKGTESTF-mac20"
1405 "name": "DSFBG123-DSF45"
1409 "name": "HSTNTX01-HST25"
1413 "name": "AUDIMA01-AMD18"
1417 "name": "SAIT9AA3-SAA80"
1421 "name": "SSIT2AA7-SSA56"
1425 "name": "SAIT1DD9-SDD82"
1429 "name": "JCVLFLBW-JCV1"
1433 "name": "WERTYUJK-SUL2"
1437 "name": "purelyde-PUR1"
1441 "name": "FDERT555-FDE55"
1445 "name": "LONEENCO-SITE"
1449 "name": "ATLNGAMA-ATL1"
1453 "name": "ZXCVBNMM-JUL1"
1457 "name": "TESAAISB-TAT34"
1461 "name": "CHKGH123-XCP12"
1465 "name": "poiuytre-RAI1"
1469 "name": "ATLNGAUP-HPO1"
1473 "name": "KJFDH123-KJF12"
1477 "name": "SAIT9CC3-SCC80"
1481 "name": "SAIT9AF8-SAA12"
1485 "name": "SAIT1AA9-SAA14"
1489 "name": "TTESSAAI-ATL35"
1493 "name": "CWYMOWBS-CWY1"
1497 "name": "TELEPAAI-ATL76"
1501 "name": "DSLFK242-DSL12"
1505 "name": "AAIATLTE-ATL53"
1509 "name": "SAIT9AA2-SAA11"
1513 "name": "TESSASCH-ATL62"
1517 "name": "ASDFGHJK-AUG1"
1521 "name": "POIUY123-POI22"
1525 "name": "SAIT1AA9-SAA13"
1529 "name": "BHYTFRF3-BHY17"
1533 "name": "HOSTPROF-LIS1"
1537 "name": "ZXCVBNMK-SIP1"
1541 "name": "TEESTAAI-ATL43"
1545 "name": "FORLOAAJ-ATL64"
1549 "name": "TESAAISA-TAT33"
1553 "name": "INDIPUNE-RAD10"
1557 "name": "BHYTFRY4-RTW5"
1561 "name": "KSJKKKKK-JGS1"
1565 "name": "TEESTAAI-ATL43"
1569 "name": "LEIWANGW-WAN1"
1573 "name": "ATLSANAB-ATL44"
1577 "name": "BHYTFRk4-RTD2"
1581 "name": "ORFLMANA-NIR1"
1585 "name": "SANAAIRE-ATL75"
1589 "name": "QWERTYUI-NUM1"
1593 "name": "MDTWNJ21-hvf32"
1597 "name": "BHYTFRZ6-RTZ4"
1601 "name": "ATLSANAC-ATL56"
1605 "name": "AMSTNLBW-AMS1"
1609 "name": "AMSTERNL-RCT1"
1613 "name": "ORFLMATT-JAN1"
1617 "name": "TESAAISA-ABC14"
1621 "name": "TESAAISD-TAT37"
1625 "name": "MICHIGAN-MIC54"
1629 "name": "ATLSANAI-ABC11"
1633 "name": "AMDOCS01-AMF11"
1637 "name": "ATLSANEW-ATL63"
1641 "name": "ATLSECIA-ABC12"
1645 "name": "MDTWNJ21-hvf20"
1649 "name": "AAITESAN-ABC15"
1653 "name": "AVTRFLHD-AVT1"
1657 "name": "ATLSANAI-ATL34"
1660 "categoryParameters": {
1661 "owningEntityList": [
1667 "id": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
1668 "name": "WayneHolland"
1689 "lineOfBusinessList": [
1710 "type": "[LCP_REGIONS_AND_TENANTS] Update",
1713 "id": "CAR_2020_ER",
1714 "name": "CAR_2020_ER",
1718 "id": "21014aa2-526b-11e6-beb8-9e71128cae77",
1719 "name": "JULIO ERICKSON",
1720 "isPermitted": false
1723 "id": "DHV1707-TestSubscriber-2",
1724 "name": "DALE BRIDGES",
1725 "isPermitted": false
1728 "id": "DHV1707-TestSubscriber-1",
1729 "name": "LLOYD BRIDGES",
1730 "isPermitted": false
1733 "id": "jimmy-example",
1734 "name": "JimmyExampleCust-20161102",
1735 "isPermitted": false
1738 "id": "jimmy-example2",
1739 "name": "JimmyExampleCust-20161103",
1740 "isPermitted": false
1743 "id": "ERICA5779-TestSub-PWT-102",
1744 "name": "ERICA5779-TestSub-PWT-102",
1745 "isPermitted": false
1748 "id": "ERICA5779-TestSub-PWT-101",
1749 "name": "ERICA5779-TestSub-PWT-101",
1750 "isPermitted": false
1753 "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
1755 "isPermitted": false
1758 "id": "ERICA5779-Subscriber-4",
1759 "name": "ERICA5779-Subscriber-5",
1760 "isPermitted": false
1763 "id": "ERICA5779-TestSub-PWT-103",
1764 "name": "ERICA5779-TestSub-PWT-103",
1765 "isPermitted": false
1768 "id": "ERICA5779-Subscriber-2",
1769 "name": "ERICA5779-Subscriber-2",
1770 "isPermitted": false
1773 "id": "e433710f-9217-458d-a79d-1c7aff376d89",
1774 "name": "SILVIA ROBBINS",
1778 "id": "ERICA5779-Subscriber-3",
1779 "name": "ERICA5779-Subscriber-3",
1780 "isPermitted": false
1783 "id": "31739f3e-526b-11e6-beb8-9e71128cae77",
1784 "name": "CRAIG/ROBERTS",
1785 "isPermitted": false
1793 class MockFeatureFlagsService {}
1795 describe('VFModule Control Generator', () => {
1797 let service: VfModuleControlGenerator;
1798 let httpMock: HttpTestingController;
1800 beforeAll(done => (async () => {
1801 TestBed.configureTestingModule({
1802 imports: [HttpClientTestingModule],
1803 providers: [VfModuleControlGenerator,
1805 BasicControlGenerator,
1809 {provide:FeatureFlagsService, useClass: MockFeatureFlagsService},
1810 {provide: NgRedux, useClass: MockAppStore}]
1812 await TestBed.compileComponents();
1814 injector = getTestBed();
1815 service = injector.get(VfModuleControlGenerator);
1816 httpMock = injector.get(HttpTestingController);
1817 jest.spyOn(console, 'error');
1819 })().then(done).catch(done.fail));
1821 test(' getMacroFormControls gets vnfStoreKey === null', () => {
1822 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1823 const vnfStoreKey: string = null;
1824 const vfModuleStoreKey: string = 'vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0';
1825 const vfModuleUUID: string = "522159d5-d6e0-4c2a-aa44-5a542a12a830";
1826 const controls: FormControlModel[] = service.getMacroFormControls(serviceId, vnfStoreKey, vfModuleStoreKey, vfModuleUUID, true);
1828 expect(controls).toEqual([]);
1829 expect(console.error).toHaveBeenCalled();
1832 test('getAlaCarteFormControls check for mandatory controls', () => {
1833 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1834 const vnfStoreKey: string = 'VF_vGeraldine 0';
1835 const vfModuleStoreKey: string = 'vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0';
1836 const uuidData: Object = {
1837 modelId : "522159d5-d6e0-4c2a-aa44-5a542a12a830",
1838 modelName : "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0",
1839 serviceId : "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
1841 vFModuleStoreKey : "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0vmvzo",
1842 vnfStoreKey : "VF_vGeraldine 0"
1844 const controls: FormControlModel[] = service.getAlaCarteFormControls(serviceId, vnfStoreKey, vfModuleStoreKey, uuidData, true);
1846 const mandatoryControls : string[] = [
1847 FormControlNames.INSTANCE_NAME,
1848 FormControlNames.LCPCLOUD_REGION_ID,
1849 FormControlNames.TENANT_ID,
1850 FormControlNames.ROLLBACK_ON_FAILURE,
1853 for(let i = 0 ; i < mandatoryControls.length ; i++) {
1854 let requiredExist = controls.find(ctrl => ctrl.controlName === mandatoryControls[i]).validations.find(item => item.validatorName === 'required');
1855 expect(requiredExist).toBeDefined();
1859 test('getMacroFormControls check for mandatory controls', () => {
1860 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1861 const vnfStoreKey: string = 'VF_vGeraldine 0';
1862 const uuidData: Object = {
1863 modelId : "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
1864 modelName : "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0",
1865 serviceId : "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
1867 vFModuleStoreKey : "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0vmvzo",
1868 vnfStoreKey : "VF_vGeraldine 0"
1870 const controls: FormControlModel[] = service.getMacroFormControls(serviceId, vnfStoreKey, vnfStoreKey, uuidData, true);
1872 const mandatoryControls : string[] = [
1876 for(let i = 0 ; i < mandatoryControls.length ; i++) {
1877 let requiredExist = controls.find(ctrl => ctrl.controlName === mandatoryControls[i]).validations.find(item => item.validatorName === 'required');
1878 expect(requiredExist).toBeDefined();
1882 test(' getMacroFormControls gets null vnfStoreKey', () => {
1883 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1884 const vnfStoreKey: string = null;
1885 const vfModuleUUID: string = "522159d5-d6e0-4c2a-aa44-5a542a12a830";
1886 const uuidData: Object = {};
1887 const controls: FormControlModel[] = service.getMacroFormControls(serviceId, vnfStoreKey, vfModuleUUID, uuidData,true);
1889 expect(controls).toEqual([]);
1890 expect(console.error).toHaveBeenCalled();
1893 test('getAlaCarteFormControls should return the correct order of controls', () => {
1894 const controls:FormControlModel[] = getAlaCarteFormControls();
1896 const orderedControls : string[] = [
1897 FormControlNames.INSTANCE_NAME,
1898 FormControlNames.VOLUME_GROUP_NAME,
1899 FormControlNames.LCPCLOUD_REGION_ID,
1900 FormControlNames.LEGACY_REGION,
1901 FormControlNames.TENANT_ID,
1902 FormControlNames.ROLLBACK_ON_FAILURE,
1903 FormControlNames.SDN_C_PRE_LOAD
1906 expect(controls.length).toEqual(7);
1907 for(let i = 0 ; i < orderedControls.length ; i++) {
1908 expect(controls[i].controlName).toEqual(orderedControls[i]);
1912 function getAlaCarteFormControls():FormControlModel[] {
1913 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1914 const vnfStoreKey: string = 'VF_vGeraldine 0';
1915 const vfModuleUUID: string = "522159d5-d6e0-4c2a-aa44-5a542a12a830";
1916 const uuidData: Object = {
1917 modelId: "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
1918 modelName: "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0",
1919 serviceId: "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
1921 vFModuleStoreKey: "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0vmvzo",
1922 vnfStoreKey: "VF_vGeraldine 0"
1924 const controls: FormControlModel[] = service.getAlaCarteFormControls(serviceId, vnfStoreKey, vfModuleUUID, uuidData, true);
1928 test('getAlaCarteFormControls responce with wrong order of controls', () => {
1929 const controls:FormControlModel[] = getAlaCarteFormControls();
1931 const orderedControls : string[] = [
1932 FormControlNames.INSTANCE_NAME,
1933 FormControlNames.VOLUME_GROUP_NAME,
1934 FormControlNames.LCPCLOUD_REGION_ID,
1935 FormControlNames.TENANT_ID, // TENANT_ID must be after LEGACY_REGION
1936 FormControlNames.LEGACY_REGION,
1937 FormControlNames.ROLLBACK_ON_FAILURE,
1938 FormControlNames.SDN_C_PRE_LOAD
1941 for(let i = 0 ; i < orderedControls.length ; i++) {
1942 if (controls[i].controlName === 'legacyRegion') {
1943 expect(orderedControls[i]).toEqual('tenantId');
1948 test('getMacroFormControls should return the correct order of controls', () => {
1949 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1950 const vnfStoreKey: string = 'VF_vGeraldine 0';
1951 const vfModuleUUID: string = "522159d5-d6e0-4c2a-aa44-5a542a12a830";
1952 const uuidData: Object = {
1953 modelId : "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
1954 modelName : "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0",
1955 serviceId : "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
1957 vFModuleStoreKey : "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0vmvzo",
1958 vnfStoreKey : "VF_vGeraldine 0"
1960 const controls: FormControlModel[] = service.getMacroFormControls(serviceId, vnfStoreKey, vfModuleUUID, uuidData, true);
1962 const orderedControls : string[] = [
1963 FormControlNames.INSTANCE_NAME,
1964 FormControlNames.VOLUME_GROUP_NAME
1967 for(let i = 0 ; i < orderedControls.length ; i++) {
1968 expect(controls[i].controlName).toEqual(orderedControls[i]);
1975 ${'volumeGroupName'}
1976 `('getAlacartFormControls $controllerName control validator shall have the expected regex', ({controllerName}) => {
1977 const controls:FormControlModel[] = getAlaCarteFormControls();
1979 const instanceNameControl: FormControlModel = <FormControlModel>controls.find(item => item.controlName == controllerName);
1980 const instanceNameValidator: ValidatorModel = instanceNameControl.validations.find(val => val.validatorName === ValidatorOptions.pattern);
1981 expect(instanceNameValidator.validatorArg).toEqual(/^[a-zA-Z0-9._-]*$/);
1984 test(' getAlaCarteFormControls gets null service', () => {
1985 const controls:FormControlModel[] = getAlaCarteFormControls();
1986 expect(controls.length).toEqual(7);
1988 const orderedControls : string[] = [
1989 FormControlNames.INSTANCE_NAME,
1990 FormControlNames.VOLUME_GROUP_NAME,
1991 FormControlNames.LCPCLOUD_REGION_ID,
1992 FormControlNames.LEGACY_REGION,
1993 FormControlNames.TENANT_ID,
1994 FormControlNames.ROLLBACK_ON_FAILURE,
1995 FormControlNames.SDN_C_PRE_LOAD
1998 for(let i = 0 ; i < orderedControls.length ; i++) {
1999 expect(controls[i].controlName).toEqual(orderedControls[i]);