Laszlo Hornyak has posted comments on this change.

Change subject: engine: test for AddVdsCommand
......................................................................


Patch Set 7: (2 inline comments)

....................................................
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVdsCommand.java
Line 277:         
DbFacade.getInstance().getVdsStatisticsDao().save(vdsStatistics);
Line 278:         getCompensationContext().snapshotNewEntity(vdsStatistics);
Line 279:     }
Line 280: 
Line 281:     boolean validateVdsGroup() {
package pprotected is actually more strict, but so be it, I do not think anyone 
will hack the system with that
Line 282:         if (getVdsGroup() == null) {
Line 283:             return 
failCanDoAction(VdcBllMessages.VDS_CLUSTER_IS_NOT_VALID);
Line 284:         }
Line 285:         return true;


....................................................
File 
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/AddVdsCommandTest.java
Line 12: import org.ovirt.engine.core.dao.VdsDAO;
Line 13: import org.ovirt.engine.core.dao.VdsGroupDAO;
Line 14: import org.ovirt.engine.core.utils.MockConfigRule;
Line 15: 
Line 16: public class AddVdsCommandTest {
in the next patch
Line 17:     private VDS makeTestVds(Guid vdsId) {
Line 18:         VDS newVdsData = new VDS();
Line 19:         newVdsData.setHostName("BUZZ");
Line 20:         newVdsData.setVdsName("BAR");


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Iaa8b31e3bb4f96e34d7ea7e97ec8c4c5b1f19984
Gerrit-PatchSet: 7
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <lhorn...@redhat.com>
Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com>
Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com>
Gerrit-Reviewer: Laszlo Hornyak <lhorn...@redhat.com>
Gerrit-Reviewer: ofri masad <oma...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to