Change in ovirt-engine[master]: Initial Integration test with arquillian and working automat...

rgolan at redhat.com rgolan at redhat.com
Wed Jun 1 15:30:08 UTC 2016


Roy Golan has submitted this change and it was merged.

Change subject: Initial Integration test with arquillian and working automatic rollback
......................................................................


Initial Integration test with arquillian and working automatic rollback

 * Bump of maven-surefire-plugin to 2.12.3 to make groups/categories work
 * Tests annotated with @Category(IntegrationTest.class) will not be run
   when running unit tests
 * Integration tests which inherit from TransactionalTestBase have
   access to a fully working dao layer
 * Add maven-failsafe-plugin for running integration tests

To run integration tests type:

   mvn clean verify -DskipITs=false

Note that 'skipITs' is set to false for backward compitibility only
(e.g. Jenkins jobs). A standard maven execution should execute all
tests which are there. Tests should normally only be skipped when it is
an explicit decision.

Change-Id: I8f87fb5ad35b1d411fc114e3296b2a3d07ecae3d
Signed-off-by: Roman Mohr <rmohr at redhat.com>
---
M backend/manager/modules/bll/pom.xml
A backend/manager/modules/bll/src/test/java/org/ovirt/engine/arquillian/IntegrationTest.java
A backend/manager/modules/bll/src/test/java/org/ovirt/engine/arquillian/RollbackTest.java
A backend/manager/modules/bll/src/test/java/org/ovirt/engine/arquillian/TransactionalTestBase.java
A backend/manager/modules/bll/src/test/java/org/ovirt/engine/arquillian/database/DataSourceFactory.java
A backend/manager/modules/bll/src/test/java/org/ovirt/engine/arquillian/database/TransactionRollbackRule.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/scheduling/CommonTestMocks.java
M backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/scheduling/SchedulingManagerTest.java
A backend/manager/modules/bll/src/test/resources/test-database.properties
M backend/manager/modules/dal/pom.xml
M backend/manager/modules/pom.xml
M pom.xml
12 files changed, 358 insertions(+), 89 deletions(-)

Approvals:
  Martin Sivák: Looks good to me, but someone else must approve
  Martin Peřina: Looks good to me, but someone else must approve
  Roman Mohr: Verified
  Jenkins CI: Passed CI tests
  Roy Golan: Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/47008
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8f87fb5ad35b1d411fc114e3296b2a3d07ecae3d
Gerrit-PatchSet: 26
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roman Mohr <rmohr at redhat.com>
Gerrit-Reviewer: Andrej Krejcir <akrejcir at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Peřina <mperina at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Roman Mohr <rmohr at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list