Skip to content

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

Fix unit test

Carlos Monastyrskib4806a3ce408
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 69360fcc26..f37f27d671 100644
--- a/backend/src/services/certificate-v3/certificate-v3-service.test.ts
+++ b/backend/src/services/certificate-v3/certificate-v3-service.test.ts
@@ -2198,7 +2198,7 @@ describe("CertificateV3Service", () => {
certificateId: "cert-123",
...mockActor
})
- ).rejects.toThrow("Only certificates issued from a profile can be renewed");
+ ).rejects.toThrow("This certificate is not linked to a certificate profile, so it cannot be renewed");
});
it("refuses to renew a certificate into a name the caller may not edit", async () => {