Revert "AAE-30882 Replace superagent (#11134)" (#11210)

* Revert "AAE-30882 Replace superagent (#11134)"

This reverts commit a347b20f20.

* AAE-0000 - Fixed lock for cli and adf
This commit is contained in:
Vito Albano
2025-09-19 12:44:06 +01:00
committed by GitHub
parent ef29bafc75
commit 91d6b80965
57 changed files with 3074 additions and 1051 deletions
@@ -16,10 +16,11 @@
*/
import { BaseMock } from '../base.mock';
import nock from 'nock';
export class AuthorityClearanceMock extends BaseMock {
get200AuthorityClearanceForAuthority(authorityId: string): void {
this.createNockWithCors()
nock(this.host, { encodedQueryParams: true })
.get('/alfresco/api/-default-/public/gs/versions/1/cleared-authorities/' + authorityId + '/clearing-marks?skipCount=0&maxItems=100')
.reply(200, {
list: {
@@ -93,7 +94,7 @@ export class AuthorityClearanceMock extends BaseMock {
}
post200AuthorityClearanceWithSingleItem(authorityId: string): void {
this.createNockWithCors()
nock(this.host, { encodedQueryParams: true })
.post('/alfresco/api/-default-/public/gs/versions/1/cleared-authorities/' + authorityId + '/clearing-marks')
.reply(200, {
entry: {
@@ -105,7 +106,7 @@ export class AuthorityClearanceMock extends BaseMock {
}
post200AuthorityClearanceWithList(authorityId: string): void {
this.createNockWithCors()
nock(this.host, { encodedQueryParams: true })
.post('/alfresco/api/-default-/public/gs/versions/1/cleared-authorities/' + authorityId + '/clearing-marks')
.reply(200, {
list: {