5351 Commits

Author SHA1 Message Date
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
Alex
8083fd5ef9 removed json from yml 2018-02-08 13:24:20 -08:00
Simon Males
bd6b48ab85 Enable TypeScript file source map support in TypeScript template 2018-02-08 15:26:26 +01: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
Alex
e894983ad0 squashed commit 2018-02-06 17:13:08 -08:00
Alex Gaesser
53e7d87eac
Update serverless.yml 2018-02-05 10:55:19 -08:00
Alex Gaesser
fc6b83a1ee
Update serverless.yml 2018-02-05 10:55:01 -08:00
Alex Gaesser
fe2b9ad3ab
Update serverless.yml 2018-02-05 10:54:35 -08:00
Alex Gaesser
50c2299414
Update serverless.yml 2018-02-05 10:53:42 -08: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
Derek Mullins
87e83b8b43 Add Windows support for spawning mvn 2018-02-02 19:31:20 -05:00
Alex Gaesser
563778810d
added activeVersions attribute 2018-02-02 11:58:45 -08:00
Alex Gaesser
8c5712b54e
added activeVersions attribute 2018-02-02 11:57:48 -08:00
Alex Gaesser
8cfa96e495
added activeVersions attribute 2018-02-02 11:57:23 -08:00
Alex Gaesser
c7e49960b9
added activeVersions attribute 2018-02-02 11:56:48 -08: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
Stuart Lang
35ec7251dc Uprade aws-csharp to .NET Core 2.0 2018-01-27 15:12:27 +00:00
Mike Pugh
7105b7622b Remove csharp obj files 2018-01-26 10:48:31 -05: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
Takahiro Horike
6aac1074df
Merge pull request #4678 from und3fined/master
remove aws credentials.signatureVersion in `enableS3TransferAccelerat…
2018-01-25 22:27:40 +09:00
Yun Zhi Lin
df85e2d9bc add support for AWS go: new create templates aws-go and aws-go-dep, docs, updated integration tests 2018-01-23 23:52:51 +11:00
Francisco Guimarães
0fe3efefe9 Adding verification to expected file name 2018-01-23 08:55:55 -02: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
Francisco Guimarães
f32231335b Merge branch 'master' into fix-concurrency-upload 2018-01-22 22:43:54 -02:00
Francisco Guimarães
ede4824c97 Improve tests 2018-01-22 22:30:53 -02:00
Francisco Guimarães
cc0fee96b7 Adding spec to test that duplicates uploads 2018-01-22 22:15:57 -02:00
Francisco Guimarães
29e13014db artifactFilePath makes more sense 2018-01-22 15:32:02 -02:00
Francisco Guimarães
d059a3c448 Improve spec description 2018-01-22 14:59:35 -02:00
Francisco Guimarães
3e7f736abc Fix concurrency upload 2018-01-22 14:58:34 -02:00
Francisco Guimarães
f981c1c770 WIP 2018-01-22 13:16:43 -02:00
Takahiro Horike
31d536cd8c
Merge pull request #4658 from drexler/source-maps-nodejs-typescript-template
enable source map generation for nodejs-typescript example
2018-01-22 22:42:22 +09:00
Mike Pugh
2e925af0b4 Fixing lint errors 2018-01-19 17:49:37 -05:00
Mike Pugh
8ee6e1955a Fix regressions 2018-01-19 17:33:13 -05:00
Mike Pugh
113ec4cceb Updae tests 2018-01-19 14:59:49 -05:00
Mike Pugh
88ed6c9d47 Utilize AWS::URLSuffix instead of hardcoded amazonaws.com 2018-01-19 14:07:58 -05:00
Mike Pugh
b921d2656e Rename provider getAccountId() to getAccountInfo() since it now returns the caller identity object including partition based on ARN 2018-01-19 13:56:00 -05:00
Mike Pugh
16debac62e Replace AWS Partition strings with CF Pseudo Param or from STS 2018-01-19 13:52:29 -05:00
Andres
298154abf1 Update documentation and templates for serverless-kubeless 0.3 2018-01-18 17:08:14 +01:00
Mike Pugh
3bc45becc9 Support GovCloud and China region deployments 2018-01-18 10:04:11 -05:00
drexler
f88415eedd enable source map generation for nodejs-typescript example 2018-01-16 08:07:55 -05: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