Skip to content

Commit

Permalink
Upgrade InstallSSHKeyV0 to NodeJS 16 (#16945)
Browse files Browse the repository at this point in the history
* Task and tests migrated to Node16

* Fixed the problem with doubling libraries

* Rolled back libraries version
  • Loading branch information
Roman-Shchukin authored Sep 28, 2022
1 parent 3928216 commit 93bcd60
Show file tree
Hide file tree
Showing 6 changed files with 186 additions and 91 deletions.
12 changes: 6 additions & 6 deletions Tasks/InstallSSHKeyV0/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe('InstallSSHKey Suite', function () {
after(() => {
});

it('Start ssh-agent', (done: MochaDone) => {
it('Start ssh-agent', (done: Mocha.Done) => {
this.timeout(1000);

let testPath: string = path.join(__dirname, 'L0StartAgent.js');
Expand All @@ -25,7 +25,7 @@ describe('InstallSSHKey Suite', function () {
done();
});

it('Start ssh-agent (no public key specified)', (done: MochaDone) => {
it('Start ssh-agent (no public key specified)', (done: Mocha.Done) => {
this.timeout(1000);

let testPath: string = path.join(__dirname, 'L0StartAgentWithoutPubKey.js');
Expand All @@ -39,7 +39,7 @@ describe('InstallSSHKey Suite', function () {
done();
});

it('SSH key already installed', (done: MochaDone) => {
it('SSH key already installed', (done: Mocha.Done) => {
this.timeout(1000);

let testPath: string = path.join(__dirname, 'L0KeyAlreadyInstalled.js');
Expand All @@ -53,7 +53,7 @@ describe('InstallSSHKey Suite', function () {
done();
});

it('SSH key already installed (no public key specified)', (done: MochaDone) => {
it('SSH key already installed (no public key specified)', (done: Mocha.Done) => {
this.timeout(1000);

let testPath: string = path.join(__dirname, 'L0KeyAlreadyInstalledWithoutPubKey.js');
Expand All @@ -67,7 +67,7 @@ describe('InstallSSHKey Suite', function () {
done();
});

it('SSH key malformed', (done: MochaDone) => {
it('SSH key malformed', (done: Mocha.Done) => {
this.timeout(1000);

let testPath: string = path.join(__dirname, 'L0KeyMalformed.js');
Expand All @@ -81,7 +81,7 @@ describe('InstallSSHKey Suite', function () {
done();
});

it('SSH key uninstalled from running agent', (done: MochaDone) => {
it('SSH key uninstalled from running agent', (done: Mocha.Done) => {
this.timeout(1000);

const testPath: string = path.join(__dirname, 'L0RemoveFromAgent.js');
Expand Down
2 changes: 1 addition & 1 deletion Tasks/InstallSSHKeyV0/make.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"rm": [
{
"items": [
"node_modules/azure-pipelines-tasks-securefiles-common/node_modules/vsts-task-lib"
"node_modules/azure-pipelines-tasks-securefiles-common/node_modules/azure-pipelines-task-lib"
],
"options": "-Rf"
}
Expand Down
Loading

0 comments on commit 93bcd60

Please sign in to comment.