Allon Mureinik has posted comments on this change.

Change subject: core: Re-enable AddDiskToVmCommandTest
......................................................................


Patch Set 1:

disagree.

many of these methods that wrap out external resources do hide implementation 
details from the "higher" methods.

E.g.,
performImagesCheckS(vm) makes sense in the context of 
checkIfImageDiskCanBeAdded(vm).
On the other hand, seeing this block in the middle of the method is hardly 
readable:
List emptyList = Collections.emptyList()
ImagesHandler.PerformImagesChecks(vm,
                getReturnValue().getCanDoActionMessages(),
                vm.getstorage_pool_id(),
                getStorageDomainId().getValue(),
                false,
                false,
                false,
                false,
                true,
                false,
                false,
                true,
                emptyList)


Regarding the usefulness of the test itself - I agree it's hardly full, but it 
does test logic here, specifically of the canDoAction.

--
To view, visit http://gerrit.ovirt.org/5392
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I3b061a6f381f4e19d6666b24140b0583a244a63d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Michael Kublin <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to