Skip to content

Commit

Permalink
feat(675): Add _startFrozen() and _stopFrozen() (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav Ravichandran authored and tkyi committed Feb 13, 2019
1 parent b33c632 commit f3a3e2b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
18 changes: 18 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,24 @@ class DockerExecutor extends Executor {
return Promise.resolve(null);
}

/**
* Starts a new frozen build in an executor
* @method _startFrozen
* @return {Promise} Resolves to null since it's not supported
*/
_startFrozen() {
return Promise.resolve(null);
}

/**
* Stops a new frozen build in an executor
* @method _stopFrozen
* @return {Promise} Resolves to null since it's not supported
*/
_stopFrozen() {
return Promise.resolve(null);
}

/**
* Retreive stats for the executor/breaker
* @method stats
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"docker-parse-image": "^3.0.1",
"dockerode": "^2.5.8",
"hoek": "^5.0.4",
"screwdriver-executor-base": "^6.3.0"
"screwdriver-executor-base": "^7.0.0"
}
}
8 changes: 8 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,4 +472,12 @@ describe('index', function () {
it('resolves to null when calling periodic stop',
() => executor.stopPeriodic().then(res => assert.isNull(res)));
});

describe('frozen', () => {
it('resolves to null when calling frozen start',
() => executor.startFrozen().then(res => assert.isNull(res)));

it('resolves to null when calling frozen stop',
() => executor.stopFrozen().then(res => assert.isNull(res)));
});
});

0 comments on commit f3a3e2b

Please sign in to comment.