Skip to content

Commit

Permalink
Updating DeockerV0 and DockerV1 for node 10 migration (#14166)
Browse files Browse the repository at this point in the history
* Updating DeockerV0 and DockerV1 for node 10 migration

* Adding azure-pipelines-task-lib to package.json
  • Loading branch information
shigupt202 committed Jan 7, 2021
1 parent b544b38 commit bee751c
Show file tree
Hide file tree
Showing 10 changed files with 743 additions and 130 deletions.
28 changes: 14 additions & 14 deletions Tasks/DockerV0/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('Docker Suite', function() {
after(function () {
});

it('Runs successfully for docker build', (done:MochaDone) => {
it('Runs successfully for docker build', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.buildImage;
Expand All @@ -38,7 +38,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker build with memory limit', (done:MochaDone) => {
it('Runs successfully for docker build with memory limit', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.buildImage;
Expand All @@ -53,7 +53,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker build for invalid image name', (done:MochaDone) => {
it('Runs successfully for docker build for invalid image name', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.buildImage;
Expand All @@ -69,7 +69,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs fails for docker build for invalid image name and modify image name false', (done:MochaDone) => {
it('Runs fails for docker build for invalid image name and modify image name false', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.buildImage;
Expand All @@ -85,7 +85,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker build for invalid image name and additional image tag', (done:MochaDone) => {
it('Runs successfully for docker build for invalid image name and additional image tag', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.buildImage;
Expand All @@ -103,7 +103,7 @@ describe('Docker Suite', function() {
});


it('Runs successfully for docker build with latest tag', (done:MochaDone) => {
it('Runs successfully for docker build with latest tag', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.buildImage;
Expand All @@ -118,7 +118,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker run image', (done:MochaDone) => {
it('Runs successfully for docker run image', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.runImage;
Expand All @@ -132,7 +132,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker run image with memory limit', (done:MochaDone) => {
it('Runs successfully for docker run image with memory limit', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.runImage;
Expand All @@ -147,7 +147,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker tag image from image names file', (done:MochaDone) => {
it('Runs successfully for docker tag image from image names file', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.tagImages;
Expand All @@ -163,7 +163,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker push image', (done:MochaDone) => {
it('Runs successfully for docker push image', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.pushImage;
Expand All @@ -177,7 +177,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker push image from image names file', (done:MochaDone) => {
it('Runs successfully for docker push image from image names file', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.pushImages;
Expand All @@ -191,7 +191,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker pull image', (done:MochaDone) => {
it('Runs successfully for docker pull image', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.dockerCommand;
Expand All @@ -205,7 +205,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker build with ACR', (done:MochaDone) => {
it('Runs successfully for docker build with ACR', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.buildImage;
Expand All @@ -220,7 +220,7 @@ describe('Docker Suite', function() {
done();
});

it('Runs successfully for docker build with ACR and qualify image name', (done:MochaDone) => {
it('Runs successfully for docker build with ACR and qualify image name', (done:Mocha.Done) => {
let tp = path.join(__dirname, 'TestSetup.js');
let tr : ttm.MockTestRunner = new ttm.MockTestRunner(tp);
process.env[shared.TestEnvVars.action] = shared.ActionTypes.buildImage;
Expand Down
Loading

0 comments on commit bee751c

Please sign in to comment.