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 tests
Thiago Araujo da Silvab5ad783b7dda
diff --git a/backend/src/ee/services/github-org-sync/github-org-sync-reconcile.test.ts b/backend/src/ee/services/github-org-sync/github-org-sync-reconcile.test.tsindex 399a35274e..c4708c4c89 100644--- a/backend/src/ee/services/github-org-sync/github-org-sync-reconcile.test.ts+++ b/backend/src/ee/services/github-org-sync/github-org-sync-reconcile.test.ts@@ -156,14 +156,17 @@ describe("GitHub org sync and org access reconcile", () => {expect(emit).toHaveBeenCalledTimes(1);expect(emit).toHaveBeenCalledWith(- {- eventType: GROUP_MEMBERSHIP_REMOVED_EVENT,- payload: {- groupId: "g-left",- orgIds: [ORG_ID, SUB_ORG_ID],- members: [{ actorType: ActorType.USER, actorId: "user-1" }]+ [+ {+ id: expect.any(String) as string,+ type: GROUP_MEMBERSHIP_REMOVED_EVENT,+ data: {+ groupId: "g-left",+ orgIds: [ORG_ID, SUB_ORG_ID],+ members: [{ actorType: ActorType.USER, actorId: "user-1" }]+ }}- },+ ],TX);expect(groupDAL.findGroupOrgIds).toHaveBeenCalledWith("g-left", TX);@@ -222,14 +225,17 @@ describe("GitHub org sync and org access reconcile", () => {expect(userGroupMembershipDAL.delete).toHaveBeenCalledWith({ $in: { id: ["ugm-2"] } }, TX);expect(emit).toHaveBeenCalledTimes(1);expect(emit).toHaveBeenCalledWith(- {- eventType: GROUP_MEMBERSHIP_REMOVED_EVENT,- payload: {- groupId: "g-team",- orgIds: [ORG_ID, SUB_ORG_ID],- members: [{ actorType: ActorType.USER, actorId: "user-2" }]+ [+ {+ id: expect.any(String) as string,+ type: GROUP_MEMBERSHIP_REMOVED_EVENT,+ data: {+ groupId: "g-team",+ orgIds: [ORG_ID, SUB_ORG_ID],+ members: [{ actorType: ActorType.USER, actorId: "user-2" }]+ }}- },+ ],TX);diff --git a/backend/src/services/identity/identity-service.test.ts b/backend/src/services/identity/identity-service.test.tsindex 5927483c88..98be6faab2 100644--- a/backend/src/services/identity/identity-service.test.ts+++ b/backend/src/services/identity/identity-service.test.ts@@ -162,10 +162,13 @@ describe("deleteIdentity org access reconcile", () => {expect(emit).toHaveBeenCalledTimes(1);expect(emit).toHaveBeenCalledWith(- {- eventType: "com.infisical.organization.membership.removed.v1",- payload: { orgId: ORG_ID, actorType: "identity", actorId: IDENTITY_ID }- },+ [+ {+ id: expect.any(String) as string,+ type: "com.infisical.organization.membership.removed.v1",+ data: { orgId: ORG_ID, actorType: "identity", actorId: IDENTITY_ID }+ }+ ],TX);});diff --git a/backend/src/services/membership-identity/membership-identity-service.test.ts b/backend/src/services/membership-identity/membership-identity-service.test.tsindex 8b0c9a1be5..8f3bf4b15a 100644--- a/backend/src/services/membership-identity/membership-identity-service.test.ts+++ b/backend/src/services/membership-identity/membership-identity-service.test.ts@@ -244,10 +244,13 @@ describe("deleteMembership org access reconcile", () => {expect(emit).toHaveBeenCalledTimes(1);expect(emit).toHaveBeenCalledWith(- {- eventType: "com.infisical.organization.membership.removed.v1",- payload: { orgId: SUB_ORG_ID, actorType: "identity", actorId: IDENTITY_ID }- },+ [+ {+ id: expect.any(String) as string,+ type: "com.infisical.organization.membership.removed.v1",+ data: { orgId: SUB_ORG_ID, actorType: "identity", actorId: IDENTITY_ID }+ }+ ],tx);});