Skip to content

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

misc: corrected unit test setup

Sheen Capadnganf5d855fc54ed
diff --git a/backend/src/services/certificate-v3/certificate-v3-service.test.ts b/backend/src/services/certificate-v3/certificate-v3-service.test.ts
index c20d1d525d..0a5f7645bc 100644
--- a/backend/src/services/certificate-v3/certificate-v3-service.test.ts
+++ b/backend/src/services/certificate-v3/certificate-v3-service.test.ts
@@ -792,6 +792,9 @@ describe("CertificateV3Service", () => {
certificateChain: "chain",
issuingCaCertificate: "issuing-ca",
serialNumber: "789012",
+ // signCertFromCa always returns the id of the certificate it persisted, and the response is
+ // built from that rather than from a follow-up read.
+ certificateId: "cert-456",
commonName: "test.example.com",
ca: {
id: "ca-123",