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

View File

@@ -15,11 +15,12 @@
* limitations under the License.
*/
import nock from 'nock';
import { BaseMock } from '../base.mock';
export class ModelJsonBpmMock extends BaseMock {
get200EditorDisplayJsonClient(): void {
this.createNockWithCors()
nock(this.host, { encodedQueryParams: true })
.get('/activiti-app/app/rest/models/1/model-json')
.reply(200, {
elements: [
@@ -86,7 +87,7 @@ export class ModelJsonBpmMock extends BaseMock {
}
get200HistoricEditorDisplayJsonClient(): void {
this.createNockWithCors()
nock('https://127.0.0.1:9999', { encodedQueryParams: true })
.get('/activiti-app/app/rest/models/1/history/1/model-json')
.reply(200, {
elements: [