4670 Commits

Author SHA1 Message Date
Christophe Bougère
310f59f7fa extend error message 2018-01-04 11:46:49 +01:00
Christophe Bougère
61cbeb1645 - adding a --template-url option for sls create
- update `walkDirSync` to ignore symbolic links (now ignore node_modules linked via `npm link`)
2017-12-14 16:15:14 +01:00
Frank Schmid
f62116cecf
Merge pull request #4560 from erikerikson/fix-resolve-signature-and-calls
Improve Stage and Region Usage
2017-12-12 21:25:39 +01:00
Erik Erikson
ca5ba8daac Remove unused parameters in platform.js (and deal with consequences)
Add explicit use of options where they were defined.
2017-12-12 11:59:08 -08:00
Hassan Khan
b4b2803a4e Add type APIGatewayEvent to handler 2017-12-12 06:17:35 +00:00
Erik Erikson
bf8d57fa9f Improve Stage and Region Usage
Remove the errant (but understandable) distributed usage of region and stage settings.  This otherwise locks in a multitude of bugs around the improper algorithm for selecting (given all context) the proper region or stage setting.  Instead, all code should use the centralized algorithm for determining such values.  This creates a strange first and second class configuration concept but these two are sufficiently varied and complex in their creation and use that this seems appropriate.
2017-12-11 16:39:44 -08:00
horike37
355bfa01c0 fix the plugin commands bug 2017-12-12 05:05:00 +09:00
Takahiro Horike
1fb90f6dc1
Merge pull request #4537 from serverless/fix-resolve-signature-and-calls
Remove not used parameters from request() and add options hive
2017-12-12 01:47:04 +09:00
Takahiro Horike
24ce96da84
Merge pull request #4552 from jamestharpe/master
Installs @types/aws-lambda and uses types in handler, per issue #4546
2017-12-12 00:14:03 +09:00
Frank Schmid
e4a5a1d43c
Do not log warning if no options are given 2017-12-11 12:33:40 +01:00
Frank Schmid
81c896bc12
Removed reintroduction of stage+region in request. Added options.
Delete bucket was still using them

Hopefully all :)

Further test fixes.

.... worked too long yesterday

Fixed Variable tests

Remove not used parameters from request() and add options with warning
2017-12-11 12:33:35 +01:00
Frank Schmid
be68deefe1
Merge pull request #4144 from serverless/circular-vars
Added support for circular references in the variable system
2017-12-11 10:55:38 +01:00
James Tharpe
e16092cc4c Installs @types/aws-lambda and uses types in handler, per issue #4546 2017-12-10 19:48:34 -05:00
Takahiro Horike
12ec3df56f
Merge pull request #4531 from serverless/RegionalEndpoint
Add API Gateway endpoint configuration
2017-12-11 01:07:02 +09:00
James Tharpe
b9efc45ba1 Updates severless-webpack to ^4.0 per request from @HyperBrain 2017-12-10 08:02:05 -05:00
James Tharpe
b397858ef2 Adds @types/node per #4546 2017-12-09 16:25:06 -05:00
Alex DeBrie
a9e8080aec Fix CloudFormation for endpoint configuration 2017-12-09 12:43:19 +00:00
Erik Erikson
df5dc28961 add tests to get to 100% line coverage
1. add tests that validate string value defaults in overrides.
2. add test of behavior when a javascript's export does not contain the attribute declared in the variable.
3. add tests of behavior when an SSM parameter is not found and the request to the SSM service fails.

