147 Commits

Author SHA1 Message Date
Kurt Miller
ffa67cf2dd Expand http cors tests for maxAge. Last maxAge defined for a path
wins in a merge.
2018-03-26 22:19:51 -04:00
Kurt Miller
8140f44af0 Address review feedback, add tests. 2018-03-26 20:49:56 -04:00
Kurt Miller
1fb35e135b Merge remote-tracking branch 'AutoCustoms/master' 2018-03-26 19:31:19 -04:00
Takahiro Horike
7499af45f0
Merge pull request #4768 from bsdkurt/master
Allow UsagePlan's to be created without ApiKeys defined. Issue #4459
2018-03-01 22:30:48 +09:00
Takahiro Horike
26184f30f8
Merge pull request #4773 from murtyjones/patch-1
Pass authorizer custom context to target lambda
2018-02-27 22:41:41 +09:00
Takahiro Horike
fbaa6cca51
Merge pull request #4763 from icj217/master
Added name property to cloudwatchEvent CF template
2018-02-27 21:44:28 +09:00
Frank Schmid
eb975ddcba
Merge pull request #4775 from serverless/fix-4705
Fixed a bug which you cannot deploy with lambda integration in v1.26.0
2018-02-27 10:35:11 +01:00
Craig Burdulis
52af64368e Fixed test script event name property 2018-02-26 20:31:15 -05:00
Craig Burdulis
53cc8fb607 Added test case and documentation for name property 2018-02-26 20:26:51 -05:00
horike37
93c37e4d39 set default statusCodes to response if it is empty 2018-02-27 01:44:21 +09:00
Marty Jones
818f58ac80
Pass authorizer custom context to target lambda
Per https://github.com/serverless/serverless/issues/4374
2018-02-25 21:38:14 -06:00
Kurt Miller
2b19a196d6 Lint corrections for usagePlan.test.js 2018-02-24 14:52:32 -05:00
Kurt Miller
39d07e9aef Expand UsagePlan testing to cover default and custom cases. 2018-02-24 14:33:55 -05:00
Kurt Miller
97d3a031c8 Allow UsagePlan's to be created without ApiKeys defined. Addresses
issue #4459.
2018-02-24 12:18:03 -05:00
icj217
a4de7288f3
Added name property to CloudFormation template
Now when a user specifies a name property under the cloudwatchEvent, it will be carried over to the CF template.
2018-02-22 13:21:50 -05:00
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
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
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
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
Kyle Minor
25e405c456 Update files to resolve CI requirements 2018-01-09 15:47:23 -05:00
Kyle Minor
933b49f923
Update validate.js 2018-01-09 15:19:52 -05:00
Kyle Minor
eba004c2e6 Merge branch 'master' into feature/BET-1118 2018-01-09 15:11:18 -05: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
Kyle Minor
7f18dda085 Add maxAge parameter to preflightHeaders response Access-Control-Max-Age 2018-01-05 14:24:38 -05:00
Takahiro Horike
45f5e15550
Merge pull request #3953 from lovenm/master
Fix issues with HTTP integration
2018-01-06 00:56:35 +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
Will Yang
b444155a27 improve aws cloudwatchlog filter to avoid massive quotes in serverless.yml 2017-12-22 11:15:31 +11: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
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
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
Toan Nguyen
76e4c7934e fixed eslint typo 2017-10-11 10:49:13 +07:00
Toan Nguyen
de60858227 improve test script and revert package-lock.json 2017-10-11 10:09:17 +07:00