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

@@ -56,16 +56,15 @@ describe('Upload', () => {
assert.equal(data.entry.name, 'testFile.txt');
});
it('upload file should get 409 if new name clashes with an existing file in the current parent folder', async () => {
it('upload file should get 409 if new name clashes with an existing file in the current parent folder', (done) => {
uploadMock.get409CreationFileNewNameClashes();
const file = createTestFileStream('testFile.txt');
try {
await uploadApi.uploadFile(file);
assert.fail('Expected an error to be thrown');
} catch (error) {
uploadApi.uploadFile(file).catch((error: any) => {
assert.equal(error.status, 409);
}
done();
});
});
it('upload file should get 200 and rename if the new name clashes with an existing file in the current parent folder and autorename is true', async () => {