94 Commits

Author SHA1 Message Date
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
Mariusz Nowak
e82eed38c1
Expose process output in case of crash 2019-05-30 22:08:33 +02:00
Philipp Muens
773e9af3c1 Thorough integration testing 2019-05-30 15:20:58 +02:00
Mariusz Nowak
531f4600db
Isolate process.env toggling in tests 2019-05-29 10:15:18 +02:00
Daniel Schep
c636c8dcb8 Merge remote-tracking branch 'origin/master' into plat-916 2019-05-24 12:47:46 -04:00
Daniel Schep
df5cfd4e4d Merge branch 'master' into plat-916 2019-05-23 08:52:08 -04:00
Mariusz Nowak
5bea069b88
Merge branch 'master' into improve-promised-bdd-setup 2019-05-21 10:24:13 +02:00
Mariusz Nowak
56b8c8f42e
Whitespace 2019-05-20 13:39:29 +02:00
Mariusz Nowak
3ad898b450
Improve whitespace handling 2019-05-20 13:37:53 +02:00
Mariusz Nowak
87afded3d7
Ensure to return promise 2019-05-20 10:58:05 +02:00
Mariusz Nowak
5a48c84c2e
Ensure needed test methods 2019-05-15 17:36:29 +02:00
Daniel Schep
68b9c39f34 Merge remote-tracking branch 'origin/master' into plat-916 2019-05-14 09:49:29 -04:00
Mariusz Nowak
c35cfb19fb
Improve toggling of process.env vars 2019-05-14 13:44:49 +02:00
Mariusz Nowak
648368ab60
Ensure no side effects 2019-05-14 13:27:35 +02:00
Mariusz Nowak
d193dc8b63
Ensure to delete env vars
Due to string coercion assigining undefined sets them
with "undefined" string
2019-05-14 12:40:56 +02:00
Daniel Schep
660917e3b0 test coverage for async plugin initialization 2019-05-10 14:55:26 -04:00
Daniel Schep
c06a67851e built in integration of serverless enterprise 2019-05-01 15:48:12 -04:00
TylerSustare
df984cc7da Add unit tests for invalid commands. 2019-04-23 15:55:56 -07:00
Daniel Conde
1a4ce917a7 add support for command type='container' 2019-02-09 14:59:13 +00:00
Shane Handley
8f733f183d Properly fix tests... 2018-12-30 22:02:01 +11:00
Shane Handley
5f763a97bb Fix tests. 2018-12-30 21:23:59 +11:00
Shane Handley
2a40506dfd Linting 2018-12-30 18:42:50 +11:00
Shane Handley
ee36246e7b Load config earlier in pluginManager and store as instance property to prevent duplicate calls to getServerlessConfigFile. 2018-12-30 18:37:41 +11:00
Shane Handley
c49ebdfffc Update serverless config file lookup in pluginmanager to use the serverless config default value always. 2018-10-13 19:25:04 +09:00
Shane Handley
7b664e949f Update the way that the configDependent property is checked, switch some lookups to getServerlessConfig to use the service path from sls.config rather than assume process.cwd() 2018-09-30 15:40:21 +09:00
Shane Handley
f817bc954e Fix tests after inadvertantly changing case after linting. 2018-09-16 04:59:27 +09:00
Shane Handley
efe3d1c73b Linting 2018-09-16 04:24:52 +10:00
Shane Handley
860fd938a0 Test coverage of the flag to check for serverless config befre executing a command which requires a config to exist. 2018-09-15 14:32:34 +10:00
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