Skip to content

Commit

Permalink
NuGetRestoreV1: Remove incorrect L0 tests (#17669) (#17670)
Browse files Browse the repository at this point in the history
* NuGetRestoreV1 remove failing untestable l0 tests

* bump task

* revert
  • Loading branch information
embetten authored Jan 26, 2023
1 parent ef000bb commit a24b4be
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 30 deletions.
28 changes: 0 additions & 28 deletions Tasks/NuGetRestoreV1/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,34 +168,6 @@ describe('NuGetRestore Suite', function () {
done();
});

it('restore select nuget.org source warns', (done: Mocha.Done) => {
this.timeout(1000);

let tp = path.join(__dirname, './nugetOrgBehaviorWarn.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

tr.run()
assert(tr.invokedToolCount == 1, 'should have run NuGet once');
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe restore c:\\agent\\home\\directory\\packages.config -NonInteractive -ConfigFile c:\\agent\\home\\directory\\tempNuGet_.config'), 'it should have run NuGet with nuget.org source');
assert(tr.stdOutContained('NuGet output here'), "should have nuget output");
assert(tr.succeeded, 'should have succeeded with issues');
assert.equal(tr.errorIssues.length, 0, "should have no errors");
done();
});

it('restore select nuget.org source fails', (done: Mocha.Done) => {
this.timeout(1000);

let tp = path.join(__dirname, './nugetOrgBehaviorFail.js')
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);

tr.run()
assert(tr.invokedToolCount == 0, 'should not run nuget');
assert(tr.failed, 'should have Failed');
assert.equal(tr.errorIssues.length, 2, "should have 2 errors");
done();
});

it('restore select nuget.org source succeeds with config', (done: Mocha.Done) => {
this.timeout(1000);

Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetRestoreV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 214,
"Minor": 216,
"Patch": 0
},
"runsOn": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/NuGetRestoreV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 214,
"Minor": 216,
"Patch": 0
},
"runsOn": [
Expand Down

0 comments on commit a24b4be

Please sign in to comment.