Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

fix(test): keep parameterized JUnit names unique (#877)

mldangelo-oaib4c997f7ca00
diff --git a/sdk/typescript/tests-ts/cli-authentication.test.ts b/sdk/typescript/tests-ts/cli-authentication.test.ts
index 60cde9ba2..881e031c4 100644
--- a/sdk/typescript/tests-ts/cli-authentication.test.ts
+++ b/sdk/typescript/tests-ts/cli-authentication.test.ts
@@ -1268,7 +1268,7 @@ describe("skill authentication", () => {
["auto", false, "synthetic"],
["api-key", false, "synthetic"],
] as const)(
- "patch uses %s auth without replacing a saved login (failure: %s, provider: %s)",
+ "patch uses %s auth without replacing a saved login (failure: %p, provider: %s)",
async (auth, loginFailure, provider) => {
const repository = join(stateDirectory, "repository");
await mkdir(repository);
diff --git a/sdk/typescript/tests-ts/multiscan.test.ts b/sdk/typescript/tests-ts/multiscan.test.ts
index 41b56448a..2918d5f2d 100644
--- a/sdk/typescript/tests-ts/multiscan.test.ts
+++ b/sdk/typescript/tests-ts/multiscan.test.ts
@@ -438,7 +438,7 @@ describe("multiscan", () => {
});
test.each([false, true])(
- "recovery records the original attempt and preserves it after resume failure=%s",
+ "recovery records the original attempt and preserves it after resume failure=%p",
async (failure) => {
const paths = await fixture();
const source = await repository(paths.root, "retained");
diff --git a/sdk/typescript/tests-ts/release-pr.test.ts b/sdk/typescript/tests-ts/release-pr.test.ts
index 06c50871e..aa7838b7e 100644
--- a/sdk/typescript/tests-ts/release-pr.test.ts
+++ b/sdk/typescript/tests-ts/release-pr.test.ts
@@ -973,7 +973,7 @@ describe("human note ownership", () => {
describe("rolling release reconciliation", () => {
test.each([true, false])(
- "leaves an empty release cycle unchanged with dryRun=%s",
+ "leaves an empty release cycle unchanged with dryRun=%p",
async (dryRun) => {
const fixture = new Fixture();
const result = await fixture.run(dryRun);
@@ -1546,7 +1546,7 @@ describe("release proposal pauses", () => {
});
test.each([false, true])(
- "updates an existing proposal with draft=%s",
+ "updates an existing proposal with draft=%p",
async (draft) => {
const fixture = new Fixture();
fixture.merge("feat: initial feature");
diff --git a/sdk/typescript/tests-ts/scan-resume.test.ts b/sdk/typescript/tests-ts/scan-resume.test.ts
index 41844f838..71cedfa4e 100644
--- a/sdk/typescript/tests-ts/scan-resume.test.ts
+++ b/sdk/typescript/tests-ts/scan-resume.test.ts
@@ -480,7 +480,7 @@ test.each([
[false, true],
[true, true],
])(
- "resumed CLI seals the original scan (coordinator finished: %s, bulk: %s)",
+ "resumed CLI seals the original scan (coordinator finished: %p, bulk: %p)",
async (alreadyFinished, bulk) => {
const f = await interruptedScan("deep", bulk);
if (alreadyFinished) await finishDiscovery(f);
@@ -810,7 +810,7 @@ test("CLI saves launch settings before execution without depending on the prompt
});
test.each([false, true])(
- "resume restores saved launch settings (bulk: %s)",
+ "resume restores saved launch settings (bulk: %p)",
async (bulk) => {
const settings = {
auth: "api-key" as const,