51 Commits

Author SHA1 Message Date
GuruRAM
0081afd78c #4839 use lodash check functions (isString, isArray, isObject) instead of native ones. 2018-04-09 21:43:28 +03:00
GuruRAM
78c46ee943 #4839 lint error fixes 2018-04-09 00:14:38 +03:00
GuruRAM
1c180c850a #4839 Configurable local plugins folder feature. 2018-04-08 23:28:52 +03:00
horike37
355bfa01c0 fix the plugin commands bug 2017-12-12 05:05:00 +09:00
Doug Moscrop
778f510c35 fix #4272 use instanceof to detect duplicate plugins and log a warning 2017-09-18 14:49:57 -04:00
Frank Schmid
232732cbac Push coverage again 2017-09-06 18:16:06 +02:00
Frank Schmid
07becabf6c Added alias commands and unit tests. 2017-09-06 17:36:17 +02:00
Frank Schmid
1303702388 Allow deploy command with function argument
* Added function option documentation
* Added unit test for lifecycle termination
* Extended before:deploy:deploy unit tests
* Added debug logging for command invokes/spawns and terminations.
* Deploy with a function parameter starts deploy:function and terminates the deploy lifecycle.
* Spawn allows to exit the current lifecycle and continue with the parent
2017-09-01 15:30:37 +02:00
Frank Schmid
bb1e74a43c Rethrow original plugin error in debug mode. Added unit tests. 2017-08-15 11:38:37 +02:00
Philipp Muens
e07f48f80b Merge pull request #3960 from RafalWilinski/master
Load Serverless plugins only once
2017-07-21 11:16:23 +02:00
Philipp Muens
9c856dc7b6 Minor code refactorings 2017-07-21 11:09:05 +02:00
Philipp Muens
99a12414e1 Merge pull request #3959 from RafalWilinski/3956-catch-unknown-plugin
Wrap addPlugin in try/catch statement when loading plugins
2017-07-21 10:58:44 +02:00
Philipp Muens
d04889b4aa Minor refactorings 2017-07-21 10:41:30 +02:00
Rafal Wilinski
787341d5bf Conditionally throw error or log a warning 2017-07-20 10:47:42 +02:00
Rafal Wilinski
f0a67b94e4 Add duplicate plugins test 2017-07-20 07:13:40 +02:00
Rafal Wilinski
c1812721aa Add PluginManager.loadPlugins test 2017-07-20 06:16:16 +02:00
Eslam λ Hefnawy
de6bebeea9 Merge pull request #3808 from rpunkfu/specify-default-option-values
Allow to provide a default value for plugin options
2017-07-19 19:25:03 +07:00
Oskar Cieslik
d9dcd73e5d Allow to provide a default value for plugin options 2017-06-19 21:10:53 +02:00
Nik Graf
4514bb01c3
remove legacy imports 2017-06-19 12:21:54 +02:00
Nik Graf
c5537c2343
Merge branch 'master' into services 2017-06-19 11:26:46 +02:00
Philipp Muens
2a9636a18c Fix updateAutocompleteCacheFile() bug caused by empty commands object 2017-06-12 09:08:27 +02:00
Philipp Muens
39f0ad94a5 Merge pull request #3746 from HyperBrain/filter-nested-entrypoints-for-help
Filter nested entrypoints on getCommands(). Used by help.
2017-06-11 20:59:45 +02:00
Eslam A. Hefnawy
cb14676e76 fixed tests for async autocomplete 2017-06-08 20:04:46 +07:00
Eslam A. Hefnawy
5696513789 added cache file validation by hash to autocomplete 2017-06-08 01:27:11 +07:00
Frank Schmid
6bbe0b01f5 Added unit test for getCommands() 2017-06-07 17:44:18 +02:00
Eslam A. Hefnawy
e2cc1451a5 resolved comments on autocomplete 2017-06-07 22:02:23 +07:00
Eslam A. Hefnawy
67dc1c2463 using cache file for autocomplete 2017-06-07 22:01:15 +07:00
Brian Neisler
a537e58424 Remove serverless-alpha plugin autoloading. 2017-06-01 14:53:55 -07:00
davidwells
acb9ff7e88 update test 2017-05-26 17:00:41 -07:00
Philipp Muens
9ec755cf2a Adjust Promise usages 2017-05-10 10:27:13 +02:00
Eslam A. Hefnawy
9e53ea68a3 show warning instead of error when there are no hooks 2017-04-21 18:24:35 +07:00
Philipp Muens
96abc61b3c Add basic tests for loadHooks function 2017-04-11 15:39:03 +02:00
Frank Schmid
802c236255 UT: PluginManager - validateCommand() 2017-04-08 20:04:56 +02:00
Frank Schmid
bf7c854ac2 Added tests for spawn string syntax 2017-04-08 12:17:02 +02:00
Eslam A. Hefnawy
bc0eaf23e6 fixed unit tests 2017-04-07 18:30:11 +07:00
Philipp Muens
532d89c1f6 Update tests to be side-effect free
Use proxyquire and stubbing to make the tests side-effect free. This way the tests will succeed even when someone who runs the tests has the serverless-alpha plugin installed globally.
2017-03-30 09:57:02 +02:00
Philipp Muens
44db0960ec Fix tests and restructure code to fail silently 2017-03-30 08:55:07 +02:00
Philipp Muens
59c8c41057 Update local lookup to use service directory 2017-03-29 21:31:52 +02:00
Philipp Muens
80cfb77840 Update serverless-alpha detection 2017-03-29 20:34:00 +02:00
Eslam λ Hefnawy
2d2c2543b9 Merge pull request #3373 from serverless/add-serverless-alpha-autoloading
Add serverless-alpha autoloading
2017-03-29 19:02:07 +07:00
Philipp Muens
bc7c5a64d7 Merge master into PR and resolve conflicts 2017-03-23 12:50:31 +01:00
Eslam λ Hefnawy
eeb8b8a68c Merge pull request #3327 from HyperBrain/support-entrypoints-for-plugins
Allow entrypoints to be defined and called by plugins.
2017-03-17 23:59:05 +08:00
Philipp Muens
4ee198c62c Add serverless-alpha autoloading 2017-03-16 13:06:14 +01:00
Frank Schmid
9ea13b4a37 Added pluginManager tests for spawn functionality. 2017-03-14 00:15:37 +01:00
Nicholas Rakoto
bc9917cffe Add test for plugins loading relatively to the working directory 2017-02-25 00:19:44 +01:00
Doug Moscrop
4c8e3421f8 add Expose plugin hooks so that I can visualize them with an external plugin 2017-02-08 10:50:55 -05:00
Philipp Muens
8aad2372eb Refactor test structure
So that all tests follow the *.test.js pattern and globs are used to find test files.
2016-11-22 12:49:26 +01:00
Philipp Muens
2356a8f3f4 Remove unnecessary timeouts in tests 2016-11-16 11:40:39 +01:00
ac360
00ad5626c7 improve code style and tests 2016-11-04 08:13:32 -07:00
ac360
c294ae1d35 add tests to cover empty plugins property 2016-11-04 07:58:27 -07:00