Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0045216Openbravo ERPY. DBSourceManagerpublic2020-10-14 08:262020-10-30 13:27
alostale 
alostale 
normalminorhave not tried
closedfixed 
5
 
 
Core
No
0045216: dbsm tests have hardcoded super user
dbsm tests have hardcoded super user and password.

Check

         src/org/openbravo/dbsm/test/base/PGOnlySystemDbsmTest.java
         src/org/openbravo/dbsm/test/model/ContainsSearchIndexes.java
         src/org/openbravo/dbsm/test/model/recreation/AddDropConstraints.java

Change pg super user password and execute tests
Move it to json config.
No tags attached.
related to defect 0045217 closed alostale org.openbravo.dbsm.test.model.Functions.invalidFunctionIsIgnored fails in cli 
Issue History
2020-10-14 08:26alostaleNew Issue
2020-10-14 08:26alostaleAssigned To => platform
2020-10-14 08:26alostaleModules => Core
2020-10-14 08:26alostaleTriggers an Emergency Pack => No
2020-10-14 08:48alostaleRelationship addedrelated to 0045217
2020-10-14 13:04shuehnerIssue Monitored: shuehner
2020-10-27 08:12hgbotNote Added: 0123954
2020-10-27 08:12alostaleAssigned Toplatform => alostale
2020-10-30 13:27hgbotNote Added: 0124068
2020-10-30 13:27hgbotResolutionopen => fixed
2020-10-30 13:27hgbotStatusnew => closed
2020-10-30 13:27hgbotNote Added: 0124069

Notes
(0123954)
hgbot   
2020-10-27 08:12   
Merge Request created: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/18 [^]
(0124068)
hgbot   
2020-10-30 13:27   
Merge request merged: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/18 [^]
(0124069)
hgbot   
2020-10-30 13:27   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/dbsm [^]
Changeset: 44ca69d61c6d4a4d6395d65f4cebdf38e222ff2d
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 2020-10-30T12:27:29+00:00
URL: https://gitlab.com/openbravo/product/dbsm/-/commit/44ca69d61c6d4a4d6395d65f4cebdf38e222ff2d [^]

fixed ISSUE-45216: dbsm tests have hardcoded super user

Added "systemUser" and "systemPassword" properties to config in order to
set db super user credentials instead of hardcoding them via
getSystemUser and getSystemPassword methods, which have now been
deleted.

---
M src-test/config/db-config.json.template
M src-test/src/org/openbravo/dbsm/test/base/DbsmTest.java
M src-test/src/org/openbravo/dbsm/test/base/PGOnlySystemDbsmTest.java
M src-test/src/org/openbravo/dbsm/test/model/ContainsSearchIndexes.java
M src-test/src/org/openbravo/dbsm/test/model/recreation/AddDropConstraints.java
---