add returns to tests that weren't returning their promises (and were thereby risking false positives.
2017-12-08 00:53:58 -08:00
Erik Erikson
32e660d94c add tests to validate that nested variables inside overwrites are resolved 2017-12-07 12:49:09 -08:00
Erik Erikson
6a0784ce2f add now passing "populate once" tests, use populate over render 2017-12-06 16:48:54 -08:00
Erik Erikson
c8ebe25968 fix build by adding `'use strict'; to generated 'async.load.js' 2017-12-06 16:38:51 -08:00
Erik Erikson
d6abd689b6 fix migrated tests 2017-12-06 16:20:17 -08:00
Erik Erikson
8c1fe6dfcc Refactor, simplify, correct, add tests
Increase name consistency
Improve names to be-what-they-are
Reduce cyclomatic complexity
Include overrides population fix
Add variable methods documentation
Add more tests around significant variable patterns/risky cases
2017-12-06 15:59:07 -08:00
Frank Schmid
bce1264d7b
Fixed merge 2017-12-07 00:35:13 +01:00
Frank Schmid
8f70c13a9c
Merge branch 'master' into circular-vars 2017-12-07 00:22:55 +01:00
Alex DeBrie
9889081914 Add endpointType configuration 2017-12-06 18:28:12 +00:00
Frank Schmid
2e09606f13
Merge remote-tracking branch 'remotes/upstream/master' into circular-vars 2017-12-06 13:20:51 +01:00
Frank Schmid
8ff661835e
Merge branch 'master' into populate-default-objects 2017-12-06 12:34:50 +01:00
Erik Erikson
dea94bc310 Add significant variable usage corner cases 2017-12-05 14:31:00 -08:00
Frank Schmid
8cd604cd41
Wrap cached value into promise (addresses issue mentioned in #4509) 2017-12-05 12:39:48 +01:00
Frank Schmid
5526802a1b
Added request cache and queue to AWS provider
Make sure that requests are throttled. Use a queue for the requests.

Added new expected parameter to request() call in variables test

Added request cache tests
Check that request is indeed called 1000 times

Cache promises, not values

Use request cache for AWS variable requests

Use fromCallback instead of "new Promise" anti-pattern.

Added request cache to AWS provider
2017-12-05 12:39:39 +01:00
Frank Schmid
37340467ed
Populate objects if default syntax targets an object 2017-12-04 18:08:39 +01:00
Takahiro Horike
b7b31535f6
Merge pull request #4429 from chernando/master
Basic logging for python invoke local
2017-12-04 08:39:29 +09:00
Frank Schmid
bc1571d4a2
Merge pull request #4499 from e-e-e/master
Add cache to Variables class.
2017-12-03 13:34:31 +01:00
Frank Schmid
48638355a2
Merge pull request #4510 from serverless/fix-version-logical-id
Fix lambda version generation when only function config changes
2017-12-03 12:33:32 +01:00
e-e-e
f90c6d2782 return resolver promise; fix lint 2017-12-03 21:25:22 +11:00
Rafal Wilinski
8a02d2a4a3
Merge pull request #4118 from geofflancaster/master
Updated awsProvider to allow manual specification of certificate auth…
2017-12-03 09:00:47 +01:00
Takahiro Horike
41baf4cbaf
Merge pull request #4433 from jswift/template/aws-kotlin-jvm-gradle
Template/aws kotlin jvm gradle
2017-12-02 19:20:12 +09:00
e-e-e
57d898d39e replace promise in cache with cached result once resolved. 2017-12-02 12:03:33 +11:00
Frank Schmid
b1d4925508
Use chunked read 2017-12-01 13:16:58 +01:00
Frank Schmid
57f0561547
Added unit test for configuration change 2017-12-01 12:58:46 +01:00
Frank Schmid
54e10cebbb
Use asynchronous file read and create version hash including config 2017-12-01 11:49:00 +01:00
Benjamin Forster
fae0ccb1d7 update variable name in test to be more descriptive 2017-12-01 10:40:23 +11:00
Benjamin Forster
6e6fea3fa2 update ssm cache to generic variable cache. 2017-12-01 10:33:30 +11:00
Benjamin Forster
382f6900e0 update test to show that cache is working 2017-11-30 10:08:23 +11:00
Gary Richards
0fc6222026 removed redundant keywords from Handler when constructing and returning Response 2017-11-29 14:02:24 +00:00
Benjamin Forster
33b666c431 add test 2017-11-29 17:49:52 +11:00
Benjamin Forster
e780a59b66 fix linter 2017-11-29 17:21:41 +11:00
Benjamin Forster
de22ae698b add cache to ssm variables 2017-11-29 17:10:05 +11:00
Erik Erikson
143a2aa65b Account for duplicate copies without populating more than once. As a result, populate in place. 2017-11-17 17:30:15 -08:00