1464 Commits

Author SHA1 Message Date
Mariusz Nowak
77775f778f Rely on _.includes instead of arr.includes (Node v4 support) 2018-04-09 12:30:33 +02:00
Mariusz Nowak
47d7960311 Improve test to ensure we pick right error 2018-04-09 12:30:06 +02:00
Mariusz Nowak
2d58217680 Merge branch 'master' into handle-aws-retryable-errors 2018-04-09 11:21:56 +02:00
Takahiro Horike
25e99e8b81
Merge pull request #4879 from chrisbarbour/vpc-config-merging-iammanagedpolicies
iamManagedPolicies merging with Vpc config
2018-04-07 20:45:48 +09:00
Mariusz Nowak
9f3e7f92cf Comment reasoning for single then usage 2018-04-06 14:32:31 +02:00
CHRIS BARBOUR
afcb511841 removed spread operator to support older versions 2018-04-05 16:22:53 -04:00
CHRIS BARBOUR
4e4de5e583 fixing linting issues 2018-04-05 16:07:37 -04:00
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
Frank Schmid
c73b47b6c1
Merge pull request #4873 from GuruRAM/master
serverless invoke local error handling fix for #4852
2018-04-05 19:50:06 +02:00
Mariusz Nowak
495afd1ee9 Remove reduntant promise chain step 2018-04-05 16:41:41 +02:00
Mariusz Nowak
80c00b91e8 Recognize recoverable errors by retryable property 2018-04-05 16:40:45 +02:00
CHRIS BARBOUR
f1d3aecb63 closes #4876 merging iamManagedPolicies when using VPCConfig 2018-04-04 22:17:39 -04:00
GuruRAM
a2e62373e4 #4852 "should throw when module loading error" unit test improvement 2018-04-04 20:39:23 +03:00
GuruRAM
cf1260a372 #4852 fix by rethrowing a module loading exception in aws invoke local 2018-04-03 23:13:04 +03: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