Liron Ar has posted comments on this change. Change subject: backend, restapi: Add read-only disk functionality ......................................................................
Patch Set 18: Code-Review+1 (1 comment) +1, still don't agree about the equals/hashCode method in VmDevice conceptually, as there's no bug it's fine by me. .................................................... File backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/UpdateVmDiskCommandTest.java Line 281: Line 282: initializeCommand(parameters); Line 283: command.executeVmCommand(); Line 284: Line 285: device.setIsReadOnly(true); suggestions: 1. I'd add here an assertion (true) of shouldUpdateReadOnly 2. I'd add a test that when this property isn't changed, we don't perform operations. Line 286: verify(vmDeviceDAO, times(1)).update(device); Line 287: } Line 288: Line 289: private void initializeCommand(UpdateVmDiskParameters params) { -- To view, visit http://gerrit.ovirt.org/15409 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I124176e8feb91b601a71e76dd63051648ec4353a Gerrit-PatchSet: 18 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Vered Volansky <vvola...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Liron Ar <lara...@redhat.com> Gerrit-Reviewer: Maor Lipchuk <mlipc...@redhat.com> Gerrit-Reviewer: Michael Pasternak <mpast...@redhat.com> Gerrit-Reviewer: Sergey Gotliv <sgot...@redhat.com> Gerrit-Reviewer: Tal Nisan <tni...@redhat.com> Gerrit-Reviewer: Vered Volansky <vvola...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches