Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix stale test
Andrey4cfe88138635
diff --git a/backend/src/services/certificate-v3/certificate-v3-service.test.ts b/backend/src/services/certificate-v3/certificate-v3-service.test.tsindex 31bb563b6e..6dc76a3d3f 100644--- a/backend/src/services/certificate-v3/certificate-v3-service.test.ts+++ b/backend/src/services/certificate-v3/certificate-v3-service.test.ts@@ -1594,17 +1594,15 @@ describe("CertificateV3Service", () => {// The approval branch writes its own request row, and issuance later reads it back.it("persists basicConstraints on the request row when an approval policy applies", async () => {setupCa(CaType.AWS_PCA);- vi.mocked(mockApprovalPolicyDAL.findByProjectId).mockResolvedValue([- {- id: "approval-policy-1",- isActive: true,- scopeType: null,- scopeId: null,- bypassForMachineIdentities: false,- maxRequestTtl: null,- conditions: { conditions: [{ profileNames: [mockProfile.slug] }] }- }- ] as any);+ vi.mocked(mockApprovalPolicyService.matchPolicy).mockResolvedValue({+ id: "approval-policy-1",+ isActive: true,+ scopeType: null,+ scopeId: null,+ bypassForMachineIdentities: false,+ maxRequestTtl: null,+ conditions: { conditions: [{ profileNames: [mockProfile.slug] }] }+ } as any);await service.orderCertificate({ profileId, certificateOrder: caOrder, ...mockActor });