128 Commits

Author SHA1 Message Date
Mariusz Nowak
6e84563551 test: Rename module to match conventions 2020-09-09 11:17:21 +02:00
Mariusz Nowak
8c3c7c4e3a chore: Rename "tests" folder to "test"
Also upgrade @serverless/eslint-config to v2
2020-08-28 16:22:09 +02:00
Mariusz Nowak
617b479fb7
fix: Fix support for relative plugins.localPath
Fixes #7117
2019-12-20 10:34:35 +01:00
Mark Tse
7e0e903c79 fix: Recognize falsy values as CLI options defaults (#7071) 2019-12-13 10:54:40 +01:00
Mariusz Nowak
a0fc30131b
Fix lint issues 2019-11-25 12:14:05 +01:00
Mariusz Nowak
f3017894c8
Update @serverless/test dependency 2019-10-21 17:42:50 +02:00
Mariusz Nowak
2c836580d3
Lint fix 2019-10-21 17:39:59 +02:00
Mariusz Nowak
b33e96dbce
Allow to customize serverless binary path 2019-10-21 17:39:59 +02:00
Mariusz Nowak
389e61d3e8
Reconfigure to rely on spawn and env resolver 2019-10-21 17:39:58 +02:00
Mark Tse
e62ddadc9d chore - stop using deprecated 'new Buffer()' method. 2019-10-13 15:15:26 -04:00
Mariusz Nowak
07726b6be8
Require all plugins before their initialization.
It allows to exit early on initialization errors, and provides means to customize core plugins by service plugin before they're initialized
2019-10-10 09:18:36 +02:00
Mariusz Nowak
a299ec7ce9
Remove obsolete lint instruction 2019-10-10 09:11:08 +02:00
Mariusz Nowak
529a3459fd
Resolve local plugins withough hacking module.paths 2019-10-09 17:19:10 +02:00
Mariusz Nowak
69b2b65f2d
Expose output in case of test crash 2019-10-09 17:16:59 +02:00
Mariusz Nowak
8ae73e36fd
Improve servicePath handling 2019-10-09 17:16:58 +02:00
Mariusz Nowak
c68c085290
Improve tests 2019-10-09 17:16:57 +02:00
Philipp Muens
747b98510c Address PR review comments 2019-09-17 10:52:39 +02:00
Daniel Schep
9748b4e124 Revert "drop support for the asyncInit function on plugins"
This reverts commit 55a794f4e07cd7a903ee80c4b68f9f4818b40355.
2019-09-16 08:34:01 -04:00
Mariusz Nowak
b2cf1025c7
Improve help case handling 2019-09-06 14:39:19 +02:00
Mariusz Nowak
ca871ca8c4
In all cases rethrow original plugin error 2019-09-06 12:56:23 +02:00
Daniel Schep
a231e0302d changes for @erikerikson's review 2019-08-30 09:29:12 -04:00
Daniel Schep
43076c0f22 Merge remote-tracking branch 'origin/master' into custom-variable-getters 2019-08-29 12:38:58 -04:00
Daniel Schep
91ae8bcc17
Add initialize lifecycle event (#6601)
* Revert "remove initialize hook stuff. moving to diff pr"

This reverts commit 851b043710fffd6e88d025e4da741bb8af35ba8e.

* Switch to Bluebird Promise implementation
2019-08-28 12:05:17 -04:00
Philipp Muens
dec3d5ff40 Update docs / Fix typos 2019-08-28 13:30:14 +02:00
Daniel Schep
851b043710 remove initialize hook stuff. moving to diff pr 2019-08-27 14:21:10 -04:00
Daniel Schep
729381f25e move initialize hook into plugman.run & test 2019-08-27 11:40:07 -04:00
Daniel Schep
ed1117b5e8 fix tests and validate inputs 2019-08-27 09:47:26 -04:00
Daniel Schep
569623e156 s/method/resolver/ 2019-08-27 08:44:57 -04:00
Daniel Schep
0ca9c2ed67 lint 2019-08-26 13:39:21 -04:00
Daniel Schep
83591d507c fix tests 2019-08-26 12:29:12 -04:00
Daniel Schep
7ccdde6178 asfaf 2019-08-26 08:13:34 -04:00
Daniel Schep
e3c4755dbe WIP 2019-08-23 10:08:41 -04:00
Daniel Schep
12fea8f336 rename 2019-08-23 10:07:41 -04:00
Daniel Schep
c69cb50555 objects not arrays for instances in variableResolvers 2019-08-21 11:11:46 -04:00
Daniel Schep
c3674e1293 safer & more explicit implementation of variableResolvesrs(also renamed) 2019-08-21 10:22:05 -04:00
Daniel Schep
55a794f4e0 drop support for the asyncInit function on plugins 2019-08-20 15:45:32 -04:00
Daniel Schep
c0ed311865 simplify variable getter hook system 2019-08-20 15:00:23 -04:00
Daniel Schep
d3bcfeea78 lint 2019-08-20 14:39:20 -04:00
Daniel Schep
8b53a4323a lint & docs 2019-08-20 14:29:40 -04:00
Daniel Schep
e4d29bb9cd test coverage for loading variable getters 2019-08-20 14:18:52 -04:00
Mariusz Nowak
02192415be
Improve serverless mock 2019-07-01 13:05:49 +02:00
Mariusz Nowak
4944f471b1
Prettify 2019-06-26 12:43:01 +02:00
Matthieu Napoli
1019939969 #6017 Plugin relative paths should start with ./
Following the discussion in #6261 it should be possible to load plugin via relative paths, as long as the path starts with `./`.

For example:

```yaml
plugins:
    # will load myfirstplugin/plugin.js or myfirstplugin/plugin/index.js
    - './myfirstplugin/plugin'
    # will load mysecondplugin/plugin.js or mysecondplugin/plugin/index.js
    - './mysecondplugin/plugin'
```
2019-06-20 11:55:55 +02:00
Mariusz Nowak
8ca00b6f9f
Increase default timeout
Some tests tend to timeout especially when run on Windows in VM
2019-06-05 10:59:22 +02:00
Mariusz Nowak
e75a1eabb7
Upgrade after chai update 2019-06-03 16:57:41 +02:00
Mariusz Nowak
54bdfdf7eb
Update after chai upgrade 2019-06-03 16:55:09 +02:00
Mariusz Nowak
1eb9deb37b
Fix instances checking in tests 2019-06-03 16:54:56 +02:00
Mariusz Nowak
f6d993e97b
Merge with master 2019-05-31 12:36:53 +02:00
Mariusz Nowak
78c2025f13
Ensure to mirror mandatory windows env var 2019-05-31 12:03:40 +02:00
Mariusz Nowak
9c5a13badd
Lint 2019-05-30 22:20:36 +02:00