466 Commits

Author SHA1 Message Date
Philipp Muens
a56c28f554 Add documentation for request / response templates support 2016-08-31 09:23:44 +02:00
Philipp Muens
c036836bfa Remove automatic enclosing of response header values with single quotes 2016-08-31 09:23:44 +02:00
Philipp Muens
28f2aab1e2 Add support for custom request templates 2016-08-31 09:23:44 +02:00
Philipp Muens
d6d2f83bee Refactor default request template setup
To be added inline (rather than referenced from the CloudFormation
"Mappings" section) because they're independent and not re-used anyway.
2016-08-31 09:23:44 +02:00
Philipp Muens
9afc5834d5 Add support for merging of custom headers 2016-08-31 09:23:44 +02:00
Philipp Muens
1c63524446 Add custom response template support 2016-08-31 09:23:44 +02:00
Philipp Muens
c3d34b2d30 Add support for default text/html response template 2016-08-31 09:23:44 +02:00
Philipp Muens
495c5d8eea Add separate request template for x-www-form-urlencoded content type 2016-08-31 09:23:44 +02:00
Philipp Muens
262fabd75a Refactor application/json request template usage
To be referenced from the CloudFormations Mappings section.
2016-08-31 09:23:44 +02:00
Kenneth Falck
68b76f9132 fix #1983 - rename default custom authorizer header to Authorization 2016-08-31 00:01:44 +03:00
Florian Motlik
f39f54c608 Merge pull request #1937 from serverless/add-path-option-to-create-plugin
Add path option to create plugin
2016-08-29 10:53:25 +02:00
堀家隆宏
d9c62e68fb Add iamRoleARN to serverless.yml 2016-08-28 22:36:06 +09:00
Florian Motlik
7715c014fd Merge pull request #1970 from tomesch/master
Fix authorizer creation error when no TTL is supplied (fixes #1948)
2016-08-26 17:05:27 +02:00
Thomas Eschemann
10ab716c09 fix authorizer creation error when no TTL is supplied
fix lint issues
2016-08-26 12:39:40 +02:00
rowan
b3f9cbf627 Include JSON-based example snippet. 2016-08-26 20:32:41 +10:00
rowan
0d5b82376f Include commented-out IAM statements in templates' serverless.yml. 2016-08-26 19:45:27 +10:00
Philipp Muens
b060e5e3a3 Update tests to use new createTmpDir testUtil method 2016-08-25 14:22:00 +02:00
Philipp Muens
cea2c1e284 Add functionality so that the service is renamed according to the path 2016-08-25 14:22:00 +02:00
Philipp Muens
61f3e5be34 Add corresponding documentation 2016-08-25 14:22:00 +02:00
Philipp Muens
9eb85b8bb7 Add path option to create plugin
So that one can create a service in other directories than the cwd.
2016-08-25 14:22:00 +02:00
Florian Motlik
39c330569e Merge pull request #1906 from serverless/update-artifact-deployment-process
Update artifact deployment process
2016-08-24 16:27:04 +02:00
Florian Motlik
4dce8b65db Merge pull request #1857 from miltador/patch-1
Fixed platform detection for generating zip
2016-08-24 16:05:12 +02:00
Philipp Muens
d72617d833 Add check if object matches regex 2016-08-24 11:37:19 +02:00
Philipp Muens
ede355cc5d Add resolving for bucket name retrieval when noDeploy option is set 2016-08-24 11:37:19 +02:00
Philipp Muens
bcc74df4dd Update documentation 2016-08-24 11:37:19 +02:00
Philipp Muens
b72cd2f882 Remove timestamp from zipFileName
The timestamp is not necessary anymore as the zip file is uploaded into a timestamped
directory on S3.
2016-08-24 11:37:19 +02:00
Philipp Muens
48191fc3ed Move saving of bucket name into own method
So that it's more encapsulated and easier to test in isolation.
2016-08-24 11:37:19 +02:00
Philipp Muens
f038e78b06 Remove dead deployFunctions code 2016-08-24 11:37:19 +02:00
Philipp Muens
bb916b1c26 Add cleanup S3 bucket functionality 2016-08-24 11:37:19 +02:00
Philipp Muens
3cac122ed9 Update compileFunctions code
So that the S3Key properties are prepended with the artifactDirectoryName.
2016-08-24 11:37:19 +02:00
Philipp Muens
030722c313 Add separate methods to upload artifacts into a dedicated S3 directory 2016-08-24 11:37:19 +02:00
Philipp Muens
65d420cd92 Move tmpDir generations into beforeEach hooks where appropriate 2016-08-23 19:44:34 +02:00
Philipp Muens
5fedf6a4f9 Add getTmpDir util method and refactor tests 2016-08-23 13:51:16 +02:00
Philipp Muens
33d27b9160 Fix noDeploy errors when stack is not created 2016-08-22 15:29:23 +02:00
Vasiliy Solovey
3b9ef85846 Merged upstream master and resolved conflicts 2016-08-19 15:01:36 +03:00
Philipp Muens
f63a481916 Merge pull request #1886 from serverless/fix-hitting-cloudformation-template-body-limit
Fix hitting CloudFormation TemplateBody limit
2016-08-19 08:15:52 +02:00
Philipp Muens
e13abdc6c0 Remove unnecessary orchestrator method for CloudFormation upload method 2016-08-19 07:42:57 +02:00
Philipp Muens
4937140094 Update outdated doc references 2016-08-19 07:21:52 +02:00
Philipp Muens
ac6e04068f Fix hitting CloudFormation TemplateBody limit
The CloudFormation template will now be uploaded to S3 and referenced from there
in the updateStack method.
2016-08-18 12:09:44 +02:00
Nick Chisiu
16aa6581ab fix #1854 - update npm devDependencies packages (#1879)
* fix #1854 - added latest version of eslint-config-airbnb-base package

* fix #1854 - added latest npm shrinkwrap scheme

* fix #1854 - added latest npm coveralls package

* fix #1854 - added latest npm eslint package

* fix #1854 - added latest npm eslint-config-airbnb package

* fix #1854 - added latest npm eslint-plugin-import package

* fix #1854 - added latest npm eslint-plugin-jsx-a11y package

* fix #1854 - added latest npm eslint-plugin-react package

* fix #1854 - fixed estlint new-parens errors for integration test

* fix #1854 - fixed estlint new-parens errors for yaml parsers tests

* fix #1854 - fixed estlint max-len errors for util tests

* fix #1854 - disabled no-extraneous-dependencies on eslintrc for NodeJS 4 incapability on this feature

* fix #1854 - fixed eslint new-parens errors for Service tests

* fix #1854 - fixed eslint new-parens errors for Serverless tests

* fix #1854 - fixed eslint new-parens errors for plugin manager tests

* fix #1854 - fixed eslint new-parens errors for plugin tracking tests

* fix #1854 - fixed eslint new-parens errors for plugin package zipService lib

* fix #1854 - fixed eslint new-parens errors for plugin package zipService tests

* fix #1854 - fixed eslint trailing spaces errors for plugin package zipService lib

* fix #1854 - fixed eslint new-parens errors for plugin package cleanup  tests

* fix #1854 - fixed eslint new-parens errors for plugin create tests

* fix #1854 - fixed eslint dot same line expectation error on plugin aws logs index

* fix #1854 - fixed eslint operator assignment error on plugin aws logs index

* fix #1854 - fixed eslint dot location error on plugin aws invoke tests

* fix #1854 - fixed eslint new-parens error on plugin aws invoke tests

* fix #1854 - fixed eslint new-parens error on plugin aws deployFunction tests

* fix #1854 - fixed eslint new-parens error on plugin aws deploy uploadDeploymentPackage tests

* fix #1854 - fixed eslint new-parens error on plugin aws deploy updateStack tests

* fix #1854 - fixed eslint new-parens error on plugin aws deploy createStack tests

* fix #1854 - fixed eslint new-parens error on plugin aws deploy apiGateway lib deployment

* fix #1854 - fixed eslint unary typeof whitespace req error on Serverless Service class

* fix #1854 - fixed eslint unary typeof whitespace req error on Serverless Service class ( second fix )

* fix #1854 - fixed eslint no-lonely-if req error on Serverless Service class

* fix #1854 - disabled react/require-extension on eslintrc because it's deprecated

* fix #1854 - AwsCompileApigEvents #constructor() should resolve if no functions are given:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - createStack #postCreate() should resolve:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - emptyS3Bucket #deleteObjects() should resolve if objectsInBucket is empty:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - AwsInvoke #extendedValidate() should resolve if path is not given:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - #cleanup() should resolve if the .serverless directory is not present:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 -#validate() should resolve if servicePath is given:
                Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 -  Service #load() should resolve if no servicePath is found:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - added latest mocha package

* fix #1854 - added latest sinon npm package

* fix #1854 - serverless/lib/plugins/aws/deploy/tests/createStack.js 136:48  error  Missing semicolon  semi

* fix #1854 - serverless/lib/plugins/package/tests/cleanup.js 35:7  error  Missing semicolon  semi

* fix #1854 - serverless/lib/plugins/package/tests/validate.js 22:49  error  Missing semicolon  semi

* fix #1854 - added latest npm shrinkwrap

* fix #1854 - fixed no-extra-boolean-cast eslint error on aws deploy apiGateway methods

* fix #1854 - fixed  new-parens eslint error on serverless tests for Service class
2016-08-18 11:51:09 +02:00
Florian Motlik
f8ee88be0d Merge pull request #1863 from bfhobbes/fix-issue-1860-bad-zipi-when-deploying-from-windows
fix #1860 - Cannot find module for any node_modules
2016-08-18 09:48:37 +02:00
Philipp Muens
36ae568147 Fix and refactor noDeploy support and add tests 2016-08-17 11:08:44 +02:00
Florian Motlik
83a99b598a Merge pull request #1808 from johncmckim/issue-1496
WIP: Add DRYrun support
2016-08-16 10:34:39 +02:00
Florian Motlik
85f4084e6b Merge pull request #1844 from serverless/add-full-custom-resource-merging-support
Add full custom resource merging support
2016-08-16 10:31:30 +02:00
John McKim
5bd51b0056 fix deployment message 2016-08-16 17:09:08 +10:00
Philipp Muens
6b3d59e5bd Add fix for empty, but defined Resources / Outputs definitions 2016-08-16 06:24:50 +02:00
John McKim
2335f25400 fix build after merge 2016-08-16 08:04:55 +10:00
John McKim
82e5e97945 Merge branch 'master' of github.com:serverless/serverless into issue-1496 2016-08-16 08:04:26 +10:00
John McKim
ce52d9d3e9 update terminology and docs 2016-08-16 07:53:24 +10:00
Andrew McDonald
0f2659c5a3 Fixing trailing space
npm test isn't working at all for me. ( windows )
2016-08-15 12:39:28 -07:00