335 Commits

Author SHA1 Message Date
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
Brian Neisler
ad5aa1ea97 Use resolve-from instead of absolute paths. 2017-03-29 13:41:22 -07: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
Eslam λ Hefnawy
03bc013bfd Merge pull request #3418 from serverless/remove-breaking-changes-logging
Remove breaking change logging
2017-03-29 19:00:19 +07:00
Philipp Muens
67a989f51a Remove breaking change logging 2017-03-29 09:19:39 +02:00
Philipp Muens
de8adc71e5 Update to latest Node.js runtime 2017-03-25 22:18:00 +01:00
Philipp Muens
bc7c5a64d7 Merge master into PR and resolve conflicts 2017-03-23 12:50:31 +01:00
Philipp Muens
8d348da0ce Merge master into PR 2017-03-23 12:29:07 +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
Eslam λ Hefnawy
808e666627 Merge pull request #3375 from serverless/updateDepricationNotice
update deprication message
2017-03-17 23:45:44 +08:00
Philipp Muens
96b135b7e7 Remove slightly misleading error message 2017-03-17 11:11:22 +01:00
davidwells
ade23e0d4c update linting 2017-03-16 15:10:58 -07:00
davidwells
4f6c719075 update test to work with new message 2017-03-16 15:04:14 -07:00
davidwells
da220cc826 add forums and chat links to errors 2017-03-16 14:57:00 -07:00
davidwells
59c33a1f36 update deprication message 2017-03-16 14:45:11 -07:00
Philipp Muens
4ee198c62c Add serverless-alpha autoloading 2017-03-16 13:06:14 +01:00
Eslam A. Hefnawy
c2e51a6eb3 releasing v1.9 2017-03-15 03:07:52 +08:00
Frank Schmid
9ea13b4a37 Added pluginManager tests for spawn functionality. 2017-03-14 00:15:37 +01:00
Philipp Muens
1594868266 Merge pull request #3180 from nrako/fix_plugin_manager
Fix node_modules (serverless plugins) lookup
2017-03-13 13:54:28 +01:00
Frank Schmid
07d1141f99 Allow entrypoints to be defined and called by plugins.
Commands can contain a type property. The only allowed value currently is 'entrypoint'. This declares the command as hidden from the CLI. It will not appear in the help screen, nor can it be called from there.
However, entrypoint type commands can be called by plugins via the new PluginManager.spawn(commandsArray) method. In contrast to PluginManager.run() this method allows access to entrypoint commands and can be used to enter a plugin internal sub lifecycle. With this mechanism in place, plugins can expose their own lifecycle events which become then part of the global lifecycle and can be hooked again by dependent plugins.
2017-03-03 15:05:09 +01:00
Philipp Muens
bfb67aadde Minor typo fixes / cleanup 2017-03-01 09:17:10 +01:00
Philipp Muens
c7414211fb Merge branch 'master' into allow-self-reference 2017-03-01 09:07:31 +01:00
Eslam A. Hefnawy
fb6b94d088 releasing v1.8 2017-03-01 03:25:28 +08:00
Nicholas Rakoto
bc9917cffe Add test for plugins loading relatively to the working directory 2017-02-25 00:19:44 +01:00
Nicholas Rakoto
00bd68cef2 Fix node_modules (serverless plugins) lookup
This reset the `module.paths` relatively to the current working directory
`process.cwd()`. So the array of paths used to resolve packages is relative
to where the `serverless` CLI is run.
2017-02-25 00:19:44 +01:00
Eslam λ Hefnawy
74ceec541b Merge pull request #3186 from dannycohn/Issue2997
fix #2997
2017-02-23 20:38:53 +07:00
Andrey Tserkus
09ab0468c0 Improved tests for logBreakingChange() function:
- fixed the tests when `SLS_IGNORE_WARNING` is set in the shell environment
- refactored the tests to clearly expose the tested input combinations (+ added the missing combination - to have a formally complete verification)
- added the `SLS_IGNORE_WARNING=*` setting to Travis builds, so that their output doesn't contain unnecessary noise about upcoming changes
2017-02-16 23:18:56 -08:00
Eslam A. Hefnawy
fe2cf87474 updated test 2017-02-14 21:06:01 +07:00
Eslam A. Hefnawy
ba7bb7e0de releasing v1.7 2017-02-14 20:53:41 +07:00
Eslam λ Hefnawy
cc94945f8e Merge pull request #3067 from vladgolubev/fix-average-functions-duration
Fix average functions duration calculation in metrics output
2017-02-14 20:11:42 +07:00
Nikos Katsikanis
09ccc63b64 Remove unneeded code 2017-02-14 10:17:45 +00:00
Erik Erikson
93c7afb3f5 Resolve PR Comments
1. Improve wording of documentation.  Note the concrete object that will be written in its entirety
2. Expand documentation.  Note a potential security risk for secrets
3. Move, without changes, the `warnIfNotFound` method because it was putting space between `getValueFromSource` and the various source type specific functions it uses
4. Implement unit tests for `warnIfNotFound`
5. Implement unit tests for `logWarning`
2017-02-10 18:31:02 -08:00
Philipp Muens
7044d567df Refactor for more convenience and add tests 2017-02-09 14:40:08 +01:00
Philipp Muens
69d872604c Add minor aesthetic improvements 2017-02-09 11:23:13 +01:00
Eslam A. Hefnawy
4ea752e05e added opt-out message 2017-02-09 17:12:15 +07:00
Eslam A. Hefnawy
2069ac5352 logging up coming breaking changes 2017-02-09 17:03:26 +07:00
Erik Erikson
7376fc0dff Merge branch 'master' into allow-self-reference
# Conflicts:
#	lib/classes/Error.js
2017-02-08 15:51:57 -08:00
Erik Erikson
079d964908 Add Warning Messages for Unresolvable Variables
1. define new `logWarning` method in Error class and consolidate message formatting for consistency.
2. use new `logWarning` to inform users if a variable cannot be resolved.
2017-02-08 15:40:31 -08:00
Erik Erikson
b936492af1 Allow for Top Level References & Commit Comments
1. Newly allow `${opt:}` and `${env:}` as a valid reference to the root of the option and environment settings hive, respectively
2. Write a test ensuring the above
3. Document the new capability
4. Eliminate a silly through-${self:} use example
5. Allow for the use of populateProperty in a not-in-place manner
6. Allow for the valid (albeit odd) valueToPopulate[''] case
2017-02-08 14:05:36 -08:00
Doug Moscrop
1012c351b7 add sinon-bluebird to make promises in tests a bit cleaner 2017-02-08 12:59:18 -05: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
Erik Erikson
230f37f4a4 Allow for Self-Reference
1. Newly allow '${self:}' as a valid reference to the current serverless.yml's root
  a. This allows for a more clean manner of passing names and identifiers around between projects.  Particularly, this facilitates exporting values from projects so they can be used in other projects via Fn::ImportValue.
2. Write a test ensuring the above
3. Document the new capability

Example usage: https://github.com/Nordstrom/hello-retail/pull/26/files
2017-02-07 19:19:30 -08:00
Vlad Golubev
9a8a9ddff4 Add missing unit tests for #getAllFunctionsNames 2017-02-08 00:03:10 +02:00
Vlad Golubev
12ba45421c Merge branch 'master' into fix-average-functions-duration 2017-02-07 23:42:25 +02:00
Vlad Golubev
e8bf95997e Merge branch 'master' into fix-average-functions-duration 2017-02-07 23:41:50 +02:00
Danny Cohn
7bbf9ce6d0 fix #2997 2017-02-05 00:11:20 -06:00
Andrey Tserkus
634f115118 fix typo in CLI test: construtor -> constructor 2017-01-31 01:50:17 -08:00