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_UNASSIGN_SERVICE": true,
27 "FLAG_SHOW_VERIFY_SERVICE": false,
28 "FLAG_COLLECTION_RESOURCE_SUPPORT": true,
29 "FLAG_DUPLICATE_VNF": true,
30 "FLAG_SERVICE_MODEL_CACHE": true,
31 "CREATE_INSTANCE_TEST": false,
32 "FLAG_SETTING_DEFAULTS_IN_DRAWING_BOARD": false,
33 "FLAG_ASYNC_INSTANTIATION": true,
34 "FLAG_ASYNC_JOBS": true,
35 "EMPTY_DRAWING_BOARD_TEST": false,
36 "FLAG_ADD_MSO_TESTAPI_FIELD": true
38 "type": "[FLAGS] Update"
42 "6e59c5de-f052-46fa-aa7e-2fca9d674c44": {
44 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
45 "invariantUuid": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
46 "name": "ComplexService",
48 "toscaModelURL": null,
49 "category": "Emanuel",
52 "description": "ComplexService",
53 "serviceEcompNaming": "false",
54 "instantiationType": "Macro",
59 "uuid": "d6557200-ecf2-4641-8094-5393ae3aae60",
60 "invariantUuid": "4160458e-f648-4b30-a176-43881ffffe9e",
61 "description": "VSP_vMee",
64 "customizationUuid": "91415b44-753d-494c-926a-456a9172bbb9",
67 "serviceEcompNaming" : "true",
69 "ecomp_generated_naming": "false",
72 "gpb2_Internal2_mac": "00:11:22:EF:AC:DF",
73 "sctp-b-ipv6-egress_src_start_port": "0",
74 "sctp-a-ipv6-egress_rule_application": "any",
75 "Internal2_allow_transit": "true",
76 "sctp-b-IPv6_ethertype": "IPv6",
77 "sctp-a-egress_rule_application": "any",
78 "sctp-b-ingress_action": "pass",
79 "sctp-b-ingress_rule_protocol": "icmp",
80 "ncb2_Internal1_mac": "00:11:22:EF:AC:DF",
81 "sctp-b-ipv6-ingress-src_start_port": "0.0",
82 "ncb1_Internal2_mac": "00:11:22:EF:AC:DF",
83 "fsb_volume_size_0": "320.0",
84 "sctp-b-egress_src_addresses": "local",
85 "sctp-a-ipv6-ingress_ethertype": "IPv4",
86 "sctp-a-ipv6-ingress-dst_start_port": "0",
87 "sctp-b-ipv6-ingress_rule_application": "any",
88 "domain_name": "default-domain",
89 "sctp-a-ingress_rule_protocol": "icmp",
90 "sctp-b-egress-src_start_port": "0.0",
91 "sctp-a-egress_src_addresses": "local",
92 "sctp-b-display_name": "epc-sctp-b-ipv4v6-sec-group",
93 "sctp-a-egress-src_start_port": "0.0",
94 "sctp-a-ingress_ethertype": "IPv4",
95 "sctp-b-ipv6-ingress-dst_end_port": "65535",
96 "sctp-b-dst_subnet_prefix_v6": "::",
97 "nf_naming": "{ecomp_generated_naming=true}",
98 "sctp-a-ipv6-ingress_src_subnet_prefix": "0.0.0.0",
99 "sctp-b-egress-dst_start_port": "0.0",
100 "ncb_flavor_name": "nv.c20r64d1",
101 "gpb1_Internal1_mac": "00:11:22:EF:AC:DF",
102 "sctp-b-egress_dst_subnet_prefix_len": "0.0",
103 "Internal2_net_cidr": "10.0.0.10",
104 "sctp-a-ingress-dst_start_port": "0.0",
105 "sctp-a-egress-dst_start_port": "0.0",
106 "fsb1_Internal2_mac": "00:11:22:EF:AC:DF",
107 "sctp-a-egress_ethertype": "IPv4",
108 "vlc_st_service_mode": "in-network-nat",
109 "sctp-a-ipv6-egress_ethertype": "IPv4",
110 "sctp-a-egress-src_end_port": "65535.0",
111 "sctp-b-ipv6-egress_rule_application": "any",
112 "sctp-b-egress_action": "pass",
113 "sctp-a-ingress-src_subnet_prefix_len": "0.0",
114 "sctp-b-ipv6-ingress-src_end_port": "65535.0",
115 "sctp-b-name": "epc-sctp-b-ipv4v6-sec-group",
116 "fsb2_Internal1_mac": "00:11:22:EF:AC:DF",
117 "sctp-a-ipv6-ingress-src_start_port": "0.0",
118 "sctp-b-ipv6-egress_ethertype": "IPv4",
119 "Internal1_net_cidr": "10.0.0.10",
120 "sctp-a-egress_dst_subnet_prefix": "0.0.0.0",
121 "fsb_flavor_name": "nv.c20r64d1",
122 "sctp_rule_protocol": "132",
123 "sctp-b-ipv6-ingress_src_subnet_prefix_len": "0",
124 "sctp-a-ipv6-ingress_rule_application": "any",
125 "sctp-a-IPv6_ethertype": "IPv6",
126 "vlc2_Internal1_mac": "00:11:22:EF:AC:DF",
127 "vlc_st_virtualization_type": "virtual-machine",
128 "sctp-b-ingress-dst_start_port": "0.0",
129 "sctp-b-ingress-dst_end_port": "65535.0",
130 "sctp-a-ipv6-ingress-src_end_port": "65535.0",
131 "sctp-a-display_name": "epc-sctp-a-ipv4v6-sec-group",
132 "sctp-b-ingress_rule_application": "any",
133 "int2_sec_group_name": "int2-sec-group",
134 "vlc_flavor_name": "nd.c16r64d1",
135 "sctp-b-ipv6-egress_src_addresses": "local",
136 "vlc_st_interface_type_int1": "other1",
137 "sctp-b-egress-src_end_port": "65535.0",
138 "sctp-a-ipv6-egress-dst_start_port": "0",
139 "vlc_st_interface_type_int2": "other2",
140 "sctp-a-ipv6-egress_rule_protocol": "any",
141 "Internal2_shared": "false",
142 "sctp-a-ipv6-egress_dst_subnet_prefix_len": "0",
143 "Internal2_rpf": "disable",
144 "vlc1_Internal1_mac": "00:11:22:EF:AC:DF",
145 "sctp-b-ipv6-egress_src_end_port": "65535",
146 "sctp-a-ipv6-egress_src_addresses": "local",
147 "sctp-a-ingress-dst_end_port": "65535.0",
148 "sctp-a-ipv6-egress_src_end_port": "65535",
149 "Internal1_forwarding_mode": "l2",
150 "Internal2_dhcp": "false",
151 "sctp-a-dst_subnet_prefix_v6": "::",
152 "pxe_image_name": "MME_PXE-Boot_16ACP04_GA.qcow2",
153 "vlc_st_interface_type_gtp": "other0",
154 "ncb1_Internal1_mac": "00:11:22:EF:AC:DF",
155 "sctp-b-src_subnet_prefix_v6": "::",
156 "sctp-a-egress_dst_subnet_prefix_len": "0.0",
157 "int1_sec_group_name": "int1-sec-group",
158 "Internal1_dhcp": "false",
159 "sctp-a-ipv6-egress_dst_end_port": "65535",
160 "Internal2_forwarding_mode": "l2",
161 "fsb2_Internal2_mac": "00:11:22:EF:AC:DF",
162 "sctp-b-egress_dst_subnet_prefix": "0.0.0.0",
163 "Internal1_net_cidr_len": "17",
164 "gpb2_Internal1_mac": "00:11:22:EF:AC:DF",
165 "sctp-b-ingress-src_subnet_prefix_len": "0.0",
166 "sctp-a-ingress_dst_addresses": "local",
167 "sctp-a-egress_action": "pass",
168 "fsb_volume_type_0": "SF-Default-SSD",
169 "ncb2_Internal2_mac": "00:11:22:EF:AC:DF",
170 "vlc_st_interface_type_sctp_a": "left",
171 "vlc_st_interface_type_sctp_b": "right",
172 "sctp-a-src_subnet_prefix_v6": "::",
173 "vlc_st_version": "2",
174 "sctp-b-egress_ethertype": "IPv4",
175 "sctp-a-ingress_rule_application": "any",
176 "gpb1_Internal2_mac": "00:11:22:EF:AC:DF",
177 "instance_ip_family_v6": "v6",
178 "sctp-a-ipv6-egress_src_start_port": "0",
179 "sctp-b-ingress-src_start_port": "0.0",
180 "sctp-b-ingress_dst_addresses": "local",
181 "fsb1_Internal1_mac": "00:11:22:EF:AC:DF",
182 "vlc_st_interface_type_oam": "management",
183 "multi_stage_design": "true",
184 "oam_sec_group_name": "oam-sec-group",
185 "Internal2_net_gateway": "10.0.0.10",
186 "sctp-a-ipv6-ingress-dst_end_port": "65535",
187 "sctp-b-ipv6-egress-dst_start_port": "0",
188 "Internal1_net_gateway": "10.0.0.10",
189 "sctp-b-ipv6-egress_rule_protocol": "any",
190 "gtp_sec_group_name": "gtp-sec-group",
191 "sctp-a-ipv6-egress_dst_subnet_prefix": "0.0.0.0",
192 "sctp-b-ipv6-egress_dst_subnet_prefix_len": "0",
193 "sctp-a-ipv6-ingress_dst_addresses": "local",
194 "sctp-a-egress_rule_protocol": "icmp",
195 "sctp-b-ipv6-egress_action": "pass",
196 "sctp-a-ipv6-egress_action": "pass",
197 "Internal1_shared": "false",
198 "sctp-b-ipv6-ingress_rule_protocol": "any",
199 "Internal2_net_cidr_len": "17",
200 "sctp-a-name": "epc-sctp-a-ipv4v6-sec-group",
201 "sctp-a-ingress-src_end_port": "65535.0",
202 "sctp-b-ipv6-ingress_src_subnet_prefix": "0.0.0.0",
203 "sctp-a-egress-dst_end_port": "65535.0",
204 "sctp-a-ingress_action": "pass",
205 "sctp-b-egress_rule_protocol": "icmp",
206 "sctp-b-ipv6-ingress_action": "pass",
207 "vlc_st_service_type": "firewall",
208 "sctp-b-ipv6-egress_dst_end_port": "65535",
209 "sctp-b-ipv6-ingress-dst_start_port": "0",
210 "vlc2_Internal2_mac": "00:11:22:EF:AC:DF",
211 "vlc_st_availability_zone": "true",
212 "fsb_volume_image_name_1": "MME_FSB2_16ACP04_GA.qcow2",
213 "sctp-b-ingress-src_subnet_prefix": "0.0.0.0",
214 "sctp-a-ipv6-ingress_src_subnet_prefix_len": "0",
215 "Internal1_allow_transit": "true",
216 "gpb_flavor_name": "nv.c20r64d1",
217 "availability_zone_max_count": "1",
218 "fsb_volume_image_name_0": "MME_FSB1_16ACP04_GA.qcow2",
219 "sctp-b-ipv6-ingress_dst_addresses": "local",
220 "sctp-b-ipv6-egress_dst_subnet_prefix": "0.0.0.0",
221 "sctp-b-ipv6-ingress_ethertype": "IPv4",
222 "vlc1_Internal2_mac": "00:11:22:EF:AC:DF",
223 "sctp-a-ingress-src_subnet_prefix": "0.0.0.0",
224 "sctp-a-ipv6-ingress_action": "pass",
225 "Internal1_rpf": "disable",
226 "sctp-b-ingress_ethertype": "IPv4",
227 "sctp-b-egress_rule_application": "any",
228 "sctp-b-ingress-src_end_port": "65535.0",
229 "sctp-a-ipv6-ingress_rule_protocol": "any",
230 "sctp-a-ingress-src_start_port": "0.0",
231 "sctp-b-egress-dst_end_port": "65535.0"
234 "modelCustomizationName": "VF_vMee 0",
236 "vf_vmee0..VfVmee..vmme_vlc..module-1": {
237 "uuid": "522159d5-d6e0-4c2a-aa44-5a542a12a830",
238 "invariantUuid": "98a7c88b-b577-476a-90e4-e25a5871e02b",
239 "customizationUuid": "55b1be94-671a-403e-a26c-667e9c47d091",
241 "name": "VfVmee..vmme_vlc..module-1",
243 "modelCustomizationName": "VfVmee..vmme_vlc..module-1",
245 "minCountInstances": 0,
246 "maxCountInstances": null,
248 "vfModuleLabel": "vmme_vlc"
251 "volumeGroupAllowed": true
253 "vf_vmee0..VfVmee..vmme_gpb..module-2": {
254 "uuid": "41708296-e443-4c71-953f-d9a010f059e1",
255 "invariantUuid": "1cca90b8-3490-495e-87da-3f3e4c57d5b9",
256 "customizationUuid": "6add59e0-7fe1-4bc4-af48-f8812422ae7c",
258 "name": "VfVmee..vmme_gpb..module-2",
260 "modelCustomizationName": "VfVmee..vmme_gpb..module-2",
262 "minCountInstances": 0,
263 "maxCountInstances": null,
265 "vfModuleLabel": "vmme_gpb"
268 "volumeGroupAllowed": false
270 "vf_vmee0..VfVmee..base_vmme..module-0": {
271 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
272 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
273 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
275 "name": "VfVmee..base_vmme..module-0",
277 "modelCustomizationName": "VfVmee..base_vmme..module-0",
279 "minCountInstances": 1,
280 "maxCountInstances": 1,
282 "vfModuleLabel": "base_vmme"
285 "volumeGroupAllowed": true
289 "vf_vmee0..VfVmee..base_vmme..module-0": {
290 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
291 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
292 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
294 "name": "VfVmee..base_vmme..module-0",
296 "modelCustomizationName": "VfVmee..base_vmme..module-0",
298 "minCountInstances": 1,
299 "maxCountInstances": 1,
301 "vfModuleLabel": "base_vmme"
306 "vfcInstanceGroups": {}
311 "uuid": "ddc3f20c-08b5-40fd-af72-c6d14636b986",
312 "invariantUuid": "379f816b-a7aa-422f-be30-17114ff50b7c",
313 "description": "ECOMP generic virtual link (network) base type for all other service-level and global networks",
316 "customizationUuid": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
320 "ecomp_generated_naming": "false",
321 "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}}",
322 "exVL_naming": "{ecomp_generated_naming=true}",
323 "network_flows": "{is_network_policy=false, is_bound_to_vpn=false}",
324 "network_homing": "{ecomp_selected_instance_node_target=false}"
327 "modelCustomizationName": "ExtVL 0"
330 "collectionResource": {},
332 "Port Mirroring Configuration By Policy 0": {
333 "uuid": "b4398538-e89d-4f13-b33d-ca323434ba50",
334 "invariantUuid": "6ef0ca40-f366-4897-951f-abd65d25f6f7",
335 "description": "A port mirroring configuration by policy object",
336 "name": "Port Mirroring Configuration By Policy",
338 "customizationUuid": "3c3b7b8d-8669-4b3b-8664-61970041fad2",
342 "type": "Configuration",
343 "modelCustomizationName": "Port Mirroring Configuration By Policy 0",
345 "collectorNodes": null,
346 "configurationByPolicy": false
349 "serviceProxies": {},
351 "vf_vmee0..VfVmee..vmme_vlc..module-1": {
352 "uuid": "522159d5-d6e0-4c2a-aa44-5a542a12a830",
353 "invariantUuid": "98a7c88b-b577-476a-90e4-e25a5871e02b",
354 "customizationUuid": "55b1be94-671a-403e-a26c-667e9c47d091",
356 "name": "VfVmee..vmme_vlc..module-1",
358 "modelCustomizationName": "VfVmee..vmme_vlc..module-1",
360 "minCountInstances": 0,
361 "maxCountInstances": null,
363 "vfModuleLabel": "vmme_vlc"
366 "volumeGroupAllowed": true
368 "vf_vmee0..VfVmee..vmme_gpb..module-2": {
369 "uuid": "41708296-e443-4c71-953f-d9a010f059e1",
370 "invariantUuid": "1cca90b8-3490-495e-87da-3f3e4c57d5b9",
371 "customizationUuid": "6add59e0-7fe1-4bc4-af48-f8812422ae7c",
373 "name": "VfVmee..vmme_gpb..module-2",
375 "modelCustomizationName": "VfVmee..vmme_gpb..module-2",
377 "minCountInstances": 0,
378 "maxCountInstances": null,
380 "vfModuleLabel": "vmme_gpb"
383 "volumeGroupAllowed": false
385 "vf_vmee0..VfVmee..base_vmme..module-0": {
386 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
387 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
388 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
390 "name": "VfVmee..base_vmme..module-0",
392 "modelCustomizationName": "VfVmee..base_vmme..module-0",
394 "minCountInstances": 1,
395 "maxCountInstances": 1,
397 "vfModuleLabel": "base_vmme"
400 "volumeGroupAllowed": true
404 "vf_vmee0..VfVmee..base_vmme..module-0": {
405 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
406 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
407 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
409 "name": "VfVmee..base_vmme..module-0",
411 "modelCustomizationName": "VfVmee..base_vmme..module-0",
413 "minCountInstances": 1,
414 "maxCountInstances": 1,
416 "vfModuleLabel": "base_vmme"
425 "6e59c5de-f052-46fa-aa7e-2fca9d674c44": {
429 "rollbackOnFailure": "true",
431 "vf_vmee0..VfVmee..base_vmme..module-0": {
432 "vf_vmee0..VfVmee..base_vmme..module-0vmvzo": {
433 "isMissingData": false,
434 "sdncPreReload": null,
436 "modelType": "VFmodule",
437 "modelInvariantId": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
438 "modelVersionId": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
439 "modelName": "VfVmee..base_vmme..module-0",
441 "modelCustomizationId": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
442 "modelCustomizationName": "VfVmee..base_vmme..module-0"
447 "trackById": "wmtm6sy2uj"
451 "isMissingData": true,
452 "originalName": "VF_vMee 0",
453 "vnfStoreKey": "VF_vMee 0",
454 "trackById": "p3wk448m5do",
455 "uuid": "d6557200-ecf2-4641-8094-5393ae3aae60",
456 "productFamilyId": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
457 "lcpCloudRegionId": null,
459 "lineOfBusiness": null,
460 "platformName": null,
463 "modelInvariantId": "4160458e-f648-4b30-a176-43881ffffe9e",
464 "modelVersionId": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
465 "modelName": "VF_vMee",
466 "modelVersion": "2.0",
467 "modelCustomizationName": "VF_vMee 0"
474 "validationCounter": 1,
476 "existingVNFCounterMap": {
477 "d6557200-ecf2-4641-8094-5393ae3aae60": 1
479 "globalSubscriberId": "e433710f-9217-458d-a79d-1c7aff376d89",
480 "subscriptionServiceType": "TYLER SILVIA",
481 "owningEntityId": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
482 "productFamilyId": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
483 "lcpCloudRegionId": "hvf6",
484 "tenantId": "229bcdc6eaeb4ca59d55221141d01f8e",
487 "rollbackOnFailure": "true",
490 "modelInvariantId": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
491 "modelVersionId": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
492 "modelName": "ComplexService",
493 "modelVersion": "1.0",
494 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44"
497 "name": "ComplexService",
499 "description": "ComplexService",
500 "category": "Emanuel",
501 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
502 "invariantUuid": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
505 "isEcompGeneratedNaming": true,
506 "isMultiStepDesign": false
509 "lcpRegionsAndTenants": {
522 "lcpRegionsTenantsMap": {
525 "id": "092eb9e8e4b7412e8787dd091bc58e86",
526 "name": "USP-SIP-IC-24335-T-01",
532 "id": "bae71557c5bb4d5aac6743a4e5f1d054",
533 "name": "AIN Web Tool-15-D-testalexandria",
537 "id": "229bcdc6eaeb4ca59d55221141d01f8e",
538 "name": "AIN Web Tool-15-D-STTest2",
542 "id": "1178612d2b394be4834ad77f567c0af2",
543 "name": "AIN Web Tool-15-D-SSPtestcustome",
547 "id": "19c5ade915eb461e8af52fb2fd8cd1f2",
548 "name": "AIN Web Tool-15-D-UncheckedEcopm",
552 "id": "de007636e25249238447264a988a927b",
553 "name": "AIN Web Tool-15-D-dfsdf",
557 "id": "62f29b3613634ca6a3065cbe0e020c44",
558 "name": "AIN/SMS-16-D-Multiservices1",
562 "id": "649289e30d3244e0b48098114d63c2aa",
563 "name": "AIN Web Tool-15-D-SSPST66",
567 "id": "3f21eeea6c2c486bba31dab816c05a32",
568 "name": "AIN Web Tool-15-D-ASSPST47",
572 "id": "f60ce21d3ee6427586cff0d22b03b773",
573 "name": "CESAR-100-D-sspjg67246",
577 "id": "8774659e425f479895ae091bb5d46560",
578 "name": "CESAR-100-D-sspjg68359",
582 "id": "624eb554b0d147c19ff8885341760481",
583 "name": "AINWebTool-15-D-iftach",
587 "id": "214f55f5fc414c678059c383b03e4962",
588 "name": "CESAR-100-D-sspjg612401",
592 "id": "c90666c291664841bb98e4d981ff1db5",
593 "name": "CESAR-100-D-sspjg621340",
597 "id": "ce5b6bc5c7b348e1bf4b91ac9a174278",
598 "name": "sspjg621351cloned",
602 "id": "b386b768a3f24c8e953abbe0b3488c02",
603 "name": "AINWebTool-15-D-eteancomp",
607 "id": "dc6c4dbfd225474e9deaadd34968646c",
608 "name": "AINWebTool-15-T-SPFET",
612 "id": "02cb5030e9914aa4be120bd9ed1e19eb",
613 "name": "AINWebTool-15-X-eeweww",
617 "id": "f2f3830e4c984d45bcd00e1a04158a79",
618 "name": "CESAR-100-D-spjg61909",
622 "id": "05b91bd5137f4929878edd965755c06d",
623 "name": "CESAR-100-D-sspjg621512cloned",
627 "id": "7002fbe8482d4a989ddf445b1ce336e0",
628 "name": "AINWebTool-15-X-vdr",
632 "id": "4008522be43741dcb1f5422022a2aa0b",
633 "name": "AINWebTool-15-D-ssasa",
637 "id": "f44e2e96a1b6476abfda2fa407b00169",
638 "name": "AINWebTool-15-D-PFNPT",
642 "id": "b69a52bec8a84669a37a1e8b72708be7",
643 "name": "AINWebTool-15-X-vdre",
647 "id": "fac7d9fd56154caeb9332202dcf2969f",
648 "name": "AINWebTool-15-X-NONPODECOMP",
652 "id": "2d34d8396e194eb49969fd61ffbff961",
653 "name": "DN5242-Nov16-T5",
657 "id": "cb42a77ff45b48a8b8deb83bb64acc74",
662 "id": "fa45ca53c80b492fa8be5477cd84fc2b",
667 "id": "4914ab0ab3a743e58f0eefdacc1dde77",
668 "name": "DN5242-Nov21-T1",
672 "id": "d0a3e3f2964542259d155a81c41aadc3",
673 "name": "test-hvf6-09",
677 "id": "cbb99fe4ada84631b7baf046b6fd2044",
678 "name": "DN5242-Nov16-T3",
686 "id": "ebc3bc3d-62fd-4a3f-a037-f619df4ff034",
691 "id": "17cc1042-527b-11e6-beb8-9e71128cae77",
696 "id": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
701 "id": "a4f6f2ae-9bf5-4ed7-b904-06b2099c4bd7",
702 "name": "Enhanced Services",
711 "id": "323d69d9-2efe-4r45-ay0a-89ea7ard4e6f",
716 "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
721 "id": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
726 "id": "db171b8f-115c-4992-a2e3-ee04cae357e0",
746 "id": "e433710f-9217-458d-a79d-1c7aff376d89",
747 "name": "TYLER SILVIA",
751 "id": "b6a3f28c-eebf-494c-a900-055cc7c874ce",
761 "id": "0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1",
762 "name": "CARA Griffin",
766 "id": "c7611ebe-c324-48f1-8085-94aef0c6ef3d",
767 "name": "DARREN MCGEE",
771 "id": "e30755dc-5673-4b6b-9dcf-9abdd96b93d1",
777 "name": "vSalvatore",
781 "id": "d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4",
791 "id": "12a96a9d-4b4c-4349-a950-fe1159602621",
792 "name": "DARREN MCGEE",
797 "e433710f-9217-458d-a79d-1c7aff376d89": [
800 "name": "vRichardson",
805 "name": "TYLER SILVIA",
820 "name": "vVoiceMail",
885 "name": "JOHANNA_SANTOS",
898 "name": "NFTJSSSS-NFT1"
902 "name": "YUDFJULP-JAG1"
906 "name": "UUUAIAAI-YYY1"
910 "name": "VSDKYUTP-BAN1"
914 "name": "DKJSJDKA-DKJ1"
918 "name": "ASACMAMS-MCS1"
922 "name": "uioclli1-UIO1"
926 "name": "YGBIJNLQ-RAJ1"
930 "name": "opaclli1-OPA1"
934 "name": "ZXCVBNMA-SDE1"
938 "name": "FGHJUHIL-VEN2"
942 "name": "ORLDFLMA-ORL1"
946 "name": "JADECLLI-JAD1"
950 "name": "LWLWCANN-ZXL1"
954 "name": "CLKSKCKK-CKL1"
958 "name": "sdfclli1-SDF1"
962 "name": "RADICAL1-RAD1"
966 "name": "BHYJFGLN-KIT1"
970 "name": "INGERFGT-REL1"
974 "name": "CJALSDAC-JNL1"
978 "name": "OLKOLKLS-OLK1"
982 "name": "CHILLIWE-CHI1"
986 "name": "UUUAAAUU-UUU4"
990 "name": "TUFCLLI1-TUF1"
994 "name": "CKALDKSA-KJN1"
998 "name": "SNDGCA64-SAN1"
1002 "name": "SCKSCKSK-SCK1"
1006 "name": "AOEEQQQD-HJH1"
1010 "name": "SDFQWHGD-HGD1"
1014 "name": "HYFLNBVT-KOR1"
1018 "name": "AICLOCID-ATL43"
1022 "name": "AICFTAAI-ATL54"
1026 "name": "CLLIAAII-ATL66"
1030 "name": "BNMLKUIK-VEL1"
1034 "name": "SANJITAT-ICC1"
1038 "name": "WSXEFBTH-MNT11"
1042 "name": "WSBHGTYL-DEF2"
1046 "name": "SDFQWGKL-MAD11"
1050 "name": "OLHOLHOL-OLG1"
1054 "name": "NGFVSJKO-GAR1"
1058 "name": "GNVLSCTL-SAN22"
1062 "name": "HRGHRGGS-HRG1"
1066 "name": "JCSJSCJS-JCS1"
1070 "name": "WSXEDECF-DHA12"
1074 "name": "AOEEWWWD-HJE1"
1078 "name": "NCANCANN-NCA1"
1082 "name": "iopclli1-IOP1"
1086 "name": "rtyclli1-RTY1"
1090 "name": "HIOUYTRQ-KAP1"
1094 "name": "ZENCLLI1-ZEN1"
1098 "name": "JAKHLASS-HKA1"
1102 "name": "CQKSCAKK-CQK1"
1106 "name": "UBEKQLPD-SAI1"
1110 "name": "ertclli1-ERT1"
1114 "name": "PLMKOIJU-IBB1"
1118 "name": "PLKINHYI-TIR2"
1122 "name": "CHASKCDS-HSD1"
1126 "name": "SDCTLFN1-SLF78"
1130 "name": "SDCTEEE4-SEE78"
1134 "name": "TOKYJPFA-SAN13"
1138 "name": "SDCTAAA1-SAA78"
1142 "name": "ATLDFGYC-LUC1"
1146 "name": "MEMATLAN-AMD13"
1150 "name": "TOROONXN-TOR1"
1154 "name": "QWECLLI1-QWE1"
1158 "name": "ZOGASTRO-ZOG1"
1162 "name": "CALIFORN-CAL33"
1166 "name": "SDIT1HHH-SHH78"
1170 "name": "LKJHGFDS-DSA1"
1174 "name": "CLGRABAD-CLG1"
1178 "name": "BNARAGBK-BNA1"
1182 "name": "CANTTCOC-ATL84"
1186 "name": "WBHGTYUI-APP1"
1190 "name": "RJNRBZAW-RJN1"
1194 "name": "SDCSHHH5-EHH78"
1198 "name": "PKGTESTF-mac10"
1202 "name": "SDCTGXB1-SXB78"
1206 "name": "SDCTAXG1-SAX78"
1210 "name": "SYDNAUBV-SYD1"
1214 "name": "TOKYJPFA-TOK1"
1218 "name": "KGMTNC20-KGM2"
1222 "name": "POIUYTGH-DCC1b"
1226 "name": "SDCTKKK1-SKK78"
1230 "name": "SDCTGGG1-SGG78"
1234 "name": "SDCTJJJ1-SJJ78"
1238 "name": "SDCTBXG1-SBX78"
1242 "name": "LARGIZON-LAG1"
1246 "name": "QAZXSWED-IAA1"
1250 "name": "PLMNJKIU-POI1"
1254 "name": "LARGIZON-LAG1a"
1258 "name": "PBLAPBAI-PBL1"
1262 "name": "LARGIZON-LAG1a"
1266 "name": "MNBVCXZM-MAR1"
1270 "name": "HSTNTX70-HST70"
1274 "name": "POIUYTGH-DCC1a"
1278 "name": "TOLDOH21-TOL1"
1282 "name": "LONEENCO-LON1"
1286 "name": "SDIT1JUB-SJU78"
1290 "name": "HSTNTX01-STN27"
1294 "name": "ss8126GT-SSW56"
1298 "name": "SDIT1BBB-SBB78"
1302 "name": "POIUYTGH-DCC3"
1306 "name": "GNVLSCTL-GNV1"
1310 "name": "WASHDCSW-WAS1"
1314 "name": "TORYONNZ-TOY1"
1318 "name": "STTLWA02-STT1"
1322 "name": "STTGGE62-STG1"
1326 "name": "SDCTLLL1-SLL78"
1330 "name": "SDIT1BUB-SBU78"
1334 "name": "ATLNGANW-ATL2"
1338 "name": "BOTHWAKY-BOT1"
1342 "name": "SNGPSIAU-SNG1"
1346 "name": "NYCMNY54-NYC1"
1350 "name": "LARGIZON-LAG1b"
1354 "name": "AMDFAA01-AMD15"
1358 "name": "SNANTXCA-SNA1"
1362 "name": "PLTNCA60-PLT1"
1366 "name": "TLPNXM18-TLP1"
1370 "name": "SAIT1DD6-SDD81"
1374 "name": "POIUYTGH-DCC1"
1378 "name": "POIUYTGH-DCC2"
1382 "name": "OKCBOK55-OKC1"
1386 "name": "PARSFRCG-PAR1"
1390 "name": "ABCEETES-TES36"
1394 "name": "PLMKOPIU-COM1"
1398 "name": "ATLNGTRE-ANI1"
1402 "name": "SDIT1BDG-SDG78"
1406 "name": "PKGTESTF-mac20"
1410 "name": "DSFBG123-DSF45"
1414 "name": "HSTNTX01-HST25"
1418 "name": "AUDIMA01-AMD18"
1422 "name": "SAIT9AA3-SAA80"
1426 "name": "SSIT2AA7-SSA56"
1430 "name": "SAIT1DD9-SDD82"
1434 "name": "JCVLFLBW-JCV1"
1438 "name": "WERTYUJK-SUL2"
1442 "name": "purelyde-PUR1"
1446 "name": "FDERT555-FDE55"
1450 "name": "LONEENCO-SITE"
1454 "name": "ATLNGAMA-ATL1"
1458 "name": "ZXCVBNMM-JUL1"
1462 "name": "TESAAISB-TAT34"
1466 "name": "CHKGH123-XCP12"
1470 "name": "poiuytre-RAI1"
1474 "name": "ATLNGAUP-HPO1"
1478 "name": "KJFDH123-KJF12"
1482 "name": "SAIT9CC3-SCC80"
1486 "name": "SAIT9AF8-SAA12"
1490 "name": "SAIT1AA9-SAA14"
1494 "name": "TTESSAAI-ATL35"
1498 "name": "CWYMOWBS-CWY1"
1502 "name": "TELEPAAI-ATL76"
1506 "name": "DSLFK242-DSL12"
1510 "name": "AAIATLTE-ATL53"
1514 "name": "SAIT9AA2-SAA11"
1518 "name": "TESSASCH-ATL62"
1522 "name": "ASDFGHJK-AUG1"
1526 "name": "POIUY123-POI22"
1530 "name": "SAIT1AA9-SAA13"
1534 "name": "BHYTFRF3-BHY17"
1538 "name": "HOSTPROF-LIS1"
1542 "name": "ZXCVBNMK-SIP1"
1546 "name": "TEESTAAI-ATL43"
1550 "name": "FORLOAAJ-ATL64"
1554 "name": "TESAAISA-TAT33"
1558 "name": "INDIPUNE-RAD10"
1562 "name": "BHYTFRY4-RTW5"
1566 "name": "KSJKKKKK-JGS1"
1570 "name": "TEESTAAI-ATL43"
1574 "name": "LEIWANGW-WAN1"
1578 "name": "ATLSANAB-ATL44"
1582 "name": "BHYTFRk4-RTD2"
1586 "name": "ORFLMANA-NIR1"
1590 "name": "SANAAIRE-ATL75"
1594 "name": "QWERTYUI-NUM1"
1598 "name": "MDTWNJ21-MTN32"
1602 "name": "BHYTFRZ6-RTZ4"
1606 "name": "ATLSANAC-ATL56"
1610 "name": "AMSTNLBW-AMS1"
1614 "name": "AMSTERNL-RCT1"
1618 "name": "ORFLMATT-JAN1"
1622 "name": "TESAAISA-ABC14"
1626 "name": "TESAAISD-TAT37"
1630 "name": "MICHIGAN-MIC54"
1634 "name": "ATLSANAI-ABC11"
1638 "name": "AMDOCS01-AMF11"
1642 "name": "ATLSANEW-ATL63"
1646 "name": "ATLSECIA-ABC12"
1650 "name": "MDTWNJ21-MTN20"
1654 "name": "AAITESAN-ABC15"
1658 "name": "AVTRFLHD-AVT1"
1662 "name": "ATLSANAI-ATL34"
1665 "categoryParameters": {
1666 "owningEntityList": [
1672 "id": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
1673 "name": "WayneHolland"
1694 "lineOfBusinessList": [
1715 "type": "[LCP_REGIONS_AND_TENANTS] Update",
1718 "id": "CAR_2020_ER",
1719 "name": "CAR_2020_ER",
1723 "id": "21014aa2-526b-11e6-beb8-9e71128cae77",
1724 "name": "JULIO ERICKSON",
1725 "isPermitted": false
1728 "id": "DHV1707-TestSubscriber-2",
1729 "name": "DALE BRIDGES",
1730 "isPermitted": false
1733 "id": "DHV1707-TestSubscriber-1",
1734 "name": "LLOYD BRIDGES",
1735 "isPermitted": false
1738 "id": "jimmy-example",
1739 "name": "JimmyExampleCust-20161102",
1740 "isPermitted": false
1743 "id": "jimmy-example2",
1744 "name": "JimmyExampleCust-20161103",
1745 "isPermitted": false
1748 "id": "ERICA5779-TestSub-PWT-102",
1749 "name": "ERICA5779-TestSub-PWT-102",
1750 "isPermitted": false
1753 "id": "ERICA5779-TestSub-PWT-101",
1754 "name": "ERICA5779-TestSub-PWT-101",
1755 "isPermitted": false
1758 "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
1760 "isPermitted": false
1763 "id": "ERICA5779-Subscriber-4",
1764 "name": "ERICA5779-Subscriber-5",
1765 "isPermitted": false
1768 "id": "ERICA5779-TestSub-PWT-103",
1769 "name": "ERICA5779-TestSub-PWT-103",
1770 "isPermitted": false
1773 "id": "ERICA5779-Subscriber-2",
1774 "name": "ERICA5779-Subscriber-2",
1775 "isPermitted": false
1778 "id": "e433710f-9217-458d-a79d-1c7aff376d89",
1779 "name": "SILVIA ROBBINS",
1783 "id": "ERICA5779-Subscriber-3",
1784 "name": "ERICA5779-Subscriber-3",
1785 "isPermitted": false
1788 "id": "31739f3e-526b-11e6-beb8-9e71128cae77",
1789 "name": "CRAIG/ROBERTS",
1790 "isPermitted": false
1798 class MockFeatureFlagsService {}
1800 describe('VFModule Control Generator', () => {
1802 let service: VfModuleControlGenerator;
1803 let httpMock: HttpTestingController;
1805 beforeAll(done => (async () => {
1806 TestBed.configureTestingModule({
1807 imports: [HttpClientTestingModule],
1808 providers: [VfModuleControlGenerator,
1810 BasicControlGenerator,
1814 {provide:FeatureFlagsService, useClass: MockFeatureFlagsService},
1815 {provide: NgRedux, useClass: MockAppStore}]
1817 await TestBed.compileComponents();
1819 injector = getTestBed();
1820 service = injector.get(VfModuleControlGenerator);
1821 httpMock = injector.get(HttpTestingController);
1822 jest.spyOn(console, 'error');
1824 })().then(done).catch(done.fail));
1826 test(' getMacroFormControls gets vnfStoreKey === null', () => {
1827 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1828 const vnfStoreKey: string = null;
1829 const vfModuleStoreKey: string = 'vf_vmee0..VfVmee..base_vmme..module-0';
1830 const vfModuleUUID: string = "522159d5-d6e0-4c2a-aa44-5a542a12a830";
1831 const controls: FormControlModel[] = service.getMacroFormControls(serviceId, vnfStoreKey, vfModuleStoreKey, vfModuleUUID, true);
1833 expect(controls).toEqual([]);
1834 expect(console.error).toHaveBeenCalled();
1837 test('getAlaCarteFormControls check for mandatory controls', () => {
1838 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1839 const vnfStoreKey: string = 'VF_vMee 0';
1840 const vfModuleStoreKey: string = 'vf_vmee0..VfVmee..base_vmme..module-0';
1841 const uuidData: Object = {
1842 modelId : "522159d5-d6e0-4c2a-aa44-5a542a12a830",
1843 modelName : "vf_vmee0..VfVmee..base_vmme..module-0",
1844 serviceId : "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
1846 vFModuleStoreKey : "vf_vmee0..VfVmee..base_vmme..module-0vmvzo",
1847 vnfStoreKey : "VF_vMee 0"
1849 const controls: FormControlModel[] = service.getAlaCarteFormControls(serviceId, vnfStoreKey, vfModuleStoreKey, uuidData, true);
1851 const mandatoryControls : string[] = [
1852 FormControlNames.INSTANCE_NAME,
1853 FormControlNames.LCPCLOUD_REGION_ID,
1854 FormControlNames.TENANT_ID,
1855 FormControlNames.ROLLBACK_ON_FAILURE,
1858 for(let i = 0 ; i < mandatoryControls.length ; i++) {
1859 let requiredExist = controls.find(ctrl => ctrl.controlName === mandatoryControls[i]).validations.find(item => item.validatorName === 'required');
1860 expect(requiredExist).toBeDefined();
1864 test('getMacroFormControls check for mandatory controls', () => {
1865 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1866 const vnfStoreKey: string = 'VF_vMee 0';
1867 const uuidData: Object = {
1868 modelId : "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
1869 modelName : "vf_vmee0..VfVmee..base_vmme..module-0",
1870 serviceId : "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
1872 vFModuleStoreKey : "vf_vmee0..VfVmee..base_vmme..module-0vmvzo",
1873 vnfStoreKey : "VF_vMee 0"
1875 const controls: FormControlModel[] = service.getMacroFormControls(serviceId, vnfStoreKey, vnfStoreKey, uuidData, true);
1877 const mandatoryControls : string[] = [
1881 for(let i = 0 ; i < mandatoryControls.length ; i++) {
1882 let requiredExist = controls.find(ctrl => ctrl.controlName === mandatoryControls[i]).validations.find(item => item.validatorName === 'required');
1883 expect(requiredExist).toBeDefined();
1887 test(' getMacroFormControls gets null vnfStoreKey', () => {
1888 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1889 const vnfStoreKey: string = null;
1890 const vfModuleUUID: string = "522159d5-d6e0-4c2a-aa44-5a542a12a830";
1891 const uuidData: Object = {};
1892 const controls: FormControlModel[] = service.getMacroFormControls(serviceId, vnfStoreKey, vfModuleUUID, uuidData,true);
1894 expect(controls).toEqual([]);
1895 expect(console.error).toHaveBeenCalled();
1898 test('getAlaCarteFormControls should return the correct order of controls', () => {
1899 const controls:FormControlModel[] = getAlaCarteFormControls();
1901 const orderedControls : string[] = [
1902 FormControlNames.INSTANCE_NAME,
1903 FormControlNames.VOLUME_GROUP_NAME,
1904 FormControlNames.LCPCLOUD_REGION_ID,
1905 FormControlNames.LEGACY_REGION,
1906 FormControlNames.TENANT_ID,
1907 FormControlNames.ROLLBACK_ON_FAILURE,
1908 FormControlNames.SDN_C_PRE_LOAD
1911 expect(controls.length).toEqual(7);
1912 for(let i = 0 ; i < orderedControls.length ; i++) {
1913 expect(controls[i].controlName).toEqual(orderedControls[i]);
1917 function getAlaCarteFormControls():FormControlModel[] {
1918 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1919 const vnfStoreKey: string = 'VF_vMee 0';
1920 const vfModuleUUID: string = "522159d5-d6e0-4c2a-aa44-5a542a12a830";
1921 const uuidData: Object = {
1922 modelId: "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
1923 modelName: "vf_vmee0..VfVmee..base_vmme..module-0",
1924 serviceId: "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
1926 vFModuleStoreKey: "vf_vmee0..VfVmee..base_vmme..module-0vmvzo",
1927 vnfStoreKey: "VF_vMee 0"
1929 const controls: FormControlModel[] = service.getAlaCarteFormControls(serviceId, vnfStoreKey, vfModuleUUID, uuidData, true);
1933 test('getAlaCarteFormControls responce with wrong order of controls', () => {
1934 const controls:FormControlModel[] = getAlaCarteFormControls();
1936 const orderedControls : string[] = [
1937 FormControlNames.INSTANCE_NAME,
1938 FormControlNames.VOLUME_GROUP_NAME,
1939 FormControlNames.LCPCLOUD_REGION_ID,
1940 FormControlNames.TENANT_ID, // TENANT_ID must be after LEGACY_REGION
1941 FormControlNames.LEGACY_REGION,
1942 FormControlNames.ROLLBACK_ON_FAILURE,
1943 FormControlNames.SDN_C_PRE_LOAD
1946 for(let i = 0 ; i < orderedControls.length ; i++) {
1947 if (controls[i].controlName === 'legacyRegion') {
1948 expect(orderedControls[i]).toEqual('tenantId');
1953 test('getMacroFormControls should return the correct order of controls', () => {
1954 const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
1955 const vnfStoreKey: string = 'VF_vMee 0';
1956 const vfModuleUUID: string = "522159d5-d6e0-4c2a-aa44-5a542a12a830";
1957 const uuidData: Object = {
1958 modelId : "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
1959 modelName : "vf_vmee0..VfVmee..base_vmme..module-0",
1960 serviceId : "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
1962 vFModuleStoreKey : "vf_vmee0..VfVmee..base_vmme..module-0vmvzo",
1963 vnfStoreKey : "VF_vMee 0"
1965 const controls: FormControlModel[] = service.getMacroFormControls(serviceId, vnfStoreKey, vfModuleUUID, uuidData, true);
1967 const orderedControls : string[] = [
1968 FormControlNames.INSTANCE_NAME,
1969 FormControlNames.VOLUME_GROUP_NAME
1972 for(let i = 0 ; i < orderedControls.length ; i++) {
1973 expect(controls[i].controlName).toEqual(orderedControls[i]);
1980 ${'volumeGroupName'}
1981 `('getAlacartFormControls $controllerName control validator shall have the expected regex', ({controllerName}) => {
1982 const controls:FormControlModel[] = getAlaCarteFormControls();
1984 const instanceNameControl: FormControlModel = <FormControlModel>controls.find(item => item.controlName == controllerName);
1985 const instanceNameValidator: ValidatorModel = instanceNameControl.validations.find(val => val.validatorName === ValidatorOptions.pattern);
1986 expect(instanceNameValidator.validatorArg).toEqual(/^[a-zA-Z0-9._-]*$/);
1989 test(' getAlaCarteFormControls gets null service', () => {
1990 const controls:FormControlModel[] = getAlaCarteFormControls();
1991 expect(controls.length).toEqual(7);
1993 const orderedControls : string[] = [
1994 FormControlNames.INSTANCE_NAME,
1995 FormControlNames.VOLUME_GROUP_NAME,
1996 FormControlNames.LCPCLOUD_REGION_ID,
1997 FormControlNames.LEGACY_REGION,
1998 FormControlNames.TENANT_ID,
1999 FormControlNames.ROLLBACK_ON_FAILURE,
2000 FormControlNames.SDN_C_PRE_LOAD
2003 for(let i = 0 ; i < orderedControls.length ; i++) {
2004 expect(controls[i].controlName).toEqual(orderedControls[i]);