Bug 40446 - DB config used by Cypress (mysql2) is not configurable
Summary: DB config used by Cypress (mysql2) is not configurable
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Tomás Cohen Arazi (tcohen)
QA Contact: Testopia
URL:
Keywords:
Depends on: 41362 40170
Blocks:
  Show dependency treegraph
 
Reported: 2025-07-18 10:30 UTC by Jonathan Druart
Modified: 2025-12-22 04:01 UTC (History)
2 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40446: Allow overriding Cypress DB settings (1.06 KB, patch)
2025-12-04 17:43 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2025-07-18 10:30:36 UTC
It's hardcoded to work with ktd, but it should be more flexible

const connectionConfig = {
    host: "db",
    user: "koha_kohadev",
    password: "password",
    database: "koha_kohadev",
};
Comment 1 Jonathan Druart 2025-12-04 08:35:59 UTC
This should work:

const connectionConfig = {
  host: process.env.DB_HOSTNAME || "db",
  user: process.env.DB_USER || "koha_kohadev",
  password: process.env.DB_PASSWORD || "password",
  database: process.env.DB_NAME || "koha_kohadev",
};
Comment 2 Tomás Cohen Arazi (tcohen) 2025-12-04 17:43:02 UTC
Created attachment 190160 [details] [review]
Bug 40446: Allow overriding Cypress DB settings

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Comment 3 David Nind 2025-12-22 04:01:40 UTC
Changed assignee.

Sorry, have no idea how to test this one.