Gilad Chaplik has posted comments on this change.

Change subject: core, db: disk profile: handle attach/detach
......................................................................


Patch Set 14:

(1 comment)

http://gerrit.ovirt.org/#/c/29037/14/backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/profiles/DiskProfileDaoTest.java
File 
backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/profiles/DiskProfileDaoTest.java:

Line 139:         List<DiskProfile> allForStorageDomain = 
dao.getAllForStorageDomain(FixturesTool.STORAGE_DOAMIN_SCALE_SD5);
Line 140:         assertNotNull(allForStorageDomain);
Line 141:         assertFalse(allForStorageDomain.isEmpty());
Line 142:         for (DiskProfile diskProfile : allForStorageDomain) {
Line 143:             allValues &= diskProfile.getQosId() == null;
> the assertion should be here, no need to check all when we can fail on the 
there could null values (in first one). the test is for all values.
Line 144:         }
Line 145:         assertEquals(isAllNull, allValues);
Line 146:     }


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

Gerrit-MessageType: comment
Gerrit-Change-Id: I29aaf7b0b537f0b80b91b09e025e9487bbb69c2d
Gerrit-PatchSet: 14
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Arik Hadas <aha...@redhat.com>
Gerrit-Reviewer: Daniel Erez <de...@redhat.com>
Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Liron Aravot <lara...@redhat.com>
Gerrit-Reviewer: Tal Nisan <tni...@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