mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
chore: fix test
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { seedData1 } from "@app/db/seed-data";
|
import { seedData1 } from "@app/db/seed-data";
|
||||||
|
import { ApproverType } from "@app/ee/services/access-approval-policy/access-approval-policy-types";
|
||||||
|
|
||||||
const createPolicy = async (dto: { name: string; secretPath: string; approvers: string[]; approvals: number }) => {
|
const createPolicy = async (dto: { name: string; secretPath: string; approvers: {type: ApproverType.User, id: string}[]; approvals: number }) => {
|
||||||
const res = await testServer.inject({
|
const res = await testServer.inject({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: `/api/v1/secret-approvals`,
|
url: `/api/v1/secret-approvals`,
|
||||||
@@ -26,7 +27,7 @@ describe("Secret approval policy router", async () => {
|
|||||||
const policy = await createPolicy({
|
const policy = await createPolicy({
|
||||||
secretPath: "/",
|
secretPath: "/",
|
||||||
approvals: 1,
|
approvals: 1,
|
||||||
approvers: [seedData1.id],
|
approvers: [{id:seedData1.id, type: ApproverType.User}],
|
||||||
name: "test-policy"
|
name: "test-policy"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user