Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033292Openbravo ERPZ. Otherspublic2016-06-16 14:242016-06-27 12:33
shuehner 
alostale 
immediateminorhave not tried
closedfixed 
5
 
 
shuehner
Core
No
0033292: Disable junit test: SystemValidatorTest temporarily until it is enhanced to be disabled (optionally)
In some stage of release process currently module dependencies from retail to erp are temporarily inconsistent.

That is handled in normal CI process but an earlier change in 33032 causes this systemValidatorTest to also raise it during running junit tests.

Until that specific junit test can be enhanced to 'selectively disable' it temporarily switch of this specific test.
-
No tags attached.
related to defect 0046883 new Triage Platform Base Remove obsolete post.publication flag which was used in release process to temp-disable SystemValidatorTest 
Issue History
2016-06-16 14:24shuehnerNew Issue
2016-06-16 14:24shuehnerAssigned To => shuehner
2016-06-16 14:24shuehnerModules => Core
2016-06-16 14:24shuehnerTriggers an Emergency Pack => No
2016-06-16 14:33hgbotCheckin
2016-06-16 14:33hgbotNote Added: 0087344
2016-06-16 15:03hgbotCheckin
2016-06-16 15:03hgbotNote Added: 0087353
2016-06-17 19:38hudsonbotCheckin
2016-06-17 19:38hudsonbotNote Added: 0087630
2016-06-17 19:38hudsonbotCheckin
2016-06-17 19:38hudsonbotNote Added: 0087631
2016-06-27 12:24shuehnerNote Added: 0087970
2016-06-27 12:28hgbotCheckin
2016-06-27 12:28hgbotNote Added: 0087971
2016-06-27 12:28hgbotStatusnew => resolved
2016-06-27 12:28hgbotResolutionopen => fixed
2016-06-27 12:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/58a17e7e4040610abb3bf3eda8e807bcd59599f4 [^]
2016-06-27 12:31shuehnerReview Assigned To => shuehner
2016-06-27 12:31shuehnerNote Added: 0087972
2016-06-27 12:31shuehnerAssigned Toshuehner => alostale
2016-06-27 12:33shuehnerNote Added: 0087973
2016-06-27 12:33shuehnerStatusresolved => closed
2021-05-28 10:32shuehnerRelationship addedrelated to 0046883

Notes
(0087344)
hgbot   
2016-06-16 14:33   
Repository: erp/devel/pi
Changeset: 68ef7d86fab1a990670628ca4d77813ae3929891
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Thu Jun 16 14:32:40 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/68ef7d86fab1a990670628ca4d77813ae3929891 [^]

Issue 33292. Temporarily disable testModulesValidation

---
M src-test/src/org/openbravo/test/system/SystemValidatorTest.java
---
(0087353)
hgbot   
2016-06-16 15:03   
Repository: erp/devel/pi
Changeset: c57cff772373d352fab2f03dd5e9147784eb0130
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Jun 16 15:02:24 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c57cff772373d352fab2f03dd5e9147784eb0130 [^]

issue 33292: test can be disabled with post.publication JVM prop set to true

---
M src-test/src/org/openbravo/test/system/SystemValidatorTest.java
---
(0087630)
hudsonbot   
2016-06-17 19:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0dc7be081b1c [^]
Maturity status: Test
(0087631)
hudsonbot   
2016-06-17 19:38   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0dc7be081b1c [^]
Maturity status: Test
(0087970)
shuehner   
2016-06-27 12:24   
Example commandline usage:
ANT_OPTS="-Dpost.publication=true" ant run.test -Dtest=org.openbravo.test.system.SystemValidatorTest

Needs to be done via ANT_OPTS as ant command 're-defines' -D and does not passes those on as java system properties.
(0087971)
hgbot   
2016-06-27 12:28   
Repository: erp/devel/pi
Changeset: 58a17e7e4040610abb3bf3eda8e807bcd59599f4
Author: Stefan Hühner <stefan.huehner <at> openbravo.com>
Date: Fri Jun 24 23:05:23 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/58a17e7e4040610abb3bf3eda8e807bcd59599f4 [^]

Fixed 33292. Undo @Ignore annotation now that test can be selectively disabled.

---
M src-test/src/org/openbravo/test/system/SystemValidatorTest.java
---
(0087972)
shuehner   
2016-06-27 12:31   
Re-assign to Asier.
As single patch which is kept is authored by him.
(0087973)
shuehner   
2016-06-27 12:33   
reviewed & tested.
Normal i.e. ant run.test -Dtest=org.openbravo.test.system.SystemValidatorTest
runs the test without any changes.

If optionally system property post.pulication is set:

It will skip this single testcase and notes reason in skip details:
    [junit] Testcase: testModulesValidation took 0.45 sec
    [junit] SKIPPED: Ignoring test case during post publication cycle: got: "true", expected: not "true"