73 Commits

Author SHA1 Message Date
Philipp Muens
eb4d17d1b5 Fix linting issues 2016-09-27 12:04:15 +02:00
Philipp Muens
3e93d244d3 Add subdirectory for tmpDirs
Add a subdirectory so that all directories which are generated for the tests are stored there.
Furthermore old tests are updated so that they use the tmpDir name generated by the test
utils functionality. This makes working with Docker way better as the tmpDirs are not created
It the root directory.
2016-09-27 11:48:14 +02:00
Daniel Koo
296810c8b3 - ensure the Create/Update CloudFormation templates are always written to disk, even if the noDeploy option was not specified
- using ES6 arrow functions
- added tests
- added to the documentation
2016-09-16 09:58:05 +10:00
Florian Motlik
dcaa33d908 Merge pull request #2030 from Anichale/update-sinon-stubbed-tests
Issue #1899 : Update sinon stubbed tests to always check for correct args
2016-09-12 21:33:23 +02:00
Florian Motlik
1364f05f61 Merge pull request #1917 from johncmckim/issue-1777
Update packaging to support individual packages per function
2016-09-05 14:56:07 +02:00
John McKim
02c0e6c369 increase coverage of artifact uploads 2016-09-05 22:37:13 +10:00
Alexander Anich
8d6748b9eb Updates sinon stubbed tests in plugins/aws
Creates test cases to check for correct arugments from sinon stubs
2016-09-02 17:40:42 -10:00
Nick den Engelsman
c2d2152679 Moved monitorStack to shared lib/plugins/aws/lib 2016-09-02 13:35:29 +02:00
Nick den Engelsman
c347bf8544 Improve check if stack created and test suite 2016-09-02 13:19:07 +02:00
Nick den Engelsman
9d2a990364 update test description for monitorStack 2016-09-02 13:19:07 +02:00
Nick den Engelsman
7ed013f98d refactor monitorUpdate within lib/plugins/aws/deploy/lib/updateStack.js to keep track of initial stack error during deployment and show all stack events with --verbose 2016-09-02 13:19:07 +02:00
John McKim
ea864be300 merge with master 2016-09-02 07:17:57 +10:00
John McKim
44823ebc71 merge with master 2016-09-01 07:30:17 +10:00
Eslam A. Hefnawy
6bf34263df switched back the deployment bucket name logical id 2016-09-01 01:08:34 +09:00
Eslam A. Hefnawy
ae4f094bc7 fix linting issues 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
d475b386a4 logical IDs updates 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
959d0a17d3 updated tests with new logical ids 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
4d6ebd740f fixed conflicts with master 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
714020e65d added unit tests for variables class 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
c849c7d11d removed more references to serverless.env.yaml 2016-08-31 16:37:58 +09:00
John McKim
5a5240ccc5 fix tests after merge with master 2016-08-25 07:39:39 +10: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
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
030722c313 Add separate methods to upload artifacts into a dedicated S3 directory 2016-08-24 11:37:19 +02:00
Philipp Muens
5fedf6a4f9 Add getTmpDir util method and refactor tests 2016-08-23 13:51:16 +02:00
Philipp Muens
e13abdc6c0 Remove unnecessary orchestrator method for CloudFormation upload method 2016-08-19 07:42:57 +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
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
Philipp Muens
6b3d59e5bd Add fix for empty, but defined Resources / Outputs definitions 2016-08-16 06:24:50 +02: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
Philipp Muens
9fadb31d0b Introduce provider.compiledCloudFormationTemplate section
This section is used to store the core CloudFormation template and merge compiled resources into it.
2016-08-15 15:19:04 +02:00
Philipp Muens
121df4d1b8 Extend merge test coverage 2016-08-15 07:12:49 +02:00
Philipp Muens
6513a1c6fe Refactor merging of custom provider resources 2016-08-14 20:52:06 +02:00
Philipp Muens
d4bf0342d7 Add full custom resource merging support 2016-08-14 17:44:29 +02:00
Philipp Muens
0e3ca57ff3 DRY out loading of core CloudFormation template 2016-08-13 08:22:58 +02:00
John McKim
b28ecbeb31 merge from master 2016-08-13 08:06:09 +10:00
John McKim
c99948cc8b update to --noDeploy 2016-08-13 07:59:37 +10:00
Philipp Muens
0944e6dde6 Refactor resource merging
So that the custom provider resources are not stored in a temp variable.
Furthermore the whole CloudFormation content is available in this.serverless.service.resources.
2016-08-12 17:42:18 +02:00
Philipp Muens
93086a192f Update custom provider resource merging 2016-08-12 15:52:21 +02:00
Philipp Muens
ffceabc7c5 Rename lifecycle events of deploy plugin 2016-08-11 16:23:17 +02:00
John McKim
53a544c364 fix issue with writing the cf templates to disk 2016-08-11 05:56:10 +10:00
John McKim
d334d1721f Ensure cf template is always written to disk 2016-08-11 05:20:13 +10:00
John McKim
e4f36d42f1 Add a dryRun flag to deploy 2016-08-10 16:59:51 +10:00
Philipp Muens
1b08e55f9e Fix linting issue 2016-08-08 08:27:26 +02:00
Philipp Muens
a0f7bb20d1 Add tests to increase test coverage 2016-08-08 08:27:26 +02:00