"trackById": "b0732bed-3ddf-43cc-b193-7f18db84e476",
"isBase": true,
"volumeGroupName": null,
- "retainAssignments": true,
+ "retainAssignments": false,
"sdncPreLoad": false,
"supplementaryFile": null,
"supplementaryFile_hidden": null,
"xbitestmodulereplace0..XbiTestModuleReplace..base_ocg..module-0": {
"b0732bed-3ddf-43cc-b193-7f18db84e476": {
"action": "None_Upgrade",
- "retainAssignments" : true,
+ "retainAssignments" : false,
"sdncPreLoad" : false,
"instanceName": "PST-VfMod-Replace-5-Vfmod",
"instanceId": "b0732bed-3ddf-43cc-b193-7f18db84e476",
}
],
"requestParameters": {
- "retainAssignments": true,
+ "retainAssignments": false,
"usePreload" : false,
"userParams": [],
"testApi": "GR_API"
"platformName": null,
"productFamilyId": null,
"provStatus": null,
- "retainAssignments": true,
+ "retainAssignments": false,
"retainVolumeGroups": true,
"sdncPreLoad": false,
"supplementaryFile": null,
.drawingBoardTreeClickOnContextMenuOptionByName("Upgrade");
// The following is needed when enabling FLAG_2002_VFM_UPGRADE_ADDITIONAL_OPTIONS
- cy.getElementByDataTestsId('retainAssignments').click();
+ //cy.getElementByDataTestsId('retainAssignments').click();
if (shouldVGCheckboxExist) {
cy.getElementByDataTestsId('retainVolumeGroups').click();
}
getControls(serviceId: string, vnfStoreKey: string, vfModuleStoreKey: string, isUpdateMode: boolean): FormControlModel[] {
let result: FormControlModel[] =[
- this.getRetainAssignmentsControl(),
this._sharedControllersService.getSDNCControl(null, true)
];
this.updateFormValueWithSupplementaryFile(form, that);
+form.value[UpgradeFormControlNames.RETAIN_ASSIGNMENTS] = false;
this._store.dispatch(upgradeVFModule(modelName, vnfStoreKey, serviceInstanceId, dynamicModelName));
this._store.dispatch(mergeObjectByPathAction(['serviceInstance', serviceInstanceId, 'vnfs', vnfStoreKey, 'vfModules', modelName, dynamicModelName], form.value));
this._sharedTreeService.upgradeBottomUp(node, serviceInstanceId);
validations: []
})
};
-
- getRetainAssignmentsControl = (): CheckboxFormControl => {
- return new CheckboxFormControl({
- type: FormControlType.CHECKBOX,
- controlName: UpgradeFormControlNames.RETAIN_ASSIGNMENTS,
- displayName: 'Retain Assignments',
- dataTestId: UpgradeFormControlNames.RETAIN_ASSIGNMENTS,
- value: false,
- validations: []
- })
- };
}
}
}
- test('get controls should return retainAssignments control with false', ()=> {
- getControlByNameAndCheckValue(UpgradeFormControlNames.RETAIN_ASSIGNMENTS, false, true);
- });
-
test('get controls should return retainVolumeGroup control with false', ()=> {
getControlByNameAndCheckValue(UpgradeFormControlNames.RETAIN_VOLUME_GROUPS, false, true);
});
}
}
};
-
+form.value['retainAssignments'] = false;
let expectedMergePayload = {
a: "value",
b: "another",
supplementaryFileContent: [{"name": "c", "value": "c"}, {"name": "d", "value": "1"}],
- supplementaryFileName: "name"
+ supplementaryFileName: "name",
+ retainAssignments: false
};
spyOn(store, 'dispatch');