Bugzilla – Attachment 190160 Details for
Bug 40446
DB config used by Cypress (mysql2) is not configurable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40446: Allow overriding Cypress DB settings
bda2095.patch (text/plain), 1.06 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-12-04 17:43:02 UTC
(
hide
)
Description:
Bug 40446: Allow overriding Cypress DB settings
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-12-04 17:43:02 UTC
Size:
1.06 KB
patch
obsolete
>From bda20956d5d833e15d25bc5060f695ce920875b1 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= <tomascohen@theke.io> >Date: Thu, 4 Dec 2025 11:41:11 -0300 >Subject: [PATCH] Bug 40446: Allow overriding Cypress DB settings >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io> >--- > t/cypress/plugins/db.js | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/t/cypress/plugins/db.js b/t/cypress/plugins/db.js >index 92f5234d46..20523a04ec 100644 >--- a/t/cypress/plugins/db.js >+++ b/t/cypress/plugins/db.js >@@ -17,10 +17,10 @@ const mysql = require("mysql2/promise"); > * @type {Object} > */ > const connectionConfig = { >- host: "db", >- user: "koha_kohadev", >- password: "password", >- database: "koha_kohadev", >+ 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", > }; > > /** >-- >2.50.1 (Apple Git-155) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40446
: 190160