diff --git a/src/functions/functionalConfig.ts b/src/functions/functionalConfig.ts index 6b19dc1..76c3311 100644 --- a/src/functions/functionalConfig.ts +++ b/src/functions/functionalConfig.ts @@ -16,7 +16,7 @@ export const functionConfig: { [key: string]: NonEmptyArray } = { path: "reference/*", }, { - verbs: ["POST", "PUT", "OPTIONS"], + verbs: ["POST", "PUT", "PATCH", "OPTIONS"], path: "v3/technical-records/*", }, ], diff --git a/tests/unit/functions/authoriser.unitTest.ts b/tests/unit/functions/authoriser.unitTest.ts index 56cf259..56e484f 100644 --- a/tests/unit/functions/authoriser.unitTest.ts +++ b/tests/unit/functions/authoriser.unitTest.ts @@ -122,7 +122,7 @@ describe("authorizer() unit tests", () => { const returnValue: APIGatewayAuthorizerResult = await authorizer(event, exampleContext()); expect(returnValue.principalId).toEqual(jwtJson.payload.sub); - expect(returnValue.policyDocument.Statement.length).toEqual(12); + expect(returnValue.policyDocument.Statement.length).toEqual(13); }); it("should return an accurate policy based on functional roles", async () => { @@ -131,7 +131,7 @@ describe("authorizer() unit tests", () => { const returnValue: APIGatewayAuthorizerResult = await authorizer(event, exampleContext()); expect(returnValue.principalId).toEqual(jwtJson.payload.sub); - expect(returnValue.policyDocument.Statement.length).toEqual(12); + expect(returnValue.policyDocument.Statement.length).toEqual(13); const post: { Action: string; Effect: string; Resource: string } = returnValue.policyDocument.Statement[0] as unknown as { Action: string; Effect: string; Resource: string }; expect(post.Effect).toEqual("Allow");