Eslam A. Hefnawy
c551abfe82
fixed cli tests when running in debug mode
2019-02-05 15:43:41 +03:00
Eslam A. Hefnawy
5896f0c43b
fix race condition when loading config file
2019-02-05 15:05:31 +03:00
exoego
5ed78b8024
Do not remove spaces in single-quote literal.
2019-02-02 22:46:58 +09:00
exoego
b67455db6e
Add tests for #5398
2019-02-02 22:45:39 +09:00
Eslam λ Hefnawy
8c53de83bf
Merge pull request #5758 from exoego/default-values
...
AWS: Add fallback support in ${cf} and ${s3}
2019-01-31 15:29:29 +03:00
Eslam λ Hefnawy
96e8ea6b0c
Merge pull request #5636 from shanehandley/master
...
Throw an error if plugin is executed outside of a serverless directory
2019-01-31 14:31:45 +03:00
Daniel Schep
0fb47a1e74
also preresolve keys within credentials
2019-01-29 16:33:08 -05:00
Daniel Schep
b3df0517f1
Require provider.credentials vars to be resolved before s3/ssm/cf vars
...
Similar to long standing region/stage and new profile preresolve.
test uses the service definition instead of `getCredentials` because
`getCredentials` is much more complex than `getStage`/`getProfile`/`getRegion`
and we only need to test that the config is updated, not all the
credential setting logic
2019-01-29 13:56:59 -05:00
Daniel Schep
03d8cebee8
Merge pull request #5744 from serverless/fix-sls-4311
...
Resolve profile before performing aws-sdk dependent actions
2019-01-28 10:10:07 -05:00
exoego
b67d9ca03c
Support default value if ${s3} and ${cf} failed.
2019-01-27 17:00:22 +09:00
exoego
d40e2b31eb
Add tests for fallback.
2019-01-27 13:17:01 +09:00
Daniel Schep
92f4f67337
tests for resolving profile before aws vars
2019-01-25 11:37:08 -05:00
Daniel Schep
e1f9b83dc9
resolve vars in file profile config before ssm vars
2019-01-25 08:24:15 -05:00
exoego
59c440e073
Make it clear that logs don't always get suppressed.
2019-01-23 14:33:53 +09:00
exoego
0e6c62ef9b
Merge remote-tracking branch 'upstream/master' into print-no-log
...
# Conflicts:
# lib/classes/CLI.test.js
2019-01-23 14:19:25 +09:00
Takahiro Horike
44f3d16ebf
Merge pull request #5733 from exoego/remove-duplicate-handler-warnings
...
Remove duplicate-handler warnings based on community feedback.
2019-01-22 22:49:37 +09:00
Eslam λ Hefnawy
1d1d869a2e
Merge pull request #5727 from exoego/cli-arg-test
...
Test that CLI does not convert numeric option to number
2019-01-22 16:32:19 +03:00
exoego
5fe43898d1
Remove unnecessary dependency.
2019-01-22 09:31:21 +09:00
exoego
3d31c43bcf
Remove duplicate-handler warnings based on community feedback.
2019-01-22 09:22:49 +09:00
exoego
43e1fd105f
Fix linting error.
2019-01-20 16:24:30 +09:00
exoego
c930079d5b
Do not print logs if print command is used.
2019-01-20 16:10:02 +09:00
exoego
622be4b2cd
Add test to verify number conversion never happen
2019-01-20 13:48:31 +09:00
exoego
cec6d5501b
Suppress confusing warning since root cause is warned elsewhere.
2019-01-19 07:20:49 +09:00
Daniel Schep
d817ce08d4
Merge pull request #5687 from serverless/remove-platform-code
...
Remove platform code
2019-01-17 11:01:45 -05:00
exoego
f434009c45
Move stage name validation to Service#validate.
...
Since validation should be performed after service.functions are resolved.
2019-01-16 16:39:09 +09:00
Austen Collins
121a2ffbf2
fix linting issue
2019-01-15 13:22:39 -08:00
Austen Collins
d4fc6d1980
add entity to enable plugins to personalize their cli logs
2019-01-14 21:28:25 -08:00
Daniel Schep
96906c1c70
Merge pull request #5686 from exoego/validation-after-var-resolution
...
AWS: Fix stage name validation timing and allow hyphen
2019-01-13 20:25:53 -05:00
exoego
fe6cb01302
Fix error message.
2019-01-12 17:33:38 +09:00
exoego
ef591b2677
Add test case when the populated variable is valid.
2019-01-12 17:23:45 +09:00
exoego
df780c36e3
Allow underscore too.
2019-01-12 17:17:40 +09:00
Austen Collins
70e94c9640
remove platform commands from the help screen
2019-01-11 16:36:20 -08:00
exoego
a12bb5bf71
Allow hyphen which is valid for API Gateway now.
2019-01-12 08:53:29 +09:00
exoego
5ca31157b7
Add test case to increase coverage.
2019-01-12 08:33:50 +09:00
exoego
6e0d7a86d1
Implement after-variable-resolution stage name validation for AWS.
2019-01-12 08:11:50 +09:00
Daniel Schep
0896f311b1
Merge pull request #5312 from Limess/4496/handle-scoped-packages
...
Handle scoped npm packages in ${file()} variables
2019-01-07 10:56:25 -05:00
exoego
e2722a71e3
Add warning prefix.
2018-12-31 19:28:32 +09:00
exoego
fad655eb91
Refactor: inline underscore-starting private methods since it is linted as error.
2018-12-31 07:54:25 +09:00
exoego
e6599f3953
Refactor: move service validations to Service#validate
2018-12-31 07:38:24 +09:00
exoego
ae9d7ca83d
Refactor to increase coverage.
2018-12-30 22:11:31 +09:00
exoego
58f3cc2153
Fix linting errors and older-nodejs errors.
2018-12-30 22:02:05 +09:00
exoego
5df4c7982d
Add warning for multiple functions having same handler.
2018-12-30 21:54:30 +09: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
afcff8dd54
Better naming
2018-12-30 19:48:34 +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
Daniel Schep
e99e71d215
lint
2018-12-13 09:32:46 -05:00
Daniel Schep
63fb1309d3
restore support for variable refs with spaces in them
2018-12-13 09:16:57 -05:00
horike37
4336340aa4
Merge remote-tracking branch 'root/master' into cf-ref-region
2018-12-10 12:01:41 +09:00