mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Add Docker image and tests
This commit is contained in:
parent
12f8c16dde
commit
5a0aeb708b
@ -79,3 +79,7 @@ services:
|
||||
image: python2.7
|
||||
volumes:
|
||||
- ./tmp/serverless-integration-test-spotinst-python:/app
|
||||
webtasks-nodejs:
|
||||
image: node:6.10.3
|
||||
volumes:
|
||||
- ./tmp/serverless-integration-test-webtasks-nodejs:/app
|
||||
|
||||
@ -462,6 +462,19 @@ describe('Create', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should generate scaffolding for "webtasks-nodejs" template', () => {
|
||||
process.chdir(tmpDir);
|
||||
create.options.template = 'webtasks-nodejs';
|
||||
|
||||
return create.create().then(() => {
|
||||
const dirContent = fs.readdirSync(tmpDir);
|
||||
expect(dirContent).to.include('package.json');
|
||||
expect(dirContent).to.include('serverless.yml');
|
||||
expect(dirContent).to.include('handler.js');
|
||||
expect(dirContent).to.include('.gitignore');
|
||||
});
|
||||
});
|
||||
|
||||
it('should generate scaffolding for "plugin" template', () => {
|
||||
process.chdir(tmpDir);
|
||||
create.options.template = 'plugin';
|
||||
|
||||
@ -24,3 +24,4 @@ integration-test aws-nodejs-ecma-script
|
||||
integration-test google-nodejs
|
||||
integration-test spotinst-nodejs
|
||||
integration-test spotinst-python
|
||||
integration-test webtasks-nodejs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user