we need to test passwords outside tls too

This commit is contained in:
Ciro Spaciari
2025-09-26 17:56:20 -07:00
parent f585a453fd
commit 486ba80fe8
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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,
});

View File

@@ -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"