"FLAG_2006_NETWORK_PLATFORM_MULTI_SELECT" :true,
"FLAG_2006_NETWORK_LOB_MULTI_SELECT" : true,
"FLAG_2006_NEW_VIEW_EDIT_BUTTON_IN_INSTANTIATION_STATUS" : true,
- "FLAG_2006_PAUSE_VFMODULE_INSTANTIATION_CREATION" : true
+ "FLAG_2006_PAUSE_VFMODULE_INSTANTIATION_CREATION" : true,
+ "FLAG_2008_PAUSE_INSTANTIATION_ON_VFMODULE_POPUP" : true
}
});
each([
- [true, 5, formControlsWithoutLcpRegionTenantLegacy],
- [false, 8,formControlsWithLcpRegionTenantLegacy]
+ [true, true, 5, formControlsWithoutLcpRegionTenantLegacy],
+ [false, true, 8, formControlsWithLcpRegionTenantLegacy],
+ [true, false, 4, formControlsWithoutLcpRegionTenantLegacy],
+ [false, false, 7, formControlsWithLcpRegionTenantLegacy],
]).
- test('getAlaCarteFormControls should return the correct order of controls', (flag: boolean, controlAmount: number, orderedControls: string[]) => {
- when(mockFeatureFlagsService.getFlagState(Features.FLAG_2006_VFMODULE_TAKES_TENANT_AND_REGION_FROM_VNF)).thenReturn(flag);
+ test('getAlaCarteFormControls should return the correct order of controls', (tenantControls: boolean, pauseControl: boolean, controlAmount: number, orderedControls: string[]) => {
+ when(mockFeatureFlagsService.getFlagState(Features.FLAG_2006_VFMODULE_TAKES_TENANT_AND_REGION_FROM_VNF)).thenReturn(tenantControls);
+ when(mockFeatureFlagsService.getFlagState(Features.FLAG_2008_PAUSE_INSTANTIATION_ON_VFMODULE_POPUP)).thenReturn(pauseControl);
const controls:FormControlModel[] = getAlaCarteFormControls();
expect(controls.length).toEqual(controlAmount);
}
result.push(this._sharedControllersService.getRollbackOnFailureControl(vfModuleInstance));
result.push(this._sharedControllersService.getSDNCControl(vfModuleInstance, false, this.getSdncExtraContents()));
- result.push(this._sharedControllersService.getPauseInstantiation(vfModuleInstance));
+
+ if(this._featureFlagsService.getFlagState(Features.FLAG_2008_PAUSE_INSTANTIATION_ON_VFMODULE_POPUP)){
+ console.log(Features.FLAG_2008_PAUSE_INSTANTIATION_ON_VFMODULE_POPUP);
+ result.push(this._sharedControllersService.getPauseInstantiation(vfModuleInstance));
+ }
if (this.store.getState().global.flags['FLAG_SUPPLEMENTARY_FILE']) {
result = this._basicControlGenerator.concatSupplementaryFile(result, vfModuleInstance);
}
FLAG_2006_VNF_LOB_MULTI_SELECT= 'FLAG_2006_VNF_LOB_MULTI_SELECT',
FLAG_2006_NEW_VIEW_EDIT_BUTTON_IN_INSTANTIATION_STATUS= 'FLAG_2006_NEW_VIEW_EDIT_BUTTON_IN_INSTANTIATION_STATUS',
FLAG_2006_PAUSE_VFMODULE_INSTANTIATION_CREATION = 'FLAG_2006_PAUSE_VFMODULE_INSTANTIATION_CREATION',
+ FLAG_2008_PAUSE_INSTANTIATION_ON_VFMODULE_POPUP = 'FLAG_2008_PAUSE_INSTANTIATION_ON_VFMODULE_POPUP',
}
@Injectable()