1390 Commits

Author SHA1 Message Date
Takahiro Horike
21c7f1fe9e
Merge pull request #3799 from hassankhan/fix-borked-cup-triggers
Fix broken merge in CUP compile event. Fixes #3773.
2018-02-03 11:10:58 +09:00
Kobi Meirson
0f117c49e8 Stop throwing errors if alexaSkill is not in the events list (#4708)
* The new alexaSkill skill id restriction (#4701) was throwing an error if an event which is not `alexaSkill` was presented.

* `.to.not.throw()` is a function, not a getter.
2018-02-02 17:48:45 +01:00
Frank Schmid
02bb0df414
Merge pull request #4689 from koterpillar/no-white-on-white
Do not explicitly color messages in white
2018-02-02 15:18:41 +01:00
Kobi Meirson
d7eea2005e Restricting alexaSkill functions to specific Alexa skills (#4701)
* - Adding support for restricting the executing alexa skill by id (serverless/serverless#4700)
- Adding support for multiple `alexaSkill` events on a single function (allows multiple Alexa Skills on a single lambda)

* Adding a comment on the `serverless.cli` addition when testing.

* Updating templates to have the right `alexaSkill` syntax

* Cleaning up Travis-CI's occasional errors with sinon stubs going wild (hopefully)
(https://travis-ci.org/serverless/serverless/jobs/335361582 / https://travis-ci.org/serverless/serverless/jobs/335706593 / https://travis-ci.org/serverless/serverless/jobs/335682396)

* one last test case to make sure the alexaSkill file will be fully covered.

* PR notes

* naming - Add a default suffix for alexaSkillLogicalId if undefined

* Revert changes to createStack.test.js (#c967c8d956b3d96afbaefa7fbe3e6eb498ecdd7c)

* createStack.test - reject with an Error, not with a promise that resolves to an error.
2018-02-02 15:18:00 +01:00
Frank Schmid
022e99f77c
Added rejection instead of throw for consistency 2018-01-31 11:28:45 +01:00
Michał Zalewski
8833893481 Changed warning to error message if reservedConcurrency is non-integer 2018-01-31 08:50:54 +01:00
Michał Zalewski
0204420324 Added support for concurrency option in AWS Lambda
AWS Lambda has support for concurrency limit and it should be supported
in serverless.yml
2018-01-30 22:53:28 +01:00
Alexey Kotlyarov
d5dc0cbf4b Do not explicitly color messages in white
On white background terminals, white text is unreadable. Use the default
terminal color instead.

Fixes #4673
2018-01-29 19:33:35 +11:00
CuongLe
0283af7a3e remove aws credentials.signatureVersion in enableS3TransferAcceleration
Fix error: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

See more: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
2018-01-23 12:38:05 +07:00
Takahiro Horike
63f15f6741
Merge pull request #4650 from thomasmichaelwallace/master
allow authorizer.name to override implied authorizer.arn name.
2018-01-16 08:55:01 +09:00
Takahiro Horike
4b71faf212
Merge pull request #4596 from Instabridge/invokelocal-pojo
InvokeLocal/Java: support POJO input and different handler names
2018-01-13 14:53:12 +09:00
Takahiro Horike
5d8acc3853
Merge pull request #4601 from willwhy/4569-cloudwatchlog-filter
improve aws cloudwatchlog filter #4569
2018-01-13 14:52:54 +09:00
thomasmichaelwallace
1ae47641b1 allow authorizer.name to override implied authorizer.arn name. 2018-01-12 13:57:21 +00:00
Daniel Schep
211ba71077 Don't have Python buffer it's output 2018-01-10 18:38:17 -05:00
Alex Casalboni
407b0f06e6 BbPromise.reject instead of throwing error 2018-01-08 15:03:41 +01:00
Alex Casalboni
c720018125 test typo 2018-01-07 17:38:43 +01:00
Alex Casalboni
1aee4b8240 updated tests (100% file coverage) 2018-01-07 17:30:18 +01:00
Alex Casalboni
a9b82e538c Added new no-aws-s3-accelerate argument to explicitly disable S3 Transfer Acceleration (updated doc too) 2018-01-07 17:29:54 +01:00
Alex Casalboni
4de092c092 not setting 'Suspended' acceleration by default (permission would be required!) 2018-01-07 16:37:23 +01:00
Takahiro Horike
13bda4bf1e
Merge pull request #4247 from hgiasac/sls-shared-api
WIP - Added support for using an existing ApiGateway and Resources
2018-01-06 15:42:00 +09:00
Takahiro Horike
45f5e15550
Merge pull request #3953 from lovenm/master
Fix issues with HTTP integration
2018-01-06 00:56:35 +09:00
horike37
408ed25ca4 Merge branch 'master' into 4569-cloudwatchlog-filter 2018-01-05 11:05:26 +09:00
Will Yang
5a0a31f8a0 use double quotes string to be better to represent the test case 2018-01-05 09:37:19 +11:00
Will Yang
6242346034 add test case for escaped quotes 2018-01-04 12:32:46 +11:00
Will Yang
ced088c4fa unescape quotes when necessary to compatible with old filter patterns 2018-01-03 14:15:54 +11:00
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
Will Yang
b444155a27 improve aws cloudwatchlog filter to avoid massive quotes in serverless.yml 2017-12-22 11:15:31 +11:00
Jesús A. Álvarez
db08b03be4 resolve handler method like AWS lambda 2017-12-20 16:21:59 +01:00
Jesús A. Álvarez
d9c986e97f pass handler name to java 2017-12-20 16:21:59 +01:00
Jesús A. Álvarez
11cf69bd80 fall back to POJO if handler doesn't take Map 2017-12-20 16:21:59 +01:00
Toan Nguyen
c279795709
Merge branch 'master' into sls-shared-api 2017-12-17 22:50:59 +07: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
Takahiro Horike
c0967caf14
Merge branch 'master' into sls-shared-api 2017-12-12 13:15:44 +09: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
Toan Nguyen
9a8b1337ef fix test script 2017-12-09 18:42:09 +07:00
Toan Nguyen
d3071fdc32 fix test script 2017-12-09 17:56:42 +07:00
Toan Nguyen
bd80e3412f fixed undefined resource name if all resources are predefined 2017-12-09 17:50:46 +07:00
Toan Nguyen
959c2fb4dd fixed undefined resource name if all resources are predefined 2017-12-09 17:21:48 +07: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