AAE-30882 - Checking why is ok locally but fails on CI

This commit is contained in:
VitoAlbano
2025-09-05 13:44:31 +01:00
committed by Vito Albano
parent 3a3d202b54
commit c5c558d04d
3 changed files with 25 additions and 3 deletions

View File

@@ -82,6 +82,20 @@ export class EcmAuthMock extends BaseMock {
});
}
get401InvalidRequest(): void {
this.createNockWithCors()
.get('/.*tickets.*/')
.reply(401, {
error: {
errorKey: 'framework.exception.ApiDefault',
statusCode: 401,
briefSummary: '05210059 Authentication failed for Web Script org/alfresco/api/ResourceWebScript.get',
stackTrace: 'For security reasons the stack trace is no longer displayed, but the property is kept for previous versions.',
descriptionURL: 'https://api-explorer.alfresco.com'
}
});
}
get403Response(): void {
this.createNockWithCors()
.post('/alfresco/api/-default-/public/authentication/versions/1/tickets', {