Daniel Erez has posted comments on this change.

Change subject: rest: retrieve disk snapshots list by storage domain
......................................................................


Patch Set 2:

(2 comments)

http://gerrit.ovirt.org/#/c/26730/2/backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainDiskSnapshotsResourceTest.java
File 
backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendStorageDomainDiskSnapshotsResourceTest.java:

Line 37: 
Line 38:     @Override
Line 39:     @Test
Line 40:     @Ignore
Line 41:     public void testQuery() throws Exception {
> Please, either implement or remove these empty tests.
These tests must be overridden in order to ignore them - otherwise, they would 
fail. It is done in classes in which these tests aren't applicable - i.e. 
queries which don't utilize the search mechanism.
Line 42:     }
Line 43: 
Line 44:     @Test
Line 45:     @Override


http://gerrit.ovirt.org/#/c/26730/2/backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/DiskSnapshotMapper.java
File 
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/DiskSnapshotMapper.java:

Line 4: import org.ovirt.engine.api.model.DiskSnapshot;
Line 5: import org.ovirt.engine.api.restapi.utils.GuidUtils;
Line 6: import org.ovirt.engine.core.common.businessentities.DiskImage;
Line 7: 
Line 8: public class DiskSnapshotMapper extends DiskMapper {
> I don't see any benefit in extending DiskMapper.
Done. (added it just in case we need some inheritance here in the future, but 
since all are currently static, it's indeed redundant for now)
Line 9: 
Line 10:     @Mapping(from = 
org.ovirt.engine.core.common.businessentities.Disk.class, to = 
DiskSnapshot.class)
Line 11:     public static DiskSnapshot 
map(org.ovirt.engine.core.common.businessentities.Disk entity, DiskSnapshot 
template) {
Line 12:         if (template == null) {


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I5359c5df490c7e7e6f9b4d25e794bd07c6877339
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com>
Gerrit-Reviewer: Ori Liel <ol...@redhat.com>
Gerrit-Reviewer: automat...@ovirt.org
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

Reply via email to