AAE-30882 - Fixed unit test for js-api

This commit is contained in:
VitoAlbano
2025-08-22 12:48:30 +01:00
committed by Vito Albano
parent e400bc1068
commit c17c8232af
43 changed files with 575 additions and 460 deletions

View File

@@ -29,13 +29,7 @@ export class OAuthMock extends BaseMock {
}
get200Response(mockToken?: string): void {
nock(this.host).options('/auth/realms/springboot/protocol/openid-connect/token').reply(200, '', {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type, Authorization',
'Access-Control-Max-Age': '86400'
});
nock(this.host, { encodedQueryParams: true })
this.createNockWithCors()
.post('/auth/realms/springboot/protocol/openid-connect/token')
.reply(
200,