1 import {getTestBed, TestBed} from '@angular/core/testing';
2 import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
3 import {FormBuilder, FormGroup} from '@angular/forms';
4 import {GenericFormPopupService} from "./generic-form-popup.service";
5 import {IframeService} from "../../utils/iframe.service";
6 import {NgRedux} from "@angular-redux/store";
7 import {ServicePopupService} from "./genericFormServices/service/service.popup.service";
8 import {BasicControlGenerator} from "../genericForm/formControlsServices/basic.control.generator";
9 import {AaiService} from "../../services/aaiService/aai.service";
10 import {ServiceControlGenerator} from "../genericForm/formControlsServices/service.control.generator";
11 import {GenericFormService} from "../genericForm/generic-form.service";
12 import {LogService} from "../../utils/log/log.service";
13 import {DefaultDataGeneratorService} from "../../services/defaultDataServiceGenerator/default.data.generator.service";
14 import {BasicPopupService} from "./genericFormServices/basic.popup.service";
15 import {ActivatedRoute} from "@angular/router";
16 import {UUIDData} from "./generic-form-popup.component";
17 import {ITreeNode} from "angular-tree-component/dist/defs/api";
18 import {NetworkPopupService} from "./genericFormServices/network/network.popup.service";
19 import {NetworkControlGenerator} from "../genericForm/formControlsServices/networkGenerator/network.control.generator";
20 import {VfModulePopuopService} from "./genericFormServices/vfModule/vfModule.popuop.service";
21 import {VfModuleControlGenerator} from "../genericForm/formControlsServices/vfModuleGenerator/vfModule.control.generator";
22 import {FeatureFlagsService} from "../../services/featureFlag/feature-flags.service";
24 class MockAppStore<T>{
30 "FLAG_NETWORK_TO_ASYNC_INSTANTIATION": false,
31 "FLAG_SHOW_ASSIGNMENTS": true,
32 "FLAG_FABRIC_CONFIGURATION_ASSIGNMENTS": true,
33 "FLAG_SHOW_VERIFY_SERVICE": false,
34 "FLAG_SERVICE_MODEL_CACHE": true,
35 "CREATE_INSTANCE_TEST": false,
36 "FLAG_SETTING_DEFAULTS_IN_DRAWING_BOARD": false,
37 "EMPTY_DRAWING_BOARD_TEST": false,
38 "FLAG_ADD_MSO_TESTAPI_FIELD": true
40 "type": "[FLAGS] Update"
44 "6e59c5de-f052-46fa-aa7e-2fca9d674c44": {
46 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
47 "invariantUuid": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
48 "name": "ComplexService",
50 "toscaModelURL": null,
51 "category": "Emanuel",
54 "description": "ComplexService",
55 "serviceEcompNaming": "false",
56 "instantiationType": "Macro",
58 "instantiationType": "Macro"
64 "uuid": "d6557200-ecf2-4641-8094-5393ae3aae60",
65 "invariantUuid": "4160458e-f648-4b30-a176-43881ffffe9e",
66 "description": "VSP_vGeraldine",
67 "name": "VF_vGeraldine",
69 "customizationUuid": "91415b44-753d-494c-926a-456a9172bbb9",
72 "serviceEcompNaming" : "true",
74 "ecomp_generated_naming": "false",
77 "gpb2_Internal2_mac": "00:11:22:EF:AC:DF",
78 "sctp-b-ipv6-egress_src_start_port": "0",
79 "sctp-a-ipv6-egress_rule_application": "any",
80 "Internal2_allow_transit": "true",
81 "sctp-b-IPv6_ethertype": "IPv6",
82 "sctp-a-egress_rule_application": "any",
83 "sctp-b-ingress_action": "pass",
84 "sctp-b-ingress_rule_protocol": "icmp",
85 "ncb2_Internal1_mac": "00:11:22:EF:AC:DF",
86 "sctp-b-ipv6-ingress-src_start_port": "0.0",
87 "ncb1_Internal2_mac": "00:11:22:EF:AC:DF",
88 "fsb_volume_size_0": "320.0",
89 "sctp-b-egress_src_addresses": "local",
90 "sctp-a-ipv6-ingress_ethertype": "IPv4",
91 "sctp-a-ipv6-ingress-dst_start_port": "0",
92 "sctp-b-ipv6-ingress_rule_application": "any",
93 "domain_name": "default-domain",
94 "sctp-a-ingress_rule_protocol": "icmp",
95 "sctp-b-egress-src_start_port": "0.0",
96 "sctp-a-egress_src_addresses": "local",
97 "sctp-b-display_name": "epc-sctp-b-ipv4v6-sec-group",
98 "sctp-a-egress-src_start_port": "0.0",
99 "sctp-a-ingress_ethertype": "IPv4",
100 "sctp-b-ipv6-ingress-dst_end_port": "65535",
101 "sctp-b-dst_subnet_prefix_v6": "::",
102 "nf_naming": "{ecomp_generated_naming=true}",
103 "sctp-a-ipv6-ingress_src_subnet_prefix": "0.0.0.0",
104 "sctp-b-egress-dst_start_port": "0.0",
105 "ncb_flavor_name": "nv.c20r64d1",
106 "gpb1_Internal1_mac": "00:11:22:EF:AC:DF",
107 "sctp-b-egress_dst_subnet_prefix_len": "0.0",
108 "Internal2_net_cidr": "10.0.0.10",
109 "sctp-a-ingress-dst_start_port": "0.0",
110 "sctp-a-egress-dst_start_port": "0.0",
111 "fsb1_Internal2_mac": "00:11:22:EF:AC:DF",
112 "sctp-a-egress_ethertype": "IPv4",
113 "vlc_st_service_mode": "in-network-nat",
114 "sctp-a-ipv6-egress_ethertype": "IPv4",
115 "sctp-a-egress-src_end_port": "65535.0",
116 "sctp-b-ipv6-egress_rule_application": "any",
117 "sctp-b-egress_action": "pass",
118 "sctp-a-ingress-src_subnet_prefix_len": "0.0",
119 "sctp-b-ipv6-ingress-src_end_port": "65535.0",
120 "sctp-b-name": "epc-sctp-b-ipv4v6-sec-group",
121 "fsb2_Internal1_mac": "00:11:22:EF:AC:DF",
122 "sctp-a-ipv6-ingress-src_start_port": "0.0",
123 "sctp-b-ipv6-egress_ethertype": "IPv4",
124 "Internal1_net_cidr": "10.0.0.10",
125 "sctp-a-egress_dst_subnet_prefix": "0.0.0.0",
126 "fsb_flavor_name": "nv.c20r64d1",
127 "sctp_rule_protocol": "132",
128 "sctp-b-ipv6-ingress_src_subnet_prefix_len": "0",
129 "sctp-a-ipv6-ingress_rule_application": "any",
130 "sctp-a-IPv6_ethertype": "IPv6",
131 "vlc2_Internal1_mac": "00:11:22:EF:AC:DF",
132 "vlc_st_virtualization_type": "virtual-machine",
133 "sctp-b-ingress-dst_start_port": "0.0",
134 "sctp-b-ingress-dst_end_port": "65535.0",
135 "sctp-a-ipv6-ingress-src_end_port": "65535.0",
136 "sctp-a-display_name": "epc-sctp-a-ipv4v6-sec-group",
137 "sctp-b-ingress_rule_application": "any",
138 "int2_sec_group_name": "int2-sec-group",
139 "vlc_flavor_name": "nd.c16r64d1",
140 "sctp-b-ipv6-egress_src_addresses": "local",
141 "vlc_st_interface_type_int1": "other1",
142 "sctp-b-egress-src_end_port": "65535.0",
143 "sctp-a-ipv6-egress-dst_start_port": "0",
144 "vlc_st_interface_type_int2": "other2",
145 "sctp-a-ipv6-egress_rule_protocol": "any",
146 "Internal2_shared": "false",
147 "sctp-a-ipv6-egress_dst_subnet_prefix_len": "0",
148 "Internal2_rpf": "disable",
149 "vlc1_Internal1_mac": "00:11:22:EF:AC:DF",
150 "sctp-b-ipv6-egress_src_end_port": "65535",
151 "sctp-a-ipv6-egress_src_addresses": "local",
152 "sctp-a-ingress-dst_end_port": "65535.0",
153 "sctp-a-ipv6-egress_src_end_port": "65535",
154 "Internal1_forwarding_mode": "l2",
155 "Internal2_dhcp": "false",
156 "sctp-a-dst_subnet_prefix_v6": "::",
157 "pxe_image_name": "MME_PXE-Boot_16ACP04_GA.qcow2",
158 "vlc_st_interface_type_gtp": "other0",
159 "ncb1_Internal1_mac": "00:11:22:EF:AC:DF",
160 "sctp-b-src_subnet_prefix_v6": "::",
161 "sctp-a-egress_dst_subnet_prefix_len": "0.0",
162 "int1_sec_group_name": "int1-sec-group",
163 "Internal1_dhcp": "false",
164 "sctp-a-ipv6-egress_dst_end_port": "65535",
165 "Internal2_forwarding_mode": "l2",
166 "fsb2_Internal2_mac": "00:11:22:EF:AC:DF",
167 "sctp-b-egress_dst_subnet_prefix": "0.0.0.0",
168 "Internal1_net_cidr_len": "17",
169 "gpb2_Internal1_mac": "00:11:22:EF:AC:DF",
170 "sctp-b-ingress-src_subnet_prefix_len": "0.0",
171 "sctp-a-ingress_dst_addresses": "local",
172 "sctp-a-egress_action": "pass",
173 "fsb_volume_type_0": "SF-Default-SSD",
174 "ncb2_Internal2_mac": "00:11:22:EF:AC:DF",
175 "vlc_st_interface_type_sctp_a": "left",
176 "vlc_st_interface_type_sctp_b": "right",
177 "sctp-a-src_subnet_prefix_v6": "::",
178 "vlc_st_version": "2",
179 "sctp-b-egress_ethertype": "IPv4",
180 "sctp-a-ingress_rule_application": "any",
181 "gpb1_Internal2_mac": "00:11:22:EF:AC:DF",
182 "instance_ip_family_v6": "v6",
183 "sctp-a-ipv6-egress_src_start_port": "0",
184 "sctp-b-ingress-src_start_port": "0.0",
185 "sctp-b-ingress_dst_addresses": "local",
186 "fsb1_Internal1_mac": "00:11:22:EF:AC:DF",
187 "vlc_st_interface_type_oam": "management",
188 "multi_stage_design": "true",
189 "oam_sec_group_name": "oam-sec-group",
190 "Internal2_net_gateway": "10.0.0.10",
191 "sctp-a-ipv6-ingress-dst_end_port": "65535",
192 "sctp-b-ipv6-egress-dst_start_port": "0",
193 "Internal1_net_gateway": "10.0.0.10",
194 "sctp-b-ipv6-egress_rule_protocol": "any",
195 "gtp_sec_group_name": "gtp-sec-group",
196 "sctp-a-ipv6-egress_dst_subnet_prefix": "0.0.0.0",
197 "sctp-b-ipv6-egress_dst_subnet_prefix_len": "0",
198 "sctp-a-ipv6-ingress_dst_addresses": "local",
199 "sctp-a-egress_rule_protocol": "icmp",
200 "sctp-b-ipv6-egress_action": "pass",
201 "sctp-a-ipv6-egress_action": "pass",
202 "Internal1_shared": "false",
203 "sctp-b-ipv6-ingress_rule_protocol": "any",
204 "Internal2_net_cidr_len": "17",
205 "sctp-a-name": "epc-sctp-a-ipv4v6-sec-group",
206 "sctp-a-ingress-src_end_port": "65535.0",
207 "sctp-b-ipv6-ingress_src_subnet_prefix": "0.0.0.0",
208 "sctp-a-egress-dst_end_port": "65535.0",
209 "sctp-a-ingress_action": "pass",
210 "sctp-b-egress_rule_protocol": "icmp",
211 "sctp-b-ipv6-ingress_action": "pass",
212 "vlc_st_service_type": "firewall",
213 "sctp-b-ipv6-egress_dst_end_port": "65535",
214 "sctp-b-ipv6-ingress-dst_start_port": "0",
215 "vlc2_Internal2_mac": "00:11:22:EF:AC:DF",
216 "vlc_st_availability_zone": "true",
217 "fsb_volume_image_name_1": "MME_FSB2_16ACP04_GA.qcow2",
218 "sctp-b-ingress-src_subnet_prefix": "0.0.0.0",
219 "sctp-a-ipv6-ingress_src_subnet_prefix_len": "0",
220 "Internal1_allow_transit": "true",
221 "gpb_flavor_name": "nv.c20r64d1",
222 "availability_zone_max_count": "1",
223 "fsb_volume_image_name_0": "MME_FSB1_16ACP04_GA.qcow2",
224 "sctp-b-ipv6-ingress_dst_addresses": "local",
225 "sctp-b-ipv6-egress_dst_subnet_prefix": "0.0.0.0",
226 "sctp-b-ipv6-ingress_ethertype": "IPv4",
227 "vlc1_Internal2_mac": "00:11:22:EF:AC:DF",
228 "sctp-a-ingress-src_subnet_prefix": "0.0.0.0",
229 "sctp-a-ipv6-ingress_action": "pass",
230 "Internal1_rpf": "disable",
231 "sctp-b-ingress_ethertype": "IPv4",
232 "sctp-b-egress_rule_application": "any",
233 "sctp-b-ingress-src_end_port": "65535.0",
234 "sctp-a-ipv6-ingress_rule_protocol": "any",
235 "sctp-a-ingress-src_start_port": "0.0",
236 "sctp-b-egress-dst_end_port": "65535.0"
239 "modelCustomizationName": "VF_vGeraldine 0",
241 "vf_vgeraldine0..VfVgeraldine..vflorence_vlc..module-1": {
242 "uuid": "522159d5-d6e0-4c2a-aa44-5a542a12a830",
243 "invariantUuid": "98a7c88b-b577-476a-90e4-e25a5871e02b",
244 "customizationUuid": "55b1be94-671a-403e-a26c-667e9c47d091",
246 "name": "VfVgeraldine..vflorence_vlc..module-1",
248 "modelCustomizationName": "VfVgeraldine..vflorence_vlc..module-1",
250 "minCountInstances": 0,
251 "maxCountInstances": null,
253 "vfModuleLabel": "vflorence_vlc"
256 "volumeGroupAllowed": true
258 "vf_vgeraldine0..VfVgeraldine..vflorence_gpb..module-2": {
259 "uuid": "41708296-e443-4c71-953f-d9a010f059e1",
260 "invariantUuid": "1cca90b8-3490-495e-87da-3f3e4c57d5b9",
261 "customizationUuid": "6add59e0-7fe1-4bc4-af48-f8812422ae7c",
263 "name": "VfVgeraldine..vflorence_gpb..module-2",
265 "modelCustomizationName": "VfVgeraldine..vflorence_gpb..module-2",
267 "minCountInstances": 0,
268 "maxCountInstances": null,
270 "vfModuleLabel": "vflorence_gpb"
273 "volumeGroupAllowed": false
275 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
276 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
277 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
278 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
280 "name": "VfVgeraldine..base_vflorence..module-0",
282 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
284 "minCountInstances": 1,
285 "maxCountInstances": 1,
287 "vfModuleLabel": "base_vflorence"
290 "volumeGroupAllowed": true
294 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
295 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
296 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
297 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
299 "name": "VfVgeraldine..base_vflorence..module-0",
301 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
303 "minCountInstances": 1,
304 "maxCountInstances": 1,
306 "vfModuleLabel": "base_vflorence"
311 "vfcInstanceGroups": {}
316 "uuid": "ddc3f20c-08b5-40fd-af72-c6d14636b986",
317 "invariantUuid": "379f816b-a7aa-422f-be30-17114ff50b7c",
318 "description": "ECOMP generic virtual link (network) base type for all other service-level and global networks",
321 "customizationUuid": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
325 "ecomp_generated_naming": "false",
326 "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}}",
327 "exVL_naming": "{ecomp_generated_naming=true}",
328 "network_flows": "{is_network_policy=false, is_bound_to_vpn=false}",
329 "network_homing": "{ecomp_selected_instance_node_target=false}"
332 "modelCustomizationName": "ExtVL 0"
335 "collectionResources": {},
337 "Port Mirroring Configuration By Policy 0": {
338 "uuid": "b4398538-e89d-4f13-b33d-ca323434ba50",
339 "invariantUuid": "6ef0ca40-f366-4897-951f-abd65d25f6f7",
340 "description": "A port mirroring configuration by policy object",
341 "name": "Port Mirroring Configuration By Policy",
343 "customizationUuid": "3c3b7b8d-8669-4b3b-8664-61970041fad2",
347 "type": "Configuration",
348 "modelCustomizationName": "Port Mirroring Configuration By Policy 0",
350 "collectorNodes": null,
351 "configurationByPolicy": false
354 "serviceProxies": {},
356 "vf_vgeraldine0..VfVgeraldine..vflorence_vlc..module-1": {
357 "uuid": "522159d5-d6e0-4c2a-aa44-5a542a12a830",
358 "invariantUuid": "98a7c88b-b577-476a-90e4-e25a5871e02b",
359 "customizationUuid": "55b1be94-671a-403e-a26c-667e9c47d091",
361 "name": "VfVgeraldine..vflorence_vlc..module-1",
363 "modelCustomizationName": "VfVgeraldine..vflorence_vlc..module-1",
365 "minCountInstances": 0,
366 "maxCountInstances": null,
368 "vfModuleLabel": "vflorence_vlc"
371 "volumeGroupAllowed": true
373 "vf_vgeraldine0..VfVgeraldine..vflorence_gpb..module-2": {
374 "uuid": "41708296-e443-4c71-953f-d9a010f059e1",
375 "invariantUuid": "1cca90b8-3490-495e-87da-3f3e4c57d5b9",
376 "customizationUuid": "6add59e0-7fe1-4bc4-af48-f8812422ae7c",
378 "name": "VfVgeraldine..vflorence_gpb..module-2",
380 "modelCustomizationName": "VfVgeraldine..vflorence_gpb..module-2",
382 "minCountInstances": 0,
383 "maxCountInstances": null,
385 "vfModuleLabel": "vflorence_gpb"
388 "volumeGroupAllowed": false
390 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
391 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
392 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
393 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
395 "name": "VfVgeraldine..base_vflorence..module-0",
397 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
399 "minCountInstances": 1,
400 "maxCountInstances": 1,
402 "vfModuleLabel": "base_vflorence"
405 "volumeGroupAllowed": true
409 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
410 "uuid": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
411 "invariantUuid": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
412 "customizationUuid": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
414 "name": "VfVgeraldine..base_vflorence..module-0",
416 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0",
418 "minCountInstances": 1,
419 "maxCountInstances": 1,
421 "vfModuleLabel": "base_vflorence"
430 "6e59c5de-f052-46fa-aa7e-2fca9d674c44": {
434 "rollbackOnFailure": "true",
436 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0": {
437 "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0vmvzo": {
438 "isMissingData": false,
439 "sdncPreReload": null,
441 "modelType": "VFmodule",
442 "modelInvariantId": "a6f9e51a-2b35-416a-ae15-15e58d61f36d",
443 "modelVersionId": "a27f5cfc-7f12-4f99-af08-0af9c3885c87",
444 "modelName": "VfVgeraldine..base_vflorence..module-0",
446 "modelCustomizationId": "f8c040f1-7e51-4a11-aca8-acf256cfd861",
447 "modelCustomizationName": "VfVgeraldine..base_vflorence..module-0"
452 "trackById": "wmtm6sy2uj"
456 "isMissingData": true,
457 "originalName": "VF_vGeraldine 0",
458 "vnfStoreKey": "VF_vGeraldine 0",
459 "trackById": "p3wk448m5do",
460 "uuid": "d6557200-ecf2-4641-8094-5393ae3aae60",
461 "productFamilyId": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
462 "lcpCloudRegionId": null,
464 "lineOfBusiness": null,
465 "platformName": null,
468 "modelInvariantId": "4160458e-f648-4b30-a176-43881ffffe9e",
469 "modelVersionId": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
470 "modelName": "VF_vGeraldine",
471 "modelVersion": "2.0",
472 "modelCustomizationName": "VF_vGeraldine 0"
479 "validationCounter": 1,
481 "existingVNFCounterMap": {
482 "d6557200-ecf2-4641-8094-5393ae3aae60": 1
484 "globalSubscriberId": "e433710f-9217-458d-a79d-1c7aff376d89",
485 "subscriptionServiceType": "TYLER SILVIA",
486 "owningEntityId": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
487 "productFamilyId": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
488 "lcpCloudRegionId": "hvf6",
489 "tenantId": "229bcdc6eaeb4ca59d55221141d01f8e",
492 "rollbackOnFailure": "true",
495 "modelInvariantId": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
496 "modelVersionId": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
497 "modelName": "ComplexService",
498 "modelVersion": "1.0",
499 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44"
502 "name": "ComplexService",
504 "description": "ComplexService",
505 "category": "Emanuel",
506 "uuid": "6e59c5de-f052-46fa-aa7e-2fca9d674c44",
507 "invariantUuid": "e49fbd11-e60c-4a8e-b4bf-30fbe8f4fcc0",
510 "isEcompGeneratedNaming": true,
511 "isMultiStepDesign": false
514 "lcpRegionsAndTenants": {
527 "lcpRegionsTenantsMap": {
530 "id": "092eb9e8e4b7412e8787dd091bc58e86",
531 "name": "USP-SIP-IC-24335-T-01",
537 "id": "bae71557c5bb4d5aac6743a4e5f1d054",
538 "name": "AIN Web Tool-15-D-testalexandria",
542 "id": "229bcdc6eaeb4ca59d55221141d01f8e",
543 "name": "AIN Web Tool-15-D-STTest2",
547 "id": "1178612d2b394be4834ad77f567c0af2",
548 "name": "AIN Web Tool-15-D-SSPtestcustome",
552 "id": "19c5ade915eb461e8af52fb2fd8cd1f2",
553 "name": "AIN Web Tool-15-D-UncheckedEcopm",
557 "id": "de007636e25249238447264a988a927b",
558 "name": "AIN Web Tool-15-D-dfsdf",
562 "id": "62f29b3613634ca6a3065cbe0e020c44",
563 "name": "AIN/SMS-16-D-Multiservices1",
567 "id": "649289e30d3244e0b48098114d63c2aa",
568 "name": "AIN Web Tool-15-D-SSPST66",
572 "id": "3f21eeea6c2c486bba31dab816c05a32",
573 "name": "AIN Web Tool-15-D-ASSPST47",
577 "id": "f60ce21d3ee6427586cff0d22b03b773",
578 "name": "CESAR-100-D-sspjg67246",
582 "id": "8774659e425f479895ae091bb5d46560",
583 "name": "CESAR-100-D-sspjg68359",
587 "id": "624eb554b0d147c19ff8885341760481",
588 "name": "AINWebTool-15-D-iftach",
592 "id": "214f55f5fc414c678059c383b03e4962",
593 "name": "CESAR-100-D-sspjg612401",
597 "id": "c90666c291664841bb98e4d981ff1db5",
598 "name": "CESAR-100-D-sspjg621340",
602 "id": "ce5b6bc5c7b348e1bf4b91ac9a174278",
603 "name": "sspjg621351cloned",
607 "id": "b386b768a3f24c8e953abbe0b3488c02",
608 "name": "AINWebTool-15-D-eteancomp",
612 "id": "dc6c4dbfd225474e9deaadd34968646c",
613 "name": "AINWebTool-15-T-SPFET",
617 "id": "02cb5030e9914aa4be120bd9ed1e19eb",
618 "name": "AINWebTool-15-X-eeweww",
622 "id": "f2f3830e4c984d45bcd00e1a04158a79",
623 "name": "CESAR-100-D-spjg61909",
627 "id": "05b91bd5137f4929878edd965755c06d",
628 "name": "CESAR-100-D-sspjg621512cloned",
632 "id": "7002fbe8482d4a989ddf445b1ce336e0",
633 "name": "AINWebTool-15-X-vdr",
637 "id": "4008522be43741dcb1f5422022a2aa0b",
638 "name": "AINWebTool-15-D-ssasa",
642 "id": "f44e2e96a1b6476abfda2fa407b00169",
643 "name": "AINWebTool-15-D-PFNPT",
647 "id": "b69a52bec8a84669a37a1e8b72708be7",
648 "name": "AINWebTool-15-X-vdre",
652 "id": "fac7d9fd56154caeb9332202dcf2969f",
653 "name": "AINWebTool-15-X-NONPODECOMP",
657 "id": "2d34d8396e194eb49969fd61ffbff961",
658 "name": "DN5242-Nov16-T5",
662 "id": "cb42a77ff45b48a8b8deb83bb64acc74",
667 "id": "fa45ca53c80b492fa8be5477cd84fc2b",
672 "id": "4914ab0ab3a743e58f0eefdacc1dde77",
673 "name": "DN5242-Nov21-T1",
677 "id": "d0a3e3f2964542259d155a81c41aadc3",
678 "name": "test-hvf6-09",
682 "id": "cbb99fe4ada84631b7baf046b6fd2044",
683 "name": "DN5242-Nov16-T3",
691 "id": "ebc3bc3d-62fd-4a3f-a037-f619df4ff034",
696 "id": "17cc1042-527b-11e6-beb8-9e71128cae77",
701 "id": "36b4733a-53f4-4cc8-8ff0-9172e5fc4b8e",
706 "id": "a4f6f2ae-9bf5-4ed7-b904-06b2099c4bd7",
707 "name": "Enhanced Services",
716 "id": "323d69d9-2efe-4r45-ay0a-89ea7ard4e6f",
717 "name": "vEsmeralda",
721 "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
726 "id": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
731 "id": "db171b8f-115c-4992-a2e3-ee04cae357e0",
751 "id": "e433710f-9217-458d-a79d-1c7aff376d89",
752 "name": "TYLER SILVIA",
756 "id": "b6a3f28c-eebf-494c-a900-055cc7c874ce",
766 "id": "0ee8c1bc-7cbd-4b0a-a1ac-e9999255abc1",
767 "name": "CARA Griffin",
771 "id": "c7611ebe-c324-48f1-8085-94aef0c6ef3d",
772 "name": "DARREN MCGEE",
776 "id": "e30755dc-5673-4b6b-9dcf-9abdd96b93d1",
782 "name": "vSalvatore",
786 "id": "d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4",
796 "id": "12a96a9d-4b4c-4349-a950-fe1159602621",
797 "name": "DARREN MCGEE",
802 "e433710f-9217-458d-a79d-1c7aff376d89": [
805 "name": "vRichardson",
810 "name": "TYLER SILVIA",
825 "name": "vVoiceMail",
860 "name": "vEsmeralda",
890 "name": "JOHANNA_SANTOS",
903 "name": "NFTJSSSS-NFT1"
907 "name": "YUDFJULP-JAG1"
911 "name": "UUUAIAAI-YYY1"
915 "name": "VSDKYUTP-BAN1"
919 "name": "DKJSJDKA-DKJ1"
923 "name": "ASACMAMS-MCS1"
927 "name": "uioclli1-UIO1"
931 "name": "YGBIJNLQ-RAJ1"
935 "name": "opaclli1-OPA1"
939 "name": "ZXCVBNMA-SDE1"
943 "name": "FGHJUHIL-VEN2"
947 "name": "ORLDFLMA-ORL1"
951 "name": "JADECLLI-JAD1"
955 "name": "LWLWCANN-ZXL1"
959 "name": "CLKSKCKK-CKL1"
963 "name": "sdfclli1-SDF1"
967 "name": "RADICAL1-RAD1"
971 "name": "BHYJFGLN-KIT1"
975 "name": "INGERFGT-REL1"
979 "name": "CJALSDAC-JNL1"
983 "name": "OLKOLKLS-OLK1"
987 "name": "CHILLIWE-CHI1"
991 "name": "UUUAAAUU-UUU4"
995 "name": "TUFCLLI1-TUF1"
999 "name": "CKALDKSA-KJN1"
1003 "name": "SNDGCA64-SAN1"
1007 "name": "SCKSCKSK-SCK1"
1011 "name": "AOEEQQQD-HJH1"
1015 "name": "SDFQWHGD-HGD1"
1019 "name": "HYFLNBVT-KOR1"
1023 "name": "AICLOCID-ATL43"
1027 "name": "AICFTAAI-ATL54"
1031 "name": "CLLIAAII-ATL66"
1035 "name": "BNMLKUIK-VEL1"
1039 "name": "SANJITAT-ICC1"
1043 "name": "WSXEFBTH-MNT11"
1047 "name": "WSBHGTYL-DEF2"
1051 "name": "SDFQWGKL-MAD11"
1055 "name": "OLHOLHOL-OLG1"
1059 "name": "NGFVSJKO-GAR1"
1063 "name": "GNVLSCTL-SAN22"
1067 "name": "HRGHRGGS-HRG1"
1071 "name": "JCSJSCJS-JCS1"
1075 "name": "WSXEDECF-DHA12"
1079 "name": "AOEEWWWD-HJE1"
1083 "name": "NCANCANN-NCA1"
1087 "name": "iopclli1-IOP1"
1091 "name": "rtyclli1-RTY1"
1095 "name": "HIOUYTRQ-KAP1"
1099 "name": "ZENCLLI1-ZEN1"
1103 "name": "JAKHLASS-HKA1"
1107 "name": "CQKSCAKK-CQK1"
1111 "name": "UBEKQLPD-SAI1"
1115 "name": "ertclli1-ERT1"
1119 "name": "PLMKOIJU-IBB1"
1123 "name": "PLKINHYI-TIR2"
1127 "name": "CHASKCDS-HSD1"
1131 "name": "SDCTLFN1-SLF78"
1135 "name": "SDCTEEE4-SEE78"
1139 "name": "TOKYJPFA-SAN13"
1143 "name": "SDCTAAA1-SAA78"
1147 "name": "ATLDFGYC-LUC1"
1151 "name": "MEMATLAN-AMD13"
1155 "name": "TOROONXN-TOR1"
1159 "name": "QWECLLI1-QWE1"
1163 "name": "ZOGASTRO-ZOG1"
1167 "name": "CALIFORN-CAL33"
1171 "name": "SDIT1HHH-SHH78"
1175 "name": "LKJHGFDS-DSA1"
1179 "name": "CLGRABAD-CLG1"
1183 "name": "BNARAGBK-BNA1"
1187 "name": "CANTTCOC-ATL84"
1191 "name": "WBHGTYUI-APP1"
1195 "name": "RJNRBZAW-RJN1"
1199 "name": "SDCSHHH5-EHH78"
1203 "name": "PKGTESTF-mac10"
1207 "name": "SDCTGXB1-SXB78"
1211 "name": "SDCTAXG1-SAX78"
1215 "name": "SYDNAUBV-SYD1"
1219 "name": "TOKYJPFA-TOK1"
1223 "name": "KGMTNC20-KGM2"
1227 "name": "POIUYTGH-DCC1b"
1231 "name": "SDCTKKK1-SKK78"
1235 "name": "SDCTGGG1-SGG78"
1239 "name": "SDCTJJJ1-SJJ78"
1243 "name": "SDCTBXG1-SBX78"
1247 "name": "LARGIZON-LAG1"
1251 "name": "QAZXSWED-IAA1"
1255 "name": "PLMNJKIU-POI1"
1259 "name": "LARGIZON-LAG1a"
1263 "name": "PBLAPBAI-PBL1"
1267 "name": "LARGIZON-LAG1a"
1271 "name": "MNBVCXZM-MAR1"
1275 "name": "HSTNTX70-HST70"
1279 "name": "POIUYTGH-DCC1a"
1283 "name": "TOLDOH21-TOL1"
1287 "name": "LONEENCO-LON1"
1291 "name": "SDIT1JUB-SJU78"
1295 "name": "HSTNTX01-STN27"
1299 "name": "ss8126GT-SSW56"
1303 "name": "SDIT1BBB-SBB78"
1307 "name": "POIUYTGH-DCC3"
1311 "name": "GNVLSCTL-GNV1"
1315 "name": "WASHDCSW-WAS1"
1319 "name": "TORYONNZ-TOY1"
1323 "name": "STTLWA02-STT1"
1327 "name": "STTGGE62-STG1"
1331 "name": "SDCTLLL1-SLL78"
1335 "name": "SDIT1BUB-SBU78"
1339 "name": "ATLNGANW-ATL2"
1343 "name": "BOTHWAKY-BOT1"
1347 "name": "SNGPSIAU-SNG1"
1351 "name": "NYCMNY54-NYC1"
1355 "name": "LARGIZON-LAG1b"
1359 "name": "AMDFAA01-AMD15"
1363 "name": "SNANTXCA-SNA1"
1367 "name": "PLTNCA60-PLT1"
1371 "name": "TLPNXM18-TLP1"
1375 "name": "SAIT1DD6-SDD81"
1379 "name": "POIUYTGH-DCC1"
1383 "name": "POIUYTGH-DCC2"
1387 "name": "OKCBOK55-OKC1"
1391 "name": "PARSFRCG-PAR1"
1395 "name": "ABCEETES-TES36"
1399 "name": "PLMKOPIU-COM1"
1403 "name": "ATLNGTRE-ANI1"
1407 "name": "SDIT1BDG-SDG78"
1411 "name": "PKGTESTF-mac20"
1415 "name": "DSFBG123-DSF45"
1419 "name": "HSTNTX01-HST25"
1423 "name": "AUDIMA01-AMD18"
1427 "name": "SAIT9AA3-SAA80"
1431 "name": "SSIT2AA7-SSA56"
1435 "name": "SAIT1DD9-SDD82"
1439 "name": "JCVLFLBW-JCV1"
1443 "name": "WERTYUJK-SUL2"
1447 "name": "purelyde-PUR1"
1451 "name": "FDERT555-FDE55"
1455 "name": "LONEENCO-SITE"
1459 "name": "ATLNGAMA-ATL1"
1463 "name": "ZXCVBNMM-JUL1"
1467 "name": "TESAAISB-TAT34"
1471 "name": "CHKGH123-XCP12"
1475 "name": "poiuytre-RAI1"
1479 "name": "ATLNGAUP-HPO1"
1483 "name": "KJFDH123-KJF12"
1487 "name": "SAIT9CC3-SCC80"
1491 "name": "SAIT9AF8-SAA12"
1495 "name": "SAIT1AA9-SAA14"
1499 "name": "TTESSAAI-ATL35"
1503 "name": "CWYMOWBS-CWY1"
1507 "name": "TELEPAAI-ATL76"
1511 "name": "DSLFK242-DSL12"
1515 "name": "AAIATLTE-ATL53"
1519 "name": "SAIT9AA2-SAA11"
1523 "name": "TESSASCH-ATL62"
1527 "name": "ASDFGHJK-AUG1"
1531 "name": "POIUY123-POI22"
1535 "name": "SAIT1AA9-SAA13"
1539 "name": "BHYTFRF3-BHY17"
1543 "name": "HOSTPROF-LIS1"
1547 "name": "ZXCVBNMK-SIP1"
1551 "name": "TEESTAAI-ATL43"
1555 "name": "FORLOAAJ-ATL64"
1559 "name": "TESAAISA-TAT33"
1563 "name": "INDIPUNE-RAD10"
1567 "name": "BHYTFRY4-RTW5"
1571 "name": "KSJKKKKK-JGS1"
1575 "name": "TEESTAAI-ATL43"
1579 "name": "LEIWANGW-WAN1"
1583 "name": "ATLSANAB-ATL44"
1587 "name": "BHYTFRk4-RTD2"
1591 "name": "ORFLMANA-NIR1"
1595 "name": "SANAAIRE-ATL75"
1599 "name": "QWERTYUI-NUM1"
1603 "name": "MDTWNJ21-hvf32"
1607 "name": "BHYTFRZ6-RTZ4"
1611 "name": "ATLSANAC-ATL56"
1615 "name": "AMSTNLBW-AMS1"
1619 "name": "AMSTERNL-RCT1"
1623 "name": "ORFLMATT-JAN1"
1627 "name": "TESAAISA-ABC14"
1631 "name": "TESAAISD-TAT37"
1635 "name": "MICHIGAN-MIC54"
1639 "name": "ATLSANAI-ABC11"
1643 "name": "AMDOCS01-AMF11"
1647 "name": "ATLSANEW-ATL63"
1651 "name": "ATLSECIA-ABC12"
1655 "name": "MDTWNJ21-hvf20"
1659 "name": "AAITESAN-ABC15"
1663 "name": "AVTRFLHD-AVT1"
1667 "name": "ATLSANAI-ATL34"
1670 "categoryParameters": {
1671 "owningEntityList": [
1677 "id": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
1678 "name": "WayneHolland"
1699 "lineOfBusinessList": [
1720 "type": "[LCP_REGIONS_AND_TENANTS] Update",
1723 "id": "CAR_2020_ER",
1724 "name": "CAR_2020_ER",
1728 "id": "21014aa2-526b-11e6-beb8-9e71128cae77",
1729 "name": "JULIO ERICKSON",
1730 "isPermitted": false
1733 "id": "DHV1707-TestSubscriber-2",
1734 "name": "DALE BRIDGES",
1735 "isPermitted": false
1738 "id": "DHV1707-TestSubscriber-1",
1739 "name": "LLOYD BRIDGES",
1740 "isPermitted": false
1743 "id": "jimmy-example",
1744 "name": "JimmyExampleCust-20161102",
1745 "isPermitted": false
1748 "id": "jimmy-example2",
1749 "name": "JimmyExampleCust-20161103",
1750 "isPermitted": false
1753 "id": "ERICA5779-TestSub-PWT-102",
1754 "name": "ERICA5779-TestSub-PWT-102",
1755 "isPermitted": false
1758 "id": "ERICA5779-TestSub-PWT-101",
1759 "name": "ERICA5779-TestSub-PWT-101",
1760 "isPermitted": false
1763 "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
1765 "isPermitted": false
1768 "id": "ERICA5779-Subscriber-4",
1769 "name": "ERICA5779-Subscriber-5",
1770 "isPermitted": false
1773 "id": "ERICA5779-TestSub-PWT-103",
1774 "name": "ERICA5779-TestSub-PWT-103",
1775 "isPermitted": false
1778 "id": "ERICA5779-Subscriber-2",
1779 "name": "ERICA5779-Subscriber-2",
1780 "isPermitted": false
1783 "id": "e433710f-9217-458d-a79d-1c7aff376d89",
1784 "name": "SILVIA ROBBINS",
1788 "id": "ERICA5779-Subscriber-3",
1789 "name": "ERICA5779-Subscriber-3",
1790 "isPermitted": false
1793 "id": "31739f3e-526b-11e6-beb8-9e71128cae77",
1794 "name": "CRAIG/ROBERTS",
1795 "isPermitted": false
1802 class ActivatedRouteMock<T>{
1805 serviceModelId : '6e59c5de-f052-46fa-aa7e-2fca9d674c44'
1810 class MockFeatureFlagsService {}
1812 describe('Generic Form popup Service', () => {
1814 let service: GenericFormPopupService;
1815 let httpMock: HttpTestingController;
1816 let form : FormGroup;
1817 let fb : FormBuilder;
1818 let netwokPopupService : NetworkPopupService;
1819 let vfModulePopupService : VfModulePopuopService;
1820 let servicePopupService : ServicePopupService;
1821 let _aaiService : AaiService;
1822 let _activatedRoute : ActivatedRoute;
1824 beforeAll(done => (async () => {
1825 TestBed.configureTestingModule({
1826 imports: [HttpClientTestingModule],
1827 providers: [GenericFormPopupService,
1830 ServicePopupService,
1831 BasicControlGenerator,
1832 ServiceControlGenerator,
1835 DefaultDataGeneratorService,
1838 NetworkPopupService,
1839 NetworkControlGenerator,
1840 VfModulePopuopService,
1841 VfModuleControlGenerator,
1842 {provide:FeatureFlagsService, useClass: MockFeatureFlagsService},
1843 {provide: ActivatedRoute, useClass: ActivatedRouteMock},
1844 {provide: NgRedux, useClass: MockAppStore}]
1846 await TestBed.compileComponents();
1848 injector = getTestBed();
1849 service = injector.get(GenericFormPopupService);
1850 httpMock = injector.get(HttpTestingController);
1851 fb = injector.get(FormBuilder);
1852 netwokPopupService = injector.get(NetworkPopupService);
1853 vfModulePopupService = injector.get(VfModulePopuopService);
1854 servicePopupService = injector.get(ServicePopupService);
1855 _aaiService = injector.get(AaiService);
1856 _activatedRoute = injector.get(ActivatedRoute);
1858 })().then(done).catch(done.fail));
1861 test('VL: getGenericFormDetails should return FormPopupDetails', () => {
1862 let uuidData : UUIDData = <any>{
1864 serviceId : '6e59c5de-f052-46fa-aa7e-2fca9d674c44',
1865 networkId : 'ExtVL 0',
1866 networkStoreKey : 'ExtVL 0',
1867 popupService : netwokPopupService
1869 let node : ITreeNode = <any>{data : {} };
1871 jest.spyOn(uuidData.popupService ,'getGenericFormPopupDetails');
1872 service.getGenericFormDetails(uuidData, node,true);
1874 expect(uuidData.popupService.getGenericFormPopupDetails).toHaveBeenCalledTimes(1);
1875 expect(uuidData.popupService.getGenericFormPopupDetails).toHaveBeenCalledWith(uuidData['serviceId'],
1876 uuidData['networkId'],
1877 uuidData['networkStoreKey'],
1884 test('VFmodule: getGenericFormDetails should return FormPopupDetails', () => {
1885 let uuidData : UUIDData = <any>{
1887 serviceId : '6e59c5de-f052-46fa-aa7e-2fca9d674c44',
1888 vnfStoreKey : 'VF_vGeraldine 0',
1889 vFModuleStoreKey : 'vf_vgeraldine0..VfVgeraldine..vflorence_vlc..module-1',
1890 popupService : vfModulePopupService
1892 let node : ITreeNode = <any>{data : {}};
1894 spyOn(uuidData.popupService ,'getGenericFormPopupDetails');
1895 service.getGenericFormDetails(uuidData, node,true);
1897 expect(uuidData.popupService.getGenericFormPopupDetails).toHaveBeenCalledTimes(1)
1898 expect(uuidData.popupService.getGenericFormPopupDetails).toHaveBeenCalledWith(
1899 uuidData['serviceId'],
1900 uuidData['vnfStoreKey'],
1901 uuidData['vFModuleStoreKey'],
1909 test('service: getGenericFormDetails should return FormPopupDetails', () => {
1910 let uuidData : UUIDData = <any>{
1912 serviceId : '6e59c5de-f052-46fa-aa7e-2fca9d674c44',
1913 popupService : servicePopupService
1915 let node : ITreeNode = <any>{data : {}};
1917 jest.spyOn(uuidData.popupService ,'getGenericFormPopupDetails');
1918 service.getGenericFormDetails(uuidData, node,true);
1920 expect(uuidData.popupService.getGenericFormPopupDetails).toHaveBeenCalledTimes(1);
1921 expect(uuidData.popupService.getGenericFormPopupDetails).toHaveBeenCalledWith(
1922 uuidData['serviceId'],
1932 test('initReduxOnCreateNewService',() => {
1933 jest.spyOn(_aaiService, 'getServiceModelById');
1934 service.initReduxOnCreateNewService();