Change in ovirt-engine[master]: core: Make MockConfigRule work with Versions

amureini at redhat.com amureini at redhat.com
Sun Jan 27 09:10:27 UTC 2013


Allon Mureinik has submitted this change and it was merged.

Change subject: core: Make MockConfigRule work with Versions
......................................................................


core: Make MockConfigRule work with Versions

Fixed MockConfigRule to work with the Version class so it provides a
meaningful interface instead of just passing any String which is just
implementation detail in the Config class.

This patch contains the following:
* Fixing MockConfigRule's interface
* Adjusting AddVmCommandTest, GetConfigurationValueQueryTest and
  GetDeviceListQueryTest to pass the Version they use instead of its
  text value.
* Fixing VmNicValidatorTest to send the Version used in the validator to
  MockConfigRule.

Change-Id: I9f407bc1af73e76e223a8cbb1c67009f7dd97d61
Signed-off-by: Allon Mureinik <amureini at redhat.com>
---
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/AddVmCommandTest.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/GetConfigurationValueQueryTest.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/storage/GetDeviceListQueryTest.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/validator/VmNicValidatorTest.java
M backend/manager/modules/utils/src/test/java/org/ovirt/engine/core/utils/MockConfigRule.java
5 files changed, 20 insertions(+), 12 deletions(-)

Approvals:
  Allon Mureinik: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9f407bc1af73e76e223a8cbb1c67009f7dd97d61
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Alissa Bonas <abonas at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Laszlo Hornyak <lhornyak at redhat.com>
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: Vered Volansky <vvolansk at redhat.com>



More information about the Engine-commits mailing list