4681 Commits

Author SHA1 Message Date
Alex Casalboni
bb2ddc0eec Fixed S3 Transfer Acceleration bug with custom deployment buckets (#4606)
* fixed s3 transfer acceleration bug with custom deployment buckets

* added test (custom deployment bucket case)

* unwrapping stubs (node 5.11 fail)

* increased coverage

* add return to BbPromise
2017-12-28 11:12:45 +01:00
Frank Schmid
923b2d5a9a
Merge pull request #4572 from erikerikson/fix-crash-cycles-4556
Fix Cycles Crash (#4556)
2017-12-25 13:48:19 +01:00
Takahiro Horike
890c042fbd Add logRetentionInDays property to provider level (#4591)
* add logRetentionInDays property

* update test and improve code

* minor tweak

* add logRetentionInDays property

update test and improve code

minor tweak
2017-12-25 13:47:00 +01:00
Takahiro Horike
ba979a7a8f
Merge pull request #4590 from 8bites/master
Add support of serverless.js configuration file
2017-12-22 11:23:05 +09:00
Pavel Vlasov
a2ae114b2e show warning on plugin uninstall for serverless.js config 2017-12-21 14:37:03 +11:00
Pavel Vlasov
d2ed15839b refactor getServerlessFilePath 2017-12-21 14:24:17 +11:00
Pavel Vlasov
d05e45668e validate serverless.js to export plain object + address feedback 2017-12-20 08:50:10 +11:00
Pavel Vlasov
ea7c6620af fix eslint 2017-12-19 20:35:07 +11:00
Pavel Vlasov
bca4da55b3 add support for serverless.js 2017-12-19 20:14:39 +11:00
horike37
4a3e140dc2 update code to synchronous 2017-12-19 01:10:43 +09:00
horike37
fbce5ed4ae add suggestion feature 2017-12-17 15:13:20 +09:00
horike37
0cf7c9a329 first commit 2017-12-16 20:27:33 +09:00
Erik Erikson
13ae54cacc Fix Cycles Crash (#4556)
Replace the existing service and clear the cache (which references the ammended service)
Remove cycles in that service using json-cycle.
Dump the decycled object as YAML to console.
2017-12-13 16:39:06 -08: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