Change in ovirt-engine[master]: core: ImportVm test cleanup: property generation

amureini at redhat.com amureini at redhat.com
Tue Dec 18 08:40:24 UTC 2012


Allon Mureinik has submitted this change and it was merged.

Change subject: core: ImportVm test cleanup: property generation
......................................................................


core: ImportVm test cleanup: property generation

Added new functionality to RandomUtils to randomly generate Strings that
are valid property strings (i.e., may contain the characters a-z, A-Z,
0-9,"_" and "."), and used it in the test instead of the hard coded
string100 and string5000 variables.

A RandomUtilsSeedingRule was also added to the test to make this
pseudo-random output predictable, or at least reproducible.

Change-Id: I1f04e067e8bce2c6cd1010f83a44809a3c8c464c
Signed-off-by: Allon Mureinik <amureini at redhat.com>
---
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/ImportVmCommandTest.java
M backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/RandomUtils.java
2 files changed, 42 insertions(+), 30 deletions(-)

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


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1f04e067e8bce2c6cd1010f83a44809a3c8c464c
Gerrit-PatchSet: 12
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: Ayal Baron <abaron at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Liron Aravot <laravot at redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Vered Volansky <vvolansk at redhat.com>



More information about the Engine-commits mailing list