Change in ovirt-engine[master]: scheduler: Update database before running integration tests

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


Roy Golan has submitted this change and it was merged.

Change subject: scheduler: Update database before running integration tests
......................................................................


scheduler: Update database before running integration tests

Apply all database changes in the pre-integration-test phase. This is
by default done with the 'apply' command of the schema.sh script.
Switching branches can lead to incompatible database states. Therefore
it is possible to force maven to recreate the whole database by using
the system property 'engine.db.command' with the value 'recreate'.

Example:

   mvn clean verify -Dengine.db.command=recreate -DskipITs=false

When skipping integrations tests (which is the default), the database
update hook in pre-integration-test  is skipped too.

Change-Id: Ie1fe902255eb4b35dbabb140a5b0c6eb97cba86f
Signed-off-by: Roman Mohr <rmohr at redhat.com>
---
M backend/manager/modules/bll/pom.xml
M packaging/dbscripts/dbfunc-common.sh
M packaging/dbscripts/schema.sh
3 files changed, 30 insertions(+), 1 deletion(-)

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/47135
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie1fe902255eb4b35dbabb140a5b0c6eb97cba86f
Gerrit-PatchSet: 24
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: David Caro <dcaro 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: Rafael Martins <rmartins at redhat.com>
Gerrit-Reviewer: Roman Mohr <rmohr at redhat.com>
Gerrit-Reviewer: Roy Golan <rgolan at redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbonazzo at redhat.com>
Gerrit-Reviewer: Simone Tiraboschi <stirabos at redhat.com>
Gerrit-Reviewer: Yedidyah Bar David <didi at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list