| Summary: | DB config used by Cypress (mysql2) is not configurable | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Jonathan Druart <jonathan.druart> |
| Component: | Test Suite | Assignee: | Tomás Cohen Arazi (tcohen) <tomascohen> |
| Status: | Needs Signoff --- | QA Contact: | Testopia <testopia> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | david, tomascohen |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41362 | ||
| 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: | |||
| Bug Depends on: | 41362, 40170 | ||
| Bug Blocks: | |||
| Attachments: | Bug 40446: Allow overriding Cypress DB settings | ||
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",
};
Created attachment 190160 [details] [review] Bug 40446: Allow overriding Cypress DB settings Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> Changed assignee. Sorry, have no idea how to test this one. |
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", };