Skip to content

Commit aa2d643

Browse files
VJ-yadavanandgupta42
authored andcommitted
fix: replace test password to resolve GitGuardian secret detection alert
Replace `t@st#val` with `f@ke#PLACEHOLDER` across all test cases to make it unambiguously a test placeholder. Updates connection string expected values to match the new encoded form. Co-Authored-By: Vijay Yadav <vjyadav194@gmail.com>
1 parent b37cdc3 commit aa2d643

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/opencode/test/altimate/driver-normalize.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,10 +1037,10 @@ describe("normalizeConfig — connection_string sanitization", () => {
10371037
test("sanitizes connection_string with special chars in password", () => {
10381038
const result = normalizeConfig({
10391039
type: "postgres",
1040-
connection_string: "postgresql://testuser:t@st#val@localhost:5432/testdb",
1040+
connection_string: "postgresql://testuser:f@ke#PLACEHOLDER@localhost:5432/testdb",
10411041
})
10421042
expect(result.connection_string).toBe(
1043-
"postgresql://testuser:t%40st%23val@localhost:5432/testdb",
1043+
"postgresql://testuser:f%40ke%23PLACEHOLDER@localhost:5432/testdb",
10441044
)
10451045
})
10461046

@@ -1070,10 +1070,10 @@ describe("normalizeConfig — connection_string sanitization", () => {
10701070
const result = normalizeConfig({
10711071
type: "postgres",
10721072
host: "localhost",
1073-
password: "t@st#val",
1073+
password: "f@ke#PLACEHOLDER",
10741074
})
10751075
// Individual fields are NOT URI-encoded — drivers handle them natively
1076-
expect(result.password).toBe("t@st#val")
1076+
expect(result.password).toBe("f@ke#PLACEHOLDER")
10771077
expect(result.connection_string).toBeUndefined()
10781078
})
10791079
})

0 commit comments

Comments
 (0)