115 Commits

Author SHA1 Message Date
Doug Moscrop
2aab2a2ccc fix #2226 non-aws providers throw an error 2016-09-27 11:59:31 -04:00
Florian Motlik
55e84b2f23 Merge pull request #2214 from serverless/timeout-test-fixes
Allow integration tests longer timeouts
2016-09-27 12:36:45 +02:00
Florian Motlik
6e4b204f16 remove arrow syntax 2016-09-27 12:17:52 +02:00
Florian Motlik
d6bdef35ce Allow integration tests longer timeouts 2016-09-27 12:15:38 +02:00
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
Doug Moscrop
4490af73c0 fix Tests not passing on Windows 2016-09-26 09:14:54 -04:00
Florian Motlik
7dd4b4c4f5 Merge pull request #2206 from dougmoscrop/cli_integration_tests
add Integration tests for CLI printing --help
2016-09-26 09:16:50 +02:00
Doug Moscrop
8828042a32 add Integration tests for CLI printing --help 2016-09-25 16:05:21 -04:00
Doug Moscrop
b2f1d54d20 Change describe to it because it contains a test 2016-09-23 18:04:47 -04:00
Florian Motlik
28d74f6ea2 Merge pull request #2045 from Nordstrom/windows-contrib-blockers
Windows contrib blockers
2016-09-23 19:14:21 +02:00
Florian Motlik
953dbfbb1d Merge pull request #2101 from serverless/update-tracking-functionality
Update tracking functionality
2016-09-22 14:35:04 +02:00
kengos
eaaeade956 remove unnecessary requires and method 2016-09-22 11:41:26 +09:00
kengos
cb74b3b1bb add filename option to YAML.load 2016-09-21 22:36:13 +09:00
Philipp Muens
ccba217d5b Add test for writeFileDir() method 2016-09-20 10:03:57 +02:00
Philipp Muens
3bb149f1db Add some mock data to the serverless.service object in the track() tests
So that parts of the data retrieval are run.
2016-09-20 09:08:47 +02:00
Philipp Muens
b69027b686 Add tests for tracking functionality which check the existence of the trackingId 2016-09-20 09:08:47 +02:00
Florian Motlik
67644f7284 Merge pull request #2033 from rowanu/throw-error-on-events-object
Add check (and test) that function.events is an array.
2016-09-19 16:34:14 +02:00
John McKim
9e7f7c89f3 fix bug where variableSyntax is never set from config 2016-09-16 17:15:25 +10:00
Philipp Muens
3d204b4801 Merge pull request #2083 from dougmoscrop/simple_cleanup
Small cleanup/refactoring
2016-09-12 20:52:39 +02:00
Eslam A. Hefnawy
2c3a6ca062 fixed typos 2016-09-12 20:45:50 +09:00
Doug Moscrop
f7f425546e fix Small typo 2016-09-09 21:08:45 -04:00
Eslam A. Hefnawy
2e6cce979d fixed issue when referencing to self or file properties with var references 2016-09-08 17:53:18 +09:00
Smith, Greg W
049aec6bc0 Shorten comment which was too long. 2016-09-06 16:57:34 -07:00
Smith, Greg W
810d52ece5 Use '' instead of null for non-windows command. 2016-09-06 16:32:35 -07:00
Smith, Greg W
a8f4639a41 Adds missing 'os' variable to support testing OS version. 2016-09-06 16:20:04 -07:00
Smith, Greg W
0f1650bbdf Add explicit 'node' prefix to command used to invoke serverless on Windows in unit tests.
This will help fix #2044
2016-09-06 16:06:56 -07:00
rowan
02c6b82d50 Remove (unfinished) test added accidently. 2016-09-06 16:20:46 +10:00
rowan
733f9ba55c Add check (and test) that function.events is an array. 2016-09-06 16:07:34 +10:00
Florian Motlik
cf5ddc67da Merge pull request #1978 from horike37/issue-1271-custom-validation
Add custom validation for plugin options
2016-09-02 07:38:30 +02:00
horike37
1b71f1653a Add a test that succeeds with a custom Regex validation 2016-09-02 08:51:52 +09:00
Eslam A. Hefnawy
3016a555ac fix bug where function name is not using default stage 2016-08-31 17:38:18 +09:00
Eslam A. Hefnawy
1a8a3af31c trimming trailing white space 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
bbce402fb8 sls vars - skip getting value once a value has been found 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
0e32e2c2a3 added more tests for serverless variables 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
61cc5c3c4c added load & populte test to Serverless 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
4932f6a4af updating test 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
89f1605bb5 added recursive nesting for variable system 2016-08-31 16:37:58 +09:00
Eslam A. Hefnawy
5dafeee388 basic new variable system 2016-08-31 16:37:58 +09:00
horike37
1e2bdc1787 Add custom validation for plugin options 2016-08-30 05:33:27 +09:00
Philipp Muens
65d420cd92 Move tmpDir generations into beforeEach hooks where appropriate 2016-08-23 19:44:34 +02:00
Philipp Muens
e425e55d48 Add getTmpFilePath method and update tests 2016-08-23 19:36:31 +02:00
Philipp Muens
5fedf6a4f9 Add getTmpDir util method and refactor tests 2016-08-23 13:51:16 +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
Eslam A. Hefnawy
f05b4e7d55 fixed a bug in service class to load shortcut options 2016-08-11 18:25:11 +09:00
Philipp Muens
440276dd74 Fix wrong wording of tracking test 2016-08-10 13:53:23 +02:00
Philipp Muens
841d1f4d32 Refactor run() test which forwards command to PluginManager 2016-08-10 13:25:01 +02:00
Philipp Muens
2fe1d3eddf Increase test coverage for Serverless class 2016-08-10 11:59:13 +02:00
kengos
c3041049f2 fix eslint 2016-08-08 18:38:03 +09:00