When feature toggle is active then SDNC preload files is enable.
[vid.git] / vid-webpack-master / src / app / shared / components / genericForm / formControlsServices / vfModuleGenerator / vfModule.control.generator.spec.ts
index fbcca06..49deb3a 100644 (file)
@@ -1,10 +1,10 @@
 import {getTestBed, TestBed} from '@angular/core/testing';
 import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
 import {NgRedux} from '@angular-redux/store';
-import {BasicControlGenerator} from "../basic.control.generator";
+import {ControlGeneratorUtil, SDN_C_PRE_LOAD} from "../control.generator.util.service";
 import {AaiService} from "../../../../services/aaiService/aai.service";
 import {GenericFormService} from "../../generic-form.service";
-import {FormBuilder} from "@angular/forms";
+import {FormBuilder, FormControl, FormGroup} from "@angular/forms";
 import {LogService} from "../../../../utils/log/log.service";
 import {
   FormControlModel,
@@ -13,6 +13,11 @@ import {
 } from "../../../../models/formControlModels/formControl.model";
 import {FormControlNames, VfModuleControlGenerator} from "./vfModule.control.generator";
 import {FeatureFlagsService} from "../../../../services/featureFlag/feature-flags.service";
+import {VfModuleInstance} from "../../../../models/vfModuleInstance";
+import {VfModule} from "../../../../models/vfModule";
+import {SharedControllersService} from "../sharedControlles/shared.controllers.service";
+import {AppState} from "../../../../store/reducers";
+import {SharedTreeService} from "../../../../../drawingBoard/service-planning/objectsToTree/shared.tree.service";
 
 class MockAppStore<T> {
   getState() {
@@ -25,9 +30,6 @@ class MockAppStore<T> {
           "FLAG_FABRIC_CONFIGURATION_ASSIGNMENTS": true,
           "FLAG_SHOW_VERIFY_SERVICE": false,
           "FLAG_SERVICE_MODEL_CACHE": true,
-          "CREATE_INSTANCE_TEST": false,
-          "FLAG_SETTING_DEFAULTS_IN_DRAWING_BOARD": false,
-          "EMPTY_DRAWING_BOARD_TEST": false,
           "FLAG_ADD_MSO_TESTAPI_FIELD": true
         },
         "type": "[FLAGS] Update"
@@ -529,128 +531,8 @@ class MockAppStore<T> {
                 "isPermitted": true
               },
               {
-                "id": "229bcdc6eaeb4ca59d55221141d01f8e",
-                "name": "AIN Web Tool-15-D-STTest2",
-                "isPermitted": true
-              },
-              {
-                "id": "1178612d2b394be4834ad77f567c0af2",
-                "name": "AIN Web Tool-15-D-SSPtestcustome",
-                "isPermitted": true
-              },
-              {
-                "id": "19c5ade915eb461e8af52fb2fd8cd1f2",
-                "name": "AIN Web Tool-15-D-UncheckedEcopm",
-                "isPermitted": true
-              },
-              {
-                "id": "de007636e25249238447264a988a927b",
-                "name": "AIN Web Tool-15-D-dfsdf",
-                "isPermitted": true
-              },
-              {
-                "id": "62f29b3613634ca6a3065cbe0e020c44",
-                "name": "AIN/SMS-16-D-Multiservices1",
-                "isPermitted": true
-              },
-              {
-                "id": "649289e30d3244e0b48098114d63c2aa",
-                "name": "AIN Web Tool-15-D-SSPST66",
-                "isPermitted": true
-              },
-              {
-                "id": "3f21eeea6c2c486bba31dab816c05a32",
-                "name": "AIN Web Tool-15-D-ASSPST47",
-                "isPermitted": true
-              },
-              {
-                "id": "f60ce21d3ee6427586cff0d22b03b773",
-                "name": "CESAR-100-D-sspjg67246",
-                "isPermitted": true
-              },
-              {
-                "id": "8774659e425f479895ae091bb5d46560",
-                "name": "CESAR-100-D-sspjg68359",
-                "isPermitted": true
-              },
-              {
-                "id": "624eb554b0d147c19ff8885341760481",
-                "name": "AINWebTool-15-D-iftach",
-                "isPermitted": true
-              },
-              {
-                "id": "214f55f5fc414c678059c383b03e4962",
-                "name": "CESAR-100-D-sspjg612401",
-                "isPermitted": true
-              },
-              {
-                "id": "c90666c291664841bb98e4d981ff1db5",
-                "name": "CESAR-100-D-sspjg621340",
-                "isPermitted": true
-              },
-              {
-                "id": "ce5b6bc5c7b348e1bf4b91ac9a174278",
-                "name": "sspjg621351cloned",
-                "isPermitted": true
-              },
-              {
-                "id": "b386b768a3f24c8e953abbe0b3488c02",
-                "name": "AINWebTool-15-D-eteancomp",
-                "isPermitted": true
-              },
-              {
-                "id": "dc6c4dbfd225474e9deaadd34968646c",
-                "name": "AINWebTool-15-T-SPFET",
-                "isPermitted": true
-              },
-              {
-                "id": "02cb5030e9914aa4be120bd9ed1e19eb",
-                "name": "AINWebTool-15-X-eeweww",
-                "isPermitted": true
-              },
-              {
-                "id": "f2f3830e4c984d45bcd00e1a04158a79",
-                "name": "CESAR-100-D-spjg61909",
-                "isPermitted": true
-              },
-              {
-                "id": "05b91bd5137f4929878edd965755c06d",
-                "name": "CESAR-100-D-sspjg621512cloned",
-                "isPermitted": true
-              },
-              {
-                "id": "7002fbe8482d4a989ddf445b1ce336e0",
-                "name": "AINWebTool-15-X-vdr",
-                "isPermitted": true
-              },
-              {
-                "id": "4008522be43741dcb1f5422022a2aa0b",
-                "name": "AINWebTool-15-D-ssasa",
-                "isPermitted": true
-              },
-              {
-                "id": "f44e2e96a1b6476abfda2fa407b00169",
-                "name": "AINWebTool-15-D-PFNPT",
-                "isPermitted": true
-              },
-              {
-                "id": "b69a52bec8a84669a37a1e8b72708be7",
-                "name": "AINWebTool-15-X-vdre",
-                "isPermitted": true
-              },
-              {
-                "id": "fac7d9fd56154caeb9332202dcf2969f",
-                "name": "AINWebTool-15-X-NONPODECOMP",
-                "isPermitted": true
-              },
-              {
-                "id": "2d34d8396e194eb49969fd61ffbff961",
-                "name": "DN5242-Nov16-T5",
-                "isPermitted": true
-              },
-              {
-                "id": "cb42a77ff45b48a8b8deb83bb64acc74",
-                "name": "ro-T11",
+                "id": "d0a3e3f2964542259d155a81c41aadc3",
+                "name": "test-hvf6-09",
                 "isPermitted": true
               },
               {
@@ -658,16 +540,6 @@ class MockAppStore<T> {
                 "name": "ro-T112",
                 "isPermitted": true
               },
-              {
-                "id": "4914ab0ab3a743e58f0eefdacc1dde77",
-                "name": "DN5242-Nov21-T1",
-                "isPermitted": true
-              },
-              {
-                "id": "d0a3e3f2964542259d155a81c41aadc3",
-                "name": "test-hvf6-09",
-                "isPermitted": true
-              },
               {
                 "id": "cbb99fe4ada84631b7baf046b6fd2044",
                 "name": "DN5242-Nov16-T3",
@@ -900,754 +772,6 @@ class MockAppStore<T> {
             "id": "YYY1",
             "name": "UUUAIAAI-YYY1"
           },
-          {
-            "id": "BAN1",
-            "name": "VSDKYUTP-BAN1"
-          },
-          {
-            "id": "DKJ1",
-            "name": "DKJSJDKA-DKJ1"
-          },
-          {
-            "id": "MCS1",
-            "name": "ASACMAMS-MCS1"
-          },
-          {
-            "id": "UIO1",
-            "name": "uioclli1-UIO1"
-          },
-          {
-            "id": "RAJ1",
-            "name": "YGBIJNLQ-RAJ1"
-          },
-          {
-            "id": "OPA1",
-            "name": "opaclli1-OPA1"
-          },
-          {
-            "id": "SDE1",
-            "name": "ZXCVBNMA-SDE1"
-          },
-          {
-            "id": "VEN2",
-            "name": "FGHJUHIL-VEN2"
-          },
-          {
-            "id": "ORL1",
-            "name": "ORLDFLMA-ORL1"
-          },
-          {
-            "id": "JAD1",
-            "name": "JADECLLI-JAD1"
-          },
-          {
-            "id": "ZXL1",
-            "name": "LWLWCANN-ZXL1"
-          },
-          {
-            "id": "CKL1",
-            "name": "CLKSKCKK-CKL1"
-          },
-          {
-            "id": "SDF1",
-            "name": "sdfclli1-SDF1"
-          },
-          {
-            "id": "RAD1",
-            "name": "RADICAL1-RAD1"
-          },
-          {
-            "id": "KIT1",
-            "name": "BHYJFGLN-KIT1"
-          },
-          {
-            "id": "REL1",
-            "name": "INGERFGT-REL1"
-          },
-          {
-            "id": "JNL1",
-            "name": "CJALSDAC-JNL1"
-          },
-          {
-            "id": "OLK1",
-            "name": "OLKOLKLS-OLK1"
-          },
-          {
-            "id": "CHI1",
-            "name": "CHILLIWE-CHI1"
-          },
-          {
-            "id": "UUU4",
-            "name": "UUUAAAUU-UUU4"
-          },
-          {
-            "id": "TUF1",
-            "name": "TUFCLLI1-TUF1"
-          },
-          {
-            "id": "KJN1",
-            "name": "CKALDKSA-KJN1"
-          },
-          {
-            "id": "SAM1",
-            "name": "SNDGCA64-SAN1"
-          },
-          {
-            "id": "SCK1",
-            "name": "SCKSCKSK-SCK1"
-          },
-          {
-            "id": "HJH1",
-            "name": "AOEEQQQD-HJH1"
-          },
-          {
-            "id": "HGD1",
-            "name": "SDFQWHGD-HGD1"
-          },
-          {
-            "id": "KOR1",
-            "name": "HYFLNBVT-KOR1"
-          },
-          {
-            "id": "ATL43",
-            "name": "AICLOCID-ATL43"
-          },
-          {
-            "id": "ATL54",
-            "name": "AICFTAAI-ATL54"
-          },
-          {
-            "id": "ATL66",
-            "name": "CLLIAAII-ATL66"
-          },
-          {
-            "id": "VEL1",
-            "name": "BNMLKUIK-VEL1"
-          },
-          {
-            "id": "ICC1",
-            "name": "SANJITAT-ICC1"
-          },
-          {
-            "id": "MNT11",
-            "name": "WSXEFBTH-MNT11"
-          },
-          {
-            "id": "DEF2",
-            "name": "WSBHGTYL-DEF2"
-          },
-          {
-            "id": "MAD11",
-            "name": "SDFQWGKL-MAD11"
-          },
-          {
-            "id": "OLG1",
-            "name": "OLHOLHOL-OLG1"
-          },
-          {
-            "id": "GAR1",
-            "name": "NGFVSJKO-GAR1"
-          },
-          {
-            "id": "SAN22",
-            "name": "GNVLSCTL-SAN22"
-          },
-          {
-            "id": "HRG1",
-            "name": "HRGHRGGS-HRG1"
-          },
-          {
-            "id": "JCS1",
-            "name": "JCSJSCJS-JCS1"
-          },
-          {
-            "id": "DHA12",
-            "name": "WSXEDECF-DHA12"
-          },
-          {
-            "id": "HJE1",
-            "name": "AOEEWWWD-HJE1"
-          },
-          {
-            "id": "NCA1",
-            "name": "NCANCANN-NCA1"
-          },
-          {
-            "id": "IOP1",
-            "name": "iopclli1-IOP1"
-          },
-          {
-            "id": "RTY1",
-            "name": "rtyclli1-RTY1"
-          },
-          {
-            "id": "KAP1",
-            "name": "HIOUYTRQ-KAP1"
-          },
-          {
-            "id": "ZEN1",
-            "name": "ZENCLLI1-ZEN1"
-          },
-          {
-            "id": "HKA1",
-            "name": "JAKHLASS-HKA1"
-          },
-          {
-            "id": "CQK1",
-            "name": "CQKSCAKK-CQK1"
-          },
-          {
-            "id": "SAI1",
-            "name": "UBEKQLPD-SAI1"
-          },
-          {
-            "id": "ERT1",
-            "name": "ertclli1-ERT1"
-          },
-          {
-            "id": "IBB1",
-            "name": "PLMKOIJU-IBB1"
-          },
-          {
-            "id": "TIR2",
-            "name": "PLKINHYI-TIR2"
-          },
-          {
-            "id": "HSD1",
-            "name": "CHASKCDS-HSD1"
-          },
-          {
-            "id": "SLF78",
-            "name": "SDCTLFN1-SLF78"
-          },
-          {
-            "id": "SEE78",
-            "name": "SDCTEEE4-SEE78"
-          },
-          {
-            "id": "SAN13",
-            "name": "TOKYJPFA-SAN13"
-          },
-          {
-            "id": "SAA78",
-            "name": "SDCTAAA1-SAA78"
-          },
-          {
-            "id": "LUC1",
-            "name": "ATLDFGYC-LUC1"
-          },
-          {
-            "id": "AMD13",
-            "name": "MEMATLAN-AMD13"
-          },
-          {
-            "id": "TOR1",
-            "name": "TOROONXN-TOR1"
-          },
-          {
-            "id": "QWE1",
-            "name": "QWECLLI1-QWE1"
-          },
-          {
-            "id": "ZOG1",
-            "name": "ZOGASTRO-ZOG1"
-          },
-          {
-            "id": "CAL33",
-            "name": "CALIFORN-CAL33"
-          },
-          {
-            "id": "SHH78",
-            "name": "SDIT1HHH-SHH78"
-          },
-          {
-            "id": "DSA1",
-            "name": "LKJHGFDS-DSA1"
-          },
-          {
-            "id": "CLG1",
-            "name": "CLGRABAD-CLG1"
-          },
-          {
-            "id": "BNA1",
-            "name": "BNARAGBK-BNA1"
-          },
-          {
-            "id": "ATL84",
-            "name": "CANTTCOC-ATL84"
-          },
-          {
-            "id": "APP1",
-            "name": "WBHGTYUI-APP1"
-          },
-          {
-            "id": "RJN1",
-            "name": "RJNRBZAW-RJN1"
-          },
-          {
-            "id": "EHH78",
-            "name": "SDCSHHH5-EHH78"
-          },
-          {
-            "id": "mac10",
-            "name": "PKGTESTF-mac10"
-          },
-          {
-            "id": "SXB78",
-            "name": "SDCTGXB1-SXB78"
-          },
-          {
-            "id": "SAX78",
-            "name": "SDCTAXG1-SAX78"
-          },
-          {
-            "id": "SYD1",
-            "name": "SYDNAUBV-SYD1"
-          },
-          {
-            "id": "TOK1",
-            "name": "TOKYJPFA-TOK1"
-          },
-          {
-            "id": "KGM2",
-            "name": "KGMTNC20-KGM2"
-          },
-          {
-            "id": "DCC1b",
-            "name": "POIUYTGH-DCC1b"
-          },
-          {
-            "id": "SKK78",
-            "name": "SDCTKKK1-SKK78"
-          },
-          {
-            "id": "SGG78",
-            "name": "SDCTGGG1-SGG78"
-          },
-          {
-            "id": "SJJ78",
-            "name": "SDCTJJJ1-SJJ78"
-          },
-          {
-            "id": "SBX78",
-            "name": "SDCTBXG1-SBX78"
-          },
-          {
-            "id": "LAG1",
-            "name": "LARGIZON-LAG1"
-          },
-          {
-            "id": "IAA1",
-            "name": "QAZXSWED-IAA1"
-          },
-          {
-            "id": "POI1",
-            "name": "PLMNJKIU-POI1"
-          },
-          {
-            "id": "LAG1a",
-            "name": "LARGIZON-LAG1a"
-          },
-          {
-            "id": "PBL1",
-            "name": "PBLAPBAI-PBL1"
-          },
-          {
-            "id": "LAG45",
-            "name": "LARGIZON-LAG1a"
-          },
-          {
-            "id": "MAR1",
-            "name": "MNBVCXZM-MAR1"
-          },
-          {
-            "id": "HST70",
-            "name": "HSTNTX70-HST70"
-          },
-          {
-            "id": "DCC1a",
-            "name": "POIUYTGH-DCC1a"
-          },
-          {
-            "id": "TOL1",
-            "name": "TOLDOH21-TOL1"
-          },
-          {
-            "id": "LON1",
-            "name": "LONEENCO-LON1"
-          },
-          {
-            "id": "SJU78",
-            "name": "SDIT1JUB-SJU78"
-          },
-          {
-            "id": "STN27",
-            "name": "HSTNTX01-STN27"
-          },
-          {
-            "id": "SSW56",
-            "name": "ss8126GT-SSW56"
-          },
-          {
-            "id": "SBB78",
-            "name": "SDIT1BBB-SBB78"
-          },
-          {
-            "id": "DCC3",
-            "name": "POIUYTGH-DCC3"
-          },
-          {
-            "id": "GNV1",
-            "name": "GNVLSCTL-GNV1"
-          },
-          {
-            "id": "WAS1",
-            "name": "WASHDCSW-WAS1"
-          },
-          {
-            "id": "TOY1",
-            "name": "TORYONNZ-TOY1"
-          },
-          {
-            "id": "STT1",
-            "name": "STTLWA02-STT1"
-          },
-          {
-            "id": "STG1",
-            "name": "STTGGE62-STG1"
-          },
-          {
-            "id": "SLL78",
-            "name": "SDCTLLL1-SLL78"
-          },
-          {
-            "id": "SBU78",
-            "name": "SDIT1BUB-SBU78"
-          },
-          {
-            "id": "ATL2",
-            "name": "ATLNGANW-ATL2"
-          },
-          {
-            "id": "BOT1",
-            "name": "BOTHWAKY-BOT1"
-          },
-          {
-            "id": "SNG1",
-            "name": "SNGPSIAU-SNG1"
-          },
-          {
-            "id": "NYC1",
-            "name": "NYCMNY54-NYC1"
-          },
-          {
-            "id": "LAG1b",
-            "name": "LARGIZON-LAG1b"
-          },
-          {
-            "id": "AMD15",
-            "name": "AMDFAA01-AMD15"
-          },
-          {
-            "id": "SNA1",
-            "name": "SNANTXCA-SNA1"
-          },
-          {
-            "id": "PLT1",
-            "name": "PLTNCA60-PLT1"
-          },
-          {
-            "id": "TLP1",
-            "name": "TLPNXM18-TLP1"
-          },
-          {
-            "id": "SDD81",
-            "name": "SAIT1DD6-SDD81"
-          },
-          {
-            "id": "DCC1",
-            "name": "POIUYTGH-DCC1"
-          },
-          {
-            "id": "DCC2",
-            "name": "POIUYTGH-DCC2"
-          },
-          {
-            "id": "OKC1",
-            "name": "OKCBOK55-OKC1"
-          },
-          {
-            "id": "PAR1",
-            "name": "PARSFRCG-PAR1"
-          },
-          {
-            "id": "TES36",
-            "name": "ABCEETES-TES36"
-          },
-          {
-            "id": "COM1",
-            "name": "PLMKOPIU-COM1"
-          },
-          {
-            "id": "ANI1",
-            "name": "ATLNGTRE-ANI1"
-          },
-          {
-            "id": "SDG78",
-            "name": "SDIT1BDG-SDG78"
-          },
-          {
-            "id": "mac20",
-            "name": "PKGTESTF-mac20"
-          },
-          {
-            "id": "DSF45",
-            "name": "DSFBG123-DSF45"
-          },
-          {
-            "id": "HST25",
-            "name": "HSTNTX01-HST25"
-          },
-          {
-            "id": "AMD18",
-            "name": "AUDIMA01-AMD18"
-          },
-          {
-            "id": "SAA80",
-            "name": "SAIT9AA3-SAA80"
-          },
-          {
-            "id": "SSA56",
-            "name": "SSIT2AA7-SSA56"
-          },
-          {
-            "id": "SDD82",
-            "name": "SAIT1DD9-SDD82"
-          },
-          {
-            "id": "JCV1",
-            "name": "JCVLFLBW-JCV1"
-          },
-          {
-            "id": "SUL2",
-            "name": "WERTYUJK-SUL2"
-          },
-          {
-            "id": "PUR1",
-            "name": "purelyde-PUR1"
-          },
-          {
-            "id": "FDE55",
-            "name": "FDERT555-FDE55"
-          },
-          {
-            "id": "SITE",
-            "name": "LONEENCO-SITE"
-          },
-          {
-            "id": "ATL1",
-            "name": "ATLNGAMA-ATL1"
-          },
-          {
-            "id": "JUL1",
-            "name": "ZXCVBNMM-JUL1"
-          },
-          {
-            "id": "TAT34",
-            "name": "TESAAISB-TAT34"
-          },
-          {
-            "id": "XCP12",
-            "name": "CHKGH123-XCP12"
-          },
-          {
-            "id": "RAI1",
-            "name": "poiuytre-RAI1"
-          },
-          {
-            "id": "HPO1",
-            "name": "ATLNGAUP-HPO1"
-          },
-          {
-            "id": "KJF12",
-            "name": "KJFDH123-KJF12"
-          },
-          {
-            "id": "SCC80",
-            "name": "SAIT9CC3-SCC80"
-          },
-          {
-            "id": "SAA12",
-            "name": "SAIT9AF8-SAA12"
-          },
-          {
-            "id": "SAA14",
-            "name": "SAIT1AA9-SAA14"
-          },
-          {
-            "id": "ATL35",
-            "name": "TTESSAAI-ATL35"
-          },
-          {
-            "id": "CWY1",
-            "name": "CWYMOWBS-CWY1"
-          },
-          {
-            "id": "ATL76",
-            "name": "TELEPAAI-ATL76"
-          },
-          {
-            "id": "DSL12",
-            "name": "DSLFK242-DSL12"
-          },
-          {
-            "id": "ATL53",
-            "name": "AAIATLTE-ATL53"
-          },
-          {
-            "id": "SAA11",
-            "name": "SAIT9AA2-SAA11"
-          },
-          {
-            "id": "ATL62",
-            "name": "TESSASCH-ATL62"
-          },
-          {
-            "id": "AUG1",
-            "name": "ASDFGHJK-AUG1"
-          },
-          {
-            "id": "POI22",
-            "name": "POIUY123-POI22"
-          },
-          {
-            "id": "SAA13",
-            "name": "SAIT1AA9-SAA13"
-          },
-          {
-            "id": "BHY17",
-            "name": "BHYTFRF3-BHY17"
-          },
-          {
-            "id": "LIS1",
-            "name": "HOSTPROF-LIS1"
-          },
-          {
-            "id": "SIP1",
-            "name": "ZXCVBNMK-SIP1"
-          },
-          {
-            "id": "ATL99",
-            "name": "TEESTAAI-ATL43"
-          },
-          {
-            "id": "ATL64",
-            "name": "FORLOAAJ-ATL64"
-          },
-          {
-            "id": "TAT33",
-            "name": "TESAAISA-TAT33"
-          },
-          {
-            "id": "RAD10",
-            "name": "INDIPUNE-RAD10"
-          },
-          {
-            "id": "RTW5",
-            "name": "BHYTFRY4-RTW5"
-          },
-          {
-            "id": "JGS1",
-            "name": "KSJKKKKK-JGS1"
-          },
-          {
-            "id": "ATL98",
-            "name": "TEESTAAI-ATL43"
-          },
-          {
-            "id": "WAN1",
-            "name": "LEIWANGW-WAN1"
-          },
-          {
-            "id": "ATL44",
-            "name": "ATLSANAB-ATL44"
-          },
-          {
-            "id": "RTD2",
-            "name": "BHYTFRk4-RTD2"
-          },
-          {
-            "id": "NIR1",
-            "name": "ORFLMANA-NIR1"
-          },
-          {
-            "id": "ATL75",
-            "name": "SANAAIRE-ATL75"
-          },
-          {
-            "id": "NUM1",
-            "name": "QWERTYUI-NUM1"
-          },
-          {
-            "id": "hvf32",
-            "name": "MDTWNJ21-hvf32"
-          },
-          {
-            "id": "RTZ4",
-            "name": "BHYTFRZ6-RTZ4"
-          },
-          {
-            "id": "ATL56",
-            "name": "ATLSANAC-ATL56"
-          },
-          {
-            "id": "AMS1",
-            "name": "AMSTNLBW-AMS1"
-          },
-          {
-            "id": "RCT1",
-            "name": "AMSTERNL-RCT1"
-          },
-          {
-            "id": "JAN1",
-            "name": "ORFLMATT-JAN1"
-          },
-          {
-            "id": "ABC14",
-            "name": "TESAAISA-ABC14"
-          },
-          {
-            "id": "TAT37",
-            "name": "TESAAISD-TAT37"
-          },
-          {
-            "id": "MIC54",
-            "name": "MICHIGAN-MIC54"
-          },
-          {
-            "id": "ABC11",
-            "name": "ATLSANAI-ABC11"
-          },
-          {
-            "id": "AMF11",
-            "name": "AMDOCS01-AMF11"
-          },
-          {
-            "id": "ATL63",
-            "name": "ATLSANEW-ATL63"
-          },
-          {
-            "id": "ABC12",
-            "name": "ATLSECIA-ABC12"
-          },
-          {
-            "id": "hvf20",
-            "name": "MDTWNJ21-hvf20"
-          },
-          {
-            "id": "ABC15",
-            "name": "AAITESAN-ABC15"
-          },
           {
             "id": "AVT1",
             "name": "AVTRFLHD-AVT1"
@@ -1796,16 +920,19 @@ describe('VFModule Control Generator', () => {
   let injector;
   let service: VfModuleControlGenerator;
   let httpMock: HttpTestingController;
+  let store : NgRedux<AppState>;
 
   beforeAll(done => (async () => {
     TestBed.configureTestingModule({
       imports: [HttpClientTestingModule],
       providers: [VfModuleControlGenerator,
         GenericFormService,
-        BasicControlGenerator,
+        SharedControllersService,
+        ControlGeneratorUtil,
         AaiService,
         FormBuilder,
         LogService,
+        SharedTreeService,
         {provide:FeatureFlagsService, useClass: MockFeatureFlagsService},
         {provide: NgRedux, useClass: MockAppStore}]
     });
@@ -1814,6 +941,7 @@ describe('VFModule Control Generator', () => {
     injector = getTestBed();
     service = injector.get(VfModuleControlGenerator);
     httpMock = injector.get(HttpTestingController);
+    store = injector.get(NgRedux);
     jest.spyOn(console, 'error');
 
   })().then(done).catch(done.fail));
@@ -1856,6 +984,46 @@ describe('VFModule Control Generator', () => {
     }
   });
 
+
+  const cases = [
+    [true, true, true, null, true, true],
+    [true, true, false, null, true, false], //Scenario to check that UI field doesn't appear.
+    [false, true, false, "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0_vol", true, true],
+    [false, true, true, "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0_vol", true, true],
+    [false, false, true, null, false, false],
+  ];
+
+  test.each(cases)('Given Ecomp Gen Name: %p and VG Name %p , ' +
+    'is A La Carte %p - expect the name value for VG to be %p , ' +
+    'VG Name should be defined: %p , and should the field be visible: %p',
+    (ecomGenName, vGName, isALaCarte, expectedName, shouldWeVerifyDefinitionOfField, isVisible) => {
+    const moduleName = "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0";
+    service.vfModuleModel = new VfModule();
+    service.vfModuleModel.name = moduleName;
+    service.vfModuleModel.volumeGroupAllowed = vGName;
+    let vnf : Object =  {isEcompGeneratedNaming: ecomGenName};
+    const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
+    const vnfStoreKey: string = 'VF_vGeraldine 0';
+    const uuidData: Object = {
+      modelName :  moduleName,
+      vFModuleStoreKey : "vf_vgeraldine0..VfVgeraldine..base_vflorence..module-0vmvzo",
+    };
+    const vfModuleModel :VfModuleInstance = service.getVfModuleInstance(serviceId, vnfStoreKey, uuidData,true);
+    let existingMatchingFieldInForm = buildVfModuleFormControlModel(vfModuleModel ,serviceId, vnf, isALaCarte);
+      if (shouldWeVerifyDefinitionOfField) {
+        expect(existingMatchingFieldInForm).toBeDefined();
+        expect(existingMatchingFieldInForm.value).toEqual(expectedName);
+        expect(existingMatchingFieldInForm.isVisible).toEqual(isVisible);
+      } else {
+        expect(existingMatchingFieldInForm).toBeUndefined();
+      }
+    });
+
+  let buildVfModuleFormControlModel = function(vfModuleModel :any, serviceId: string, vnf, isALaCarte) :FormControlModel {
+    let controls: FormControlModel[] = service.pushInstanceAndVGToForm([], vfModuleModel, serviceId, vnf, isALaCarte);
+    return controls.find(ctrl => ctrl.controlName === FormControlNames.VOLUME_GROUP_NAME);
+  };
+
   test('getMacroFormControls check for mandatory controls', () => {
     const serviceId: string = "6e59c5de-f052-46fa-aa7e-2fca9d674c44";
     const vnfStoreKey: string = 'VF_vGeraldine 0';
@@ -1900,7 +1068,7 @@ describe('VFModule Control Generator', () => {
       FormControlNames.LEGACY_REGION,
       FormControlNames.TENANT_ID,
       FormControlNames.ROLLBACK_ON_FAILURE,
-      FormControlNames.SDN_C_PRE_LOAD
+      SDN_C_PRE_LOAD,
     ];
 
     expect(controls.length).toEqual(7);
@@ -1935,7 +1103,7 @@ describe('VFModule Control Generator', () => {
       FormControlNames.TENANT_ID, // TENANT_ID must be after LEGACY_REGION
       FormControlNames.LEGACY_REGION,
       FormControlNames.ROLLBACK_ON_FAILURE,
-      FormControlNames.SDN_C_PRE_LOAD
+      SDN_C_PRE_LOAD,
     ];
 
     for(let i = 0 ; i < orderedControls.length ; i++) {
@@ -1992,12 +1160,36 @@ describe('VFModule Control Generator', () => {
       FormControlNames.LEGACY_REGION,
       FormControlNames.TENANT_ID,
       FormControlNames.ROLLBACK_ON_FAILURE,
-      FormControlNames.SDN_C_PRE_LOAD
+      SDN_C_PRE_LOAD,
     ];
 
     for(let i = 0 ; i < orderedControls.length ; i++) {
       expect(controls[i].controlName).toEqual(orderedControls[i]);
     }
   });
+
+
+  test('when flag is active - response should contains upload file', ()=>{
+    spyOn(store, 'getState').and.returnValue( {
+      "global": {
+        "flags": {
+          "FLAG_2006_VFM_SDNC_PRELOAD_FILES" : true
+        }
+      }
+    });
+
+    const extraContent = service.getSdncExtraContents();
+    console.log("extraContent", extraContent);
+    const uploadFileData = <any>extraContent[0];
+
+    expect(uploadFileData.type).toEqual('UPLOAD_FILE');
+    expect(uploadFileData.dataTestId).toEqual('sdnc_pereload_upload_link');
+    expect(uploadFileData.uploadMethod).toBeDefined();
+    expect(uploadFileData.isDisabled).toBeDefined();
+    expect(uploadFileData.onSuccess).toBeDefined();
+    expect(uploadFileData.onFailed).toBeDefined();
+
+  })
+
 });