X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vid-webpack-master%2Fsrc%2Fapp%2Fshared%2Fcomponents%2FgenericFormPopup%2FgenericFormServices%2FvfModuleUpgrade%2FvfModule.upgrade.popup.service.spec.ts;h=86ec66652a7c4eed382d14b2a6558a8e7a63b638;hb=e4ec69b8a8a179bc095f7e62efc9bbfa94017a5b;hp=2123d6a9fd4fdf730bba59a8f524f272b86e9a8a;hpb=c0c81ece5aee559c9d35c8a9e7c5c24678ae674d;p=vid.git diff --git a/vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popup.service.spec.ts b/vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popup.service.spec.ts index 2123d6a9f..86ec66652 100644 --- a/vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popup.service.spec.ts +++ b/vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popup.service.spec.ts @@ -133,12 +133,12 @@ describe('VFModule popup service', () => { } } - test('get controls should return retainAssignments control with true value', ()=> { - getControlByNameAndCheckValue(UpgradeFormControlNames.RETAIN_ASSIGNMENTS, true, true); + test('get controls should return retainAssignments control with false', ()=> { + getControlByNameAndCheckValue(UpgradeFormControlNames.RETAIN_ASSIGNMENTS, false, true); }); - test('get controls should return retainVolumeGroup control with true value', ()=> { - getControlByNameAndCheckValue(UpgradeFormControlNames.RETAIN_VOLUME_GROUPS, true, true); + test('get controls should return retainVolumeGroup control with false', ()=> { + getControlByNameAndCheckValue(UpgradeFormControlNames.RETAIN_VOLUME_GROUPS, false, true); }); [true, false].forEach(notExistsOnModel => { @@ -149,7 +149,7 @@ describe('VFModule popup service', () => { jest.spyOn(_sharedTreeService, 'isVfModuleCustomizationIdNotExistsOnModel').mockReturnValue(notExistsOnModel); - getControlByNameAndCheckValue(UpgradeFormControlNames.RETAIN_VOLUME_GROUPS, true, notExistsOnModel); + getControlByNameAndCheckValue(UpgradeFormControlNames.RETAIN_VOLUME_GROUPS, false, notExistsOnModel); }); }); @@ -232,7 +232,7 @@ describe('VFModule popup service', () => { }); - test( 'get controls should return usePreload with false value', () => { - getControlByNameAndCheckValue(SDN_C_PRE_LOAD, false, true); + test( 'get controls should return usePreload with true value', () => { + getControlByNameAndCheckValue(SDN_C_PRE_LOAD, true, true); }); });