1335 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
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
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
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
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
Alex DeBrie
a9e8080aec Fix CloudFormation for endpoint configuration 2017-12-09 12:43:19 +00:00
Alex DeBrie
9889081914 Add endpointType configuration 2017-12-06 18:28:12 +00: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
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
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
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
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
Rafal Wilinski
d1516c1485 Add missing newline 2017-11-16 00:16:15 +01:00
Rafal Wilinski
ac0319b945 Fix failing test 2017-11-15 23:44:52 +01:00
Rafal Wilinski
f138e4ed5e Reintroduce ignore check for existing deploymentBuckets 2017-11-15 21:43:10 +01:00
Carlos Hernando Carasol
bbade3d1a8 Basic logging for python invoke local 2017-10-31 12:45:20 +01:00
Alex Casalboni
4a3d4675d3 Showing warning if --aws-s3-accelerate is used with custom deployment bucket 2017-10-28 02:06:19 +02:00
Alex Casalboni
5c5f893e69 Added tests (increased coverage) 2017-10-28 01:51:42 +02:00
Alex Casalboni
64ccb046a7
Merge branch 'master' into issue4252-s3-transfer-acceleration 2017-10-28 00:59:18 +02:00
Alex Casalboni
07e89c72e1 Using new custom output to disable S3 Transfer Acceleration during first enabling deployment 2017-10-28 00:55:48 +02:00
Alex Casalboni
257f5dc40d Added custom ServerlessDeploymentBucketAccelerated output 2017-10-28 00:55:36 +02:00
Alex Casalboni
bf6572847e Always adding AccelerateConfiguration to deployment bucket (if not provided manually) 2017-10-27 17:03:41 +02:00
Alex Casalboni
61a9d433dc removed enableBucketAcceleration (no API call should be needed -> CloudFormation support!) 2017-10-27 15:58:44 +02:00
Frank Schmid
06cf6df2e6 More tests to increase coverage 2017-10-26 12:14:10 +02:00
Frank Schmid
97896eb34f Do not update configuration parts that contain references. 2017-10-26 11:57:10 +02:00
Alex DeBrie
57a83302a1 Consolidate multiple beforeEach methods in test 2017-10-24 14:52:07 +00:00
Rafal Wilinski
8a5fe07bed Merge pull request #4382 from timstott/conceal-api-keys
Provide option to conceal API Gateway key values from the output
2017-10-21 14:29:20 +02:00
Geoffrey Lancaster
de342e9044 resolved merge issues 2017-10-18 22:50:34 -06:00
Geoffrey Lancaster
39274ed8e1 resolved eslint issues 2017-10-18 22:15:03 -06:00
Geoffrey Lancaster
3a0be84201 fixed typo 2017-10-18 22:09:28 -06:00
Geoffrey Lancaster
a5d983bf5c Merge branch 'master' of https://github.com/serverless/serverless 2017-10-18 21:57:58 -06:00
Geoffrey Lancaster
2a524aaf9c updated test suite per requests 2017-10-18 21:54:08 -06:00
Timothy Stott
2df0d8a954
Provide option to conceal API Gateway key values from the output 2017-10-17 22:42:01 +01:00
horike37
ebcde3b683 update createStack test with using sinon sandbox 2017-10-18 01:03:44 +09:00
Takahiro Horike
bae332caeb Merge pull request #4320 from RafalWilinski/function-role-fix
Fix `deploy function` command by normalizing role
2017-10-17 23:20:12 +09:00
daviskoh
6886f121c0 remove odd duplicate assignment 2017-10-15 20:45:00 -04:00
Rafal Wilinski
36a37d08e0 Fix helloTwo function deployment 2017-10-14 13:39:37 +02:00
horike37
2d9c75ba31 Merge branch 'master' into variable-auth-type 2017-10-14 17:47:04 +09:00
Rafal Wilinski
656862919e Shorten test description 2017-10-11 14:03:09 +02:00
Rafal Wilinski
da33790a78 Fix test linter issues 2017-10-11 13:57:06 +02:00
Rafal Wilinski
1c57e39365 Add extendedValidate test 2017-10-11 13:53:01 +02:00
Rafal Wilinski
9e99b3aed0 Fix linter issues 2017-10-11 13:01:03 +02:00
Rafal Wilinski
a7b711dc33 Add function attached to APIGW timeout warning 2017-10-11 12:49:08 +02:00
Daniel Schep
29a85498f5 Set stdin to a TTY in invoke.py to allow PDB use
Setting `sys.stdin` to a TTY prevents `pdb.set_trace()` from immediatly throwing
`BdbQuit`. I am unsure if there is a way to make this work in Windows
2017-10-10 14:40:23 -04:00
Jonathan Spies
1f086cfa14 update validator to accept type 2017-10-10 13:08:40 -05:00
Jonathan Spies
2341e5beae separate expectation for REQUEST into its own test 2017-10-10 12:36:16 -05:00
Jonathan Spies
e75c783365 add type option to authorizer. implements #4325 2017-10-10 12:31:22 -05:00