From f2ea3de989e244bb3c4c5a8851dbc1a5331eeadf Mon Sep 17 00:00:00 2001 From: Kashish Mittal Date: Wed, 7 Aug 2024 13:18:25 -0400 Subject: [PATCH] updated tests for validate-entity Signed-off-by: Kashish Mittal --- plugins/catalog-backend/src/service/createRouter.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/catalog-backend/src/service/createRouter.test.ts b/plugins/catalog-backend/src/service/createRouter.test.ts index 5687bc1f85..57d476ac10 100644 --- a/plugins/catalog-backend/src/service/createRouter.test.ts +++ b/plugins/catalog-backend/src/service/createRouter.test.ts @@ -742,6 +742,7 @@ describe('createRouter readonly disabled', () => { expect(response.status).toEqual(200); expect(orchestrator.process).toHaveBeenCalledTimes(1); expect(orchestrator.process).toHaveBeenCalledWith({ + credentials: mockCredentials.user(), entity: { apiVersion: 'a', kind: 'b', @@ -779,6 +780,7 @@ describe('createRouter readonly disabled', () => { expect(response.body.errors[0].message).toEqual('Invalid entity name'); expect(orchestrator.process).toHaveBeenCalledTimes(1); expect(orchestrator.process).toHaveBeenCalledWith({ + credentials: mockCredentials.user(), entity: { apiVersion: 'a', kind: 'b',