mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 21:32:05 +00:00
we need to test passwords outside tls too
This commit is contained in:
@@ -80,6 +80,7 @@ services:
|
||||
image: mysql:8.4
|
||||
environment:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
||||
MYSQL_ROOT_PASSWORD: "bun123456@#$%^&*()"
|
||||
MYSQL_DATABASE: bun_sql_test
|
||||
ports:
|
||||
- target: 3306
|
||||
|
||||
@@ -13,7 +13,7 @@ describeWithContainer(
|
||||
container => {
|
||||
// Use a getter to avoid reading port/host at define time
|
||||
const getOptions = () => ({
|
||||
url: `mysql://root@${container.host}:${container.port}/bun_sql_test`,
|
||||
url: `mysql://root:${encodeURIComponent("bun123456@#$%^&*()")}@${container.host}:${container.port}/bun_sql_test`,
|
||||
max: 1,
|
||||
bigint: true,
|
||||
});
|
||||
|
||||
@@ -40,9 +40,8 @@ if (isDockerEnabled()) {
|
||||
},
|
||||
container => {
|
||||
let sql: SQL;
|
||||
const password = image.image === "mysql_plain" ? "" : "bun123456@#$%^&*()";
|
||||
const getOptions = (): Bun.SQL.Options => ({
|
||||
url: `mysql://root:${encodeURIComponent(password)}@${container.host}:${container.port}/bun_sql_test`,
|
||||
url: `mysql://root:${encodeURIComponent("bun123456@#$%^&*()")}@${container.host}:${container.port}/bun_sql_test`,
|
||||
max: 1,
|
||||
tls:
|
||||
image.name === "MySQL with TLS"
|
||||
|
||||
Reference in New Issue
Block a user