Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(gateway): rename identityId to audience in merged gcp auth tests

bernie-g80d985056c1a
diff --git a/backend/src/services/identity-gcp-auth/identity-gcp-auth-fns.test.ts b/backend/src/services/identity-gcp-auth/identity-gcp-auth-fns.test.ts
index 4b20edf6fd..aa0a684c44 100644
--- a/backend/src/services/identity-gcp-auth/identity-gcp-auth-fns.test.ts
+++ b/backend/src/services/identity-gcp-auth/identity-gcp-auth-fns.test.ts
@@ -231,9 +231,9 @@ describe("validateIamIdentity", () => {
});
test("rejects an expired token", async () => {
- await expect(
- validateIamIdentity({ audience: IDENTITY_ID, jwt: signIamJwt({ expiresIn: "-1h" }) })
- ).rejects.toThrow("Invalid GCP IAM token signature");
+ await expect(validateIamIdentity({ audience: IDENTITY_ID, jwt: signIamJwt({ expiresIn: "-1h" }) })).rejects.toThrow(
+ "Invalid GCP IAM token signature"
+ );
});
// An unsigned token must never verify, otherwise anyone able to name a service account