Change in ovirt-engine[master]: core: tests for NetworkAttachmentValidator
alkaplan at redhat.com
alkaplan at redhat.com
Tue Jun 30 10:31:16 UTC 2015
Alona Kaplan has submitted this change and it was merged.
Change subject: core: tests for NetworkAttachmentValidator
......................................................................
core: tests for NetworkAttachmentValidator
• getNetworkValidator —> createNetworkValidator: a) changed
method visibility to package local to be available for
mocking (stubbing) b) removed caching of NetworkValidator for
easier handling in tests + it was probably premature optmization.
• notManagementNetwork —> notRemovingManagementNetwork: renamed method
to be more descriptive; produced error complaints about unability to
remove… not about not-being management network.
Change-Id: Ia4ba4327b93f8628e234e0e2b23234d8b89902b5
Signed-off-by: Martin Mucha <mmucha at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/HostSetupNetworksCommand.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/network/host/HostSetupNetworksValidator.java
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/validator/NetworkAttachmentValidator.java
A backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/validator/NetworkAttachmentValidatorTest.java
4 files changed, 737 insertions(+), 34 deletions(-)
Approvals:
Alona Kaplan: Verified; Looks good to me, approved; Passed CI tests
--
To view, visit https://gerrit.ovirt.org/36570
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia4ba4327b93f8628e234e0e2b23234d8b89902b5
Gerrit-PatchSet: 60
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Mucha <mmucha at redhat.com>
Gerrit-Reviewer: Alona Kaplan <alkaplan at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Mucha <mmucha at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
More information about the Engine-commits
mailing list