Skip to content

Commit 5f278df

Browse files
CVE braces fix Part1 (#20092)
* [CVE|AzureSpringCloudV0] Fix brances - Bump Braces for AzureSpringCloudV0 - bump task-lib && artifact-engine * [CVE|DownloadBuildArtifactsV0] Fix brances - Bump Braces for DownloadBuildArtifactsV0 - bump task-lib && artifact-engine * [CVE|DownloadFileshareArtifactsV1] Fix brances - Bump Braces for DownloadFileshareArtifactsV1 - bump task-lib && artifact-engine * [CVE|GradleV2] Fix brances - Bump Braces for GradleV2 - Bumped task-lib * [CVE|GradleV3] Fix brances - Bump Braces for GradleV3 - Bumped task-lib
1 parent 63b2520 commit 5f278df

File tree

103 files changed

+17310
-19345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+17310
-19345
lines changed

Tasks/AzureSpringCloudV0/Tests/package-lock.json

Lines changed: 116 additions & 272 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/AzureSpringCloudV0/Tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
1919
"dependencies": {
20-
"nock": "9.0.11",
21-
"mocha": "8.3.2"
20+
"mocha": "^10.5.1",
21+
"nock": "9.0.11"
2222
}
2323
}

Tasks/AzureSpringCloudV0/_buildConfigs/Node20/Tests/package-lock.json

Lines changed: 105 additions & 209 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/AzureSpringCloudV0/_buildConfigs/Node20/Tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
1919
"dependencies": {
20-
"nock": "9.0.11",
21-
"mocha": "8.3.2"
20+
"mocha": "^10.5.1",
21+
"nock": "9.0.11"
2222
}
2323
}

Tasks/AzureSpringCloudV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"preview": false,
1919
"version": {
2020
"Major": 0,
21-
"Minor": 241,
21+
"Minor": 242,
2222
"Patch": 0
2323
},
2424
"minimumAgentVersion": "2.104.1",

Tasks/AzureSpringCloudV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"preview": false,
1919
"version": {
2020
"Major": 0,
21-
"Minor": 241,
21+
"Minor": 242,
2222
"Patch": 0
2323
},
2424
"minimumAgentVersion": "2.104.1",

Tasks/DownloadBuildArtifactsV0/Tests/L0.ts

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,63 +3,52 @@ import path = require('path');
33
import * as ttm from 'azure-pipelines-task-lib/mock-test';
44

55
describe('DownloadBuildArtifactsV0 Suite', function () {
6-
before(() => {
7-
});
8-
9-
after(() => {
10-
});
11-
12-
it('No build type provided should fail', (done) => {
6+
it('No build type provided should fail', async () => {
137
const tp: string = path.join(__dirname, 'L0NoBuildTypeProvidedFail.js');
148
const tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
159

1610
try {
17-
tr.run();
11+
await tr.runAsync();
1812
assert(tr.stdOutContained('Input required: buildType'));
1913
assert(tr.failed, 'task should have failed');
20-
done();
2114

2215
} catch (err) {
2316
console.log(tr.stdout);
2417
console.log(tr.stderr);
2518
console.log(err);
26-
done(err);
19+
throw err;
2720
};
2821
}).timeout(10000);
2922

30-
it('No download path provided should fail', (done) => {
23+
it('No download path provided should fail', async () => {
3124
const tp: string = path.join(__dirname, 'L0NoDownloadPathProvidedFail.js');
3225
const tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
3326

3427
try {
35-
tr.run();
28+
await tr.runAsync();
3629
assert(tr.stdOutContained('Input required: downloadPath'));
3730
assert(tr.failed, 'task should have failed');
38-
done();
39-
4031
} catch (err) {
4132
console.log(tr.stdout);
4233
console.log(tr.stderr);
4334
console.log(err);
44-
done(err);
35+
throw err;
4536
};
4637
}).timeout(5000);;
4738

48-
it('No download type provided should fail', (done) => {
39+
it('No download type provided should fail', async () => {
4940
const tp: string = path.join(__dirname, 'L0NoDownloadTypeProvidedFail.js');
5041
const tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
5142

5243
try {
53-
tr.run();
44+
await tr.runAsync();
5445
assert(tr.stdOutContained('Input required: downloadType'));
5546
assert(tr.failed, 'task should have failed');
56-
done();
57-
5847
} catch (err) {
5948
console.log(tr.stdout);
6049
console.log(tr.stderr);
6150
console.log(err);
62-
done(err);
51+
throw err;
6352
};
6453
}).timeout(5000);;
6554
});

0 commit comments

Comments
 (0)