89 Commits

Author SHA1 Message Date
Philipp Muens
f48130b527 Fix test 2019-01-28 14:05:11 +01:00
Philipp Muens
19996c2d1a Merge branch 'master' into fix-broken-profiles 2019-01-28 13:55:22 +01:00
Danny Varner
d3fef359f4 Fix linting errors 2019-01-25 21:08:58 -08:00
Danny Varner
4ad73bb7ca Add test for profile fix 2019-01-25 20:55:33 -08:00
Philipp Muens
ecaa6d80f5 Merge branch 'master' into default-error-message 2019-01-24 13:17:59 +01:00
Philipp Muens
b22a2c9c48 Merge branch 'master' into aws-promisified-provider 2019-01-24 13:01:30 +01:00
drexler
911bedd0c0 add unit test 2019-01-23 20:32:11 -05:00
Philipp Muens
89d037c468
Merge pull request #5662 from jetbridge/master
Provide AWS_PROFILE from configuration for invoke local
2019-01-22 13:12:29 +01:00
Philipp Muens
da83822905 Fix and update tests 2019-01-22 13:01:24 +01:00
Mischa Spiegelmock
b563fb218e attempting to create a test for invoke local with profile 2019-01-16 15:58:30 +02:00
Takahiro Horike
07154d772f
Merge pull request #5694 from exoego/cross-region-same-stack-name
AWS: Request cache should add region as key to prevent cross-region cache collision
2019-01-16 00:32:48 +09:00
exoego
2f76b6e08d Fix linting error. 2019-01-13 22:35:06 +09:00
exoego
5790c3a69c Fix request cache to consider cross-region for ${cf.REGION}. 2019-01-13 22:15:45 +09:00
exoego
997ac354f7 Update test for regression. 2019-01-12 07:39:17 +09:00
exoego
337eb79b61 Add regression test for cf.REGION syntax. 2019-01-04 21:00:11 +09:00
exoego
b37f5cdb4b Remove validation for CloudFront since it is already implemented in createStack.js 2019-01-04 18:40:19 +09:00
exoego
85238c4331 Split validation: check underscore always and check hyphen only if http events are present. 2018-12-31 21:51:30 +09:00
exoego
e694cd1abf Refactor: getStage returns dev as default. 2018-12-31 07:43:32 +09:00
exoego
0f1a47a957 Add test to increase coverage. 2018-12-30 23:17:32 +09:00
exoego
b9d183fa8c Validate using RegExp. 2018-12-30 23:10:20 +09:00
exoego
a8194030e2 Add stage name validation to AWS provider. 2018-12-30 22:53:58 +09:00
jlamande@gmail.com
14c8af8246 feat(log): Log AWS SDK calls in debug mode 2018-12-18 02:41:36 +01:00
exoego
c3203aa347 Add test and document. 2018-12-08 21:29:00 +09:00
Jeremy Benoist
f8a99e942d
--aws-profile should override profile defined in serverless.yml 2018-11-22 15:40:25 +01:00
weeniearms
b5da4d09ed Added possibility to specify custom S3 key prefix instead of the standard 'serverless' 2018-09-17 09:35:40 +02:00
Kalarrs Topham
028187176d Updated aws provider to invoke .promise on methods that support it. Otherwise falls back to .send with a callback. 2018-07-25 09:23:47 -07:00
Frank Schmid
c713f439e5
Add retry unit tests, check credential errors for one retry. 2018-05-22 12:35:50 +02:00
Frank Schmid
6b2eb9f126
Add unit test for 429 and retryable = false 2018-05-17 15:22:37 +02:00
horike37
04a8d17041 revived getAccountId 2018-05-05 17:23:37 +09:00
Mariusz Nowak
80c00b91e8 Recognize recoverable errors by retryable property 2018-04-05 16:40:45 +02:00
Takahiro Horike
5c886b5b2c
Merge branch 'master' into sls-govcloud 2018-03-13 06:02:22 +09: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
Mike Pugh
113ec4cceb Updae tests 2018-01-19 14:59:49 -05: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
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
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
Alex Casalboni
5c5f893e69 Added tests (increased coverage) 2017-10-28 01:51:42 +02:00
Alex Casalboni
64ccb046a7
Merge branch 'master' into issue4252-s3-transfer-acceleration 2017-10-28 00:59:18 +02:00
Alex Casalboni
61a9d433dc removed enableBucketAcceleration (no API call should be needed -> CloudFormation support!) 2017-10-27 15:58:44 +02:00
Geoffrey Lancaster
de342e9044 resolved merge issues 2017-10-18 22:50:34 -06:00
Geoffrey Lancaster
39274ed8e1 resolved eslint issues 2017-10-18 22:15:03 -06:00
Geoffrey Lancaster
3a0be84201 fixed typo 2017-10-18 22:09:28 -06:00
Geoffrey Lancaster
2a524aaf9c updated test suite per requests 2017-10-18 21:54:08 -06:00
horike37
4b623b0e18 change position which false is assigned 2017-10-07 18:54:09 +09:00
Alex Casalboni
2c93221e9b jslint 2017-09-22 17:53:17 -04:00
Alex Casalboni
c7a7ceeb87 100% coverage for awsProvider.js (refactor & new tests, plus a minor test nesting fix) 2017-09-22 17:49:19 -04:00
Geoffrey Lancaster
5862aa5498 removed comments 2017-09-22 10:17:43 -05:00
Geoffrey Lancaster
b7ecaf737f fixed lint error 2017-09-21 20:11:29 -05:00
Geoffrey Lancaster
e4c26a0d03 updated to use path.join and afterEarch for env variable clean up 2017-09-21 20:06:13 -05:00
Geoffrey Lancaster
e520c6bd02 Merge remote-tracking branch 'parent/master' 2017-09-21 17:23:31 -05:00