Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0039297Openbravo ERPA. Platformpublic2018-09-13 10:542018-09-18 13:25
alostale 
alostale 
immediateminorhave not tried
closedfixed 
5
 
3.0PR18Q3.1 
vmromanos
Core
Automated tests
2018-09-07
pi
http://code.openbravo.com/erp/devel/pi/rev/692305cb1996257b11e256efbb93ff2c529e0fe9 [^]
No
0039297: can't install reference data in test code
When running tests installing refrencedata, before of 0039229 they got it from source.data, afterwards it's tried to be retrieved from server's resources assuming code is run from a servlet container. Not being this the case for tests, they fail.
1. Install org.openbravo.distributionorder
2. Run module tests
  -> ERROR: they fail, see https://ci.openbravo.com/job/mod-simple/28489/ [^]
No tags attached.
blocks defect 0039280 closed alostale can't install reference data in test code 
Issue History
2018-09-17 10:04AugustoMauchTypedefect => backport
2018-09-17 10:04AugustoMauchTarget Version => 3.0PR18Q3.1
2018-09-17 10:08hgbotCheckin
2018-09-17 10:08hgbotNote Added: 0106797
2018-09-17 10:08hgbotStatusscheduled => resolved
2018-09-17 10:08hgbotResolutionopen => fixed
2018-09-17 10:08hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/63a01ac3db462695ee3260e4e2eed0d8886cb785 [^] => http://code.openbravo.com/erp/backports/3.0PR18Q3.1/rev/94ce09b1188560d1426b00f7083213aff54a3722 [^]
2018-09-18 13:25vmromanosStatusresolved => closed

Notes
(0106797)
hgbot   
2018-09-17 10:08   
Repository: erp/backports/3.0PR18Q3.1
Changeset: 94ce09b1188560d1426b00f7083213aff54a3722
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Sep 17 10:07:49 2018 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR18Q3.1/rev/94ce09b1188560d1426b00f7083213aff54a3722 [^]

Fixes issue 39297: can't install reference data in test code

When inserting reference data not running in a web container, data files
are read from source.path.

---
M src/org/openbravo/erpCommon/businessUtility/InitialSetupUtility.java
---