From 5bdd23beb7a1967beba1d9d376c1db7ddad34531 Mon Sep 17 00:00:00 2001 From: Darcy Ye Date: Fri, 8 Nov 2024 11:07:17 +0800 Subject: [PATCH] fix: api integration tests --- .../tests/api/application/application.secrets.test.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/integration-tests/src/tests/api/application/application.secrets.test.ts b/packages/integration-tests/src/tests/api/application/application.secrets.test.ts index 3f4634271e9..301e73139e9 100644 --- a/packages/integration-tests/src/tests/api/application/application.secrets.test.ts +++ b/packages/integration-tests/src/tests/api/application/application.secrets.test.ts @@ -30,18 +30,17 @@ describe('application secrets', () => { it.each(Object.values(ApplicationType))( 'should or not to create application secret for %s applications per type', async (type) => { - const application = await createApplication( - 'application', - type, - cond( + const application = await createApplication('application', type, { + ...cond( type === ApplicationType.Protected && { protectedAppMetadata: { origin: 'https://example.com', subDomain: randomString(), }, } - ) - ); + ), + ...cond(type === ApplicationType.SAML && { isThirdParty: true }), + }); expect(application.secret).toMatch(new RegExp(`^${internalPrefix}`)); // Check the default secret