Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035621Openbravo ERPA. Platformpublic2017-03-27 10:492017-03-31 08:40
alostale 
alostale 
normaltrivialhave not tried
closedfixed 
5
 
3.0PR17Q2 
caristu
Core
No
0035621: information buried in logs when IndexesTest fails
IndexesTest checks all tables used in subtabs have the FK column to the parent tab indexed.

When it fails, the errors appear in the log but not in the failure itself, making it difficult to check what was wrong. This is specially difficult when this test is executed as part of the complete test suite.
1. Drop an index for a subtab: ie. DROP INDEX c_orderline_order
2. Execute IndexesTest
  -> The failure message says:
        java.lang.AssertionError: There are missing indexes! expected:<0> but was:<31>
     To check which are the missing indexes, it is required to check the full output log
No tags attached.
Issue History
2017-03-27 10:49alostaleNew Issue
2017-03-27 10:49alostaleAssigned To => platform
2017-03-27 10:49alostaleModules => Core
2017-03-27 10:49alostaleTriggers an Emergency Pack => No
2017-03-27 10:54alostaleAssigned Toplatform => alostale
2017-03-27 10:54alostaleReview Assigned To => caristu
2017-03-27 10:55hgbotCheckin
2017-03-27 10:55hgbotNote Added: 0095584
2017-03-27 10:55hgbotStatusnew => resolved
2017-03-27 10:55hgbotResolutionopen => fixed
2017-03-27 10:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/14e708fab4b58d2eda4f1aa50f8f605f4cc98299 [^]
2017-03-27 12:58alostaleSummaryinformation missing in logs when IndexesTest fails => information lost in logs when IndexesTest fails
2017-03-27 12:58alostaleSummaryinformation lost in logs when IndexesTest fails => information buried in logs when IndexesTest fails
2017-03-27 16:49hudsonbotCheckin
2017-03-27 16:49hudsonbotNote Added: 0095592
2017-03-31 08:40caristuNote Added: 0095742
2017-03-31 08:40caristuStatusresolved => closed
2017-03-31 08:40caristuFixed in Version => 3.0PR17Q2

Notes
(0095584)
hgbot   
2017-03-27 10:55   
Repository: erp/devel/pi
Changeset: 14e708fab4b58d2eda4f1aa50f8f605f4cc98299
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Mar 27 10:52:11 2017 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/14e708fab4b58d2eda4f1aa50f8f605f4cc98299 [^]

fixed bug 35621: information missing in logs when IndexesTest fails

  Now the list of errors is logged as part of failed assertion message instead
  of within the standard log.

---
M src-test/src/org/openbravo/test/model/IndexesTest.java
---
(0095592)
hudsonbot   
2017-03-27 16:49   
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/aebb09f053f9 [^]
Maturity status: Test
(0095742)
caristu   
2017-03-31 08:40   
Code reviewed + tested OK.