1452 Commits

Author SHA1 Message Date
CHRIS BARBOUR
cc4dfca85f added test to verify that managed policies are merged along with vpc config policies 2018-04-05 15:22:54 -04:00
CHRIS BARBOUR
f1d3aecb63 closes #4876 merging iamManagedPolicies when using VPCConfig 2018-04-04 22:17:39 -04:00
Takahiro Horike
6cbd0a95bd
Merge pull request #4665 from americansystems/sls-govcloud
Support AWS GovCloud and China region deployments
2018-04-03 19:09:26 +09:00
Francisco Guimarães
6a276392c8 Removing focused test 2018-03-27 22:24:43 -03:00
Francisco Guimarães
d9cef43f7e Fix tests on windows 2018-03-27 22:22:11 -03:00
Francisco Guimarães
849efef503 Fix upload artifact path 2018-03-27 22:00:14 -03:00
Kurt Miller
4a367939d9 Fix lint error for line too long. 2018-03-26 23:34:42 -04:00
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
0c86d99941
Merge pull request #4793 from chrisbarbour/add-iam-managed-policies
Add iam managed policies
2018-03-23 08:40:25 +09:00
CHRIS BARBOUR
0c8a569968 fixing location of ManagedPolicyArns to be under Properties 2018-03-21 21:51:35 +00:00
Frank Schmid
9ac93ff8e5
Merge pull request #4677 from franciscocpg/fix-concurrency-upload
Fix concurrency upload
2018-03-19 16:17:03 +01:00
Francisco Guimarães
005b6bdcdd Adding NUM_CONCURRENT_UPLOADS constant 2018-03-19 10:27:11 -03:00
chrisbarbour
2d9f4a27d3 updating to use lodash 2018-03-13 08:22:20 +00:00
Takahiro Horike
5c886b5b2c
Merge branch 'master' into sls-govcloud 2018-03-13 06:02:22 +09:00
bobjamin
d9f7454339 adding semicolons for linter 2018-03-02 10:49:46 +00:00
bobjamin
e492e744a9 added iam managed policies to aws provider closes #3751 2018-03-02 10:33:35 +00:00
Takahiro Horike
ab163b1fe6
Merge pull request #3999 from rmax-contrib/aws-notification-arns
Add notificationArns AWS parameter to enable Cloudformation notifications
2018-03-02 07:37:17 +09: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
Francisco Guimarães
4ac05a63bf Merge branch 'master' into fix-concurrency-upload 2018-02-28 09:51:35 -03: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
Devin Fee
d1d1b05cea Fixed python module parsing (#4755)
* Fixed python module parsing

Ref: https://github.com/serverless/serverless/issues/4663#issuecomment-366931491

* Update index.js

* Update index.js
2018-02-21 18:59:42 +01:00
Frank Schmid
39caddc404
Merge pull request #4713 from erikerikson/fix-4687-cyclic-variable-dependencies
Eliminate/Report Hung Promises (#4687), Prepopulate Stage and Region (#4311), Handle Quoted Strings (#4734)
2018-02-20 13:56:27 +01:00
Erik Erikson
4400ffc9e4 fix #4311 & #4734, separate PromiseTracker, minutiae
#4311
  see prepopulateService - attempts to pre-populate the region and stage settings necessary for making a request to AWS, rejecting and dependencies thereon it runs into during that process
  see the `deep` variable work.  this was a knock-on effect of providing pre-population.  it actually represents an obscure class of bugs where the recursive population previously in getDeepValue caused the caller not to be in charge of population choices (thus fixing for pre-population) but also caused potential deadlocks resulting from getDeepValue creating circular dependencies.

#4734
  see splitByComma - a regex to do the splitting but ignore quoted commas was getting very deep and involved.  Instead, identify quoted string boundaries, then identify commas (including white space around them) and take those commas not contained by quotes as the locations for splitting the given string.  Trim the string as well (removing leading and trailing white space).
  add sophistication to the overwrite syntax, allowing for whitespace and repetitions (for robustness)
  add sophistication to the string ref syntax, allowing for use in identifying multiple quoted strings in a variable (i.e. for overwrites)

#NotCreated
  fix a bug I created earlier in the branch that caused reporting to be less informative (see renderMatches)

separate PromiseTracker
  move this class into its own file for the purpose of increasing testability and offering reuse

minutiae
  filter the properties given to populateVariables so as to avoid attempting resolution on non-variables.  Efficiency and noise reduction change.  Also cleans up the code (e.g. see populateObject and its use)
  cleaning of overwrite as a side effect
  offer variable cleaning as a idiom
  reorder the Variables.js `require`s to be in alphabetical order
2018-02-16 17:13:03 -08:00
Christopher Osborn
edd863be01
Wraps Poorly Parsing URL in Angle Brackets
As suggested by <https://tools.ietf.org/html/rfc3986?#appendix-C>.

[#4674]
2018-02-12 16:54:00 -05:00
Mike Pugh
5477eb2bb4 Update tests involving getAccountInfoStub 2018-02-08 09:19:57 -05:00
Mike Pugh
1f9e32d4c8 Reverting test file back to old version to avoid linting issues 2018-02-07 20:03:14 -05:00
Mike Pugh
7b6a8ff262 Lodash and test updates 2018-02-07 19:50:24 -05:00
Mike Pugh
52cc8be45a Move geetS3EndpointForRegion to utils, change to regex.test instead of string.match for authorizer ARNs 2018-02-03 08:04:21 -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
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
Mike Pugh
3af17717d7 Fix managed lambda vpc access exec role, update readability of awsProvider partition detection 2018-01-26 10:47:29 -05:00
Francisco Guimarães
0fe3efefe9 Adding verification to expected file name 2018-01-23 08:55:55 -02:00