Bugzilla – Attachment 190921 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
8ad028a.patch (text/plain), 1.16 KB, created by
Jonathan Druart
on 2026-01-06 09:39:00 UTC
(
hide
)
Description:
Bug 40446: Allow overriding Cypress DB settings
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-06 09:39:00 UTC
Size:
1.16 KB
patch
obsolete
>From 8ad028a9a8712090dc88d197cd1998fa985bf6d3 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> > >Amended-by: Jonathan Druart >tidy > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 92f5234d460..c55cb5e7de9 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.43.0 >
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
| 190921