308 Commits

Author SHA1 Message Date
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
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
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
Andrey Tserkus
ffd6152de0 cover Error with tests; rename SError export to ServerlessError 2017-01-31 01:50:07 -08:00
Philipp Muens
b32803a8ff Fix wrong provider value assigning 2017-01-30 13:33:15 +01:00
Philipp Muens
54fbaadede Remove defaults service property 2017-01-30 11:03:40 +01:00
Philipp Muens
a30984d908 Fix broken unit test after merging #2434 2017-01-25 09:12:28 +01:00
Eslam λ Hefnawy
1cb298d592 Merge pull request #2434 from fruffin/fix-2418
[Fix #2418] Allow function event definitions to be variables
2017-01-24 20:15:34 +07:00
Philipp Muens
791880911a Remove unnecessary assertions 2017-01-10 08:57:43 -08:00
Philipp Muens
dc8fe5c22f Remove unnecessary getRootPath method 2017-01-10 08:16:17 -08:00
Philipp Muens
2d2ba4521d Update Docker detection to be cgroup based
This ensures a more stable detection strategy since .dockerenv might be not around for the long term.
2017-01-09 11:15:12 -08:00
Philipp Muens
ce8bbc4885 Add Docker detection 2017-01-08 14:19:25 +01:00
Vlad Golubev
37f4545139 Add getAllFunctionsNames to Service class 2017-01-06 18:59:36 +02:00
Philipp Muens
daa223a2fc Add npm scripts for slStats 2016-12-23 14:51:56 +01:00
Philipp Muens
092487ab10 Increase test coverage for CLI class 2016-12-22 14:57:34 +01:00
Eslam λ Hefnawy
3ab58d4643 Merge pull request #2891 from johncmckim/issue-2890
Temporarily remove provider.variableSyntax during variable population
2016-12-08 21:31:08 +07:00
Philipp Muens
b6683d9440 Merge pull request #2842 from dougmoscrop/array_resources
add Support for resources as an array
2016-12-08 13:28:51 +01:00
John McKim
adea45e978 Temporarily remove provider.variableSyntax during variable population 2016-12-08 17:42:07 +10:00
Maciej Winnicki
0657f48c81 Merge pull request #2881 from serverless/add-detection-of-jenkins
Add detection of Jenkins
2016-12-07 11:00:30 +01:00
Philipp Muens
6743df480c Merge pull request #2866 from jthomas/master
rename provider identifier from 'ibm' to 'openwhisk'.
2016-12-07 09:10:07 +01:00
Philipp Muens
6bf53ab773 Add detection of Jenkins 2016-12-07 08:17:18 +01:00
davidwells
5c480d1d05 change to userAgent 2016-12-05 22:59:53 -08:00
davidwells
28c4135b70 fix lint ⊂◉‿◉つ 2016-12-05 20:30:31 -08:00
davidwells
e46a23662b add agent for serverless context 2016-12-05 20:18:48 -08:00
James Thomas
da3356b1e2 Rename provider name from 'ibm' to 'openwhisk'. 2016-12-05 15:46:10 +00:00
Doug Moscrop
e4395875c1 add Support for resources as an array 2016-12-01 19:31:36 -05:00
Philipp Muens
114f54e0ad Minor refactorings 2016-12-01 10:48:35 +01:00
ac360
08769fc1c1 fix linting errors 2016-12-01 10:48:35 +01:00
ac360
da19c9e495 add support for setting multiple profiles 2016-12-01 10:48:35 +01:00
Philipp Muens
59234b13ce Update error message according to feedback 2016-11-22 15:25:44 +01:00