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; > I think that what Liron meant is that since you are calling this method onl I understand you guys. I'm reusing this method twice, first time to check that there are some disk profiles containing !null qosId, and the second time, that all qosIds are null. I can split this method into 2, but I guess that once I'll do it you'll ask me to reuse :) basically I'm going over all values because (as I said) there are disk profiles that contain null, so I can't assert on first one (I want to assert on all of them). 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