Frank Schmid
8ff661835e
Merge branch 'master' into populate-default-objects
2017-12-06 12:34:50 +01:00
Erik Erikson
dea94bc310
Add significant variable usage corner cases
2017-12-05 14:31:00 -08:00
Frank Schmid
8cd604cd41
Wrap cached value into promise (addresses issue mentioned in #4509 )
2017-12-05 12:39:48 +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
Frank Schmid
37340467ed
Populate objects if default syntax targets an object
2017-12-04 18:08:39 +01:00
e-e-e
f90c6d2782
return resolver promise; fix lint
2017-12-03 21:25:22 +11:00
e-e-e
57d898d39e
replace promise in cache with cached result once resolved.
2017-12-02 12:03:33 +11:00
Benjamin Forster
fae0ccb1d7
update variable name in test to be more descriptive
2017-12-01 10:40:23 +11:00
Benjamin Forster
6e6fea3fa2
update ssm cache to generic variable cache.
2017-12-01 10:33:30 +11:00
Benjamin Forster
382f6900e0
update test to show that cache is working
2017-11-30 10:08:23 +11:00
Benjamin Forster
33b666c431
add test
2017-11-29 17:49:52 +11:00
Benjamin Forster
e780a59b66
fix linter
2017-11-29 17:21:41 +11:00
Benjamin Forster
de22ae698b
add cache to ssm variables
2017-11-29 17:10:05 +11:00
Erik Erikson
143a2aa65b
Account for duplicate copies without populating more than once. As a result, populate in place.
2017-11-17 17:30:15 -08:00
Frank Schmid
e823679340
Fixed package-lock and unit tests after rebase (conflicts)
2017-11-17 00:17:28 +01:00
Philipp Muens
9fd1c457d6
Fix stub setups and teardowns in tests
2017-11-17 00:04:21 +01:00
Eslam A. Hefnawy
535f425344
added tests
2017-11-17 00:00:58 +01:00
Eslam A. Hefnawy
bebcdf3057
added support for circular references in variable system
2017-11-17 00:00:57 +01:00
horike37
0bb444ac76
minor tweak
2017-11-09 01:27:09 +09:00
horike37
dbe02ab0e8
Merge branch 'master' of github.com:serverless/serverless
2017-11-08 10:30:50 +09:00
Frank Schmid
5744a08a91
Fixed #getValueFromFile():should work for absolute paths with ~ unit test
2017-11-07 12:21:06 +01:00
Frank Schmid
3e826ef598
Reworked remaining variable tests to use sinon chai notation
2017-11-07 11:49:07 +01:00
horike37
9cb43195be
add test if symlink works
2017-11-07 09:36:20 +09:00
horike37
59290542c0
improve Variables test
2017-11-07 09:14:24 +09:00
horike37
21a64aed19
update test for that case
2017-11-07 00:00:40 +09:00
Farley
80c9442794
Fixing linting, finally?
2017-11-06 13:25:38 +01:00
Farley
2080ce9ec1
Fixing linting
2017-11-06 13:19:23 +01:00
Farley
5b786e8914
Fixing linting
2017-11-06 13:14:57 +01:00
Farley
113e7b93a9
Fixing #4435
2017-11-06 12:43:13 +01:00
Basile Trujilllo [L0gIn]
c6d204bd88
Remove realpathSync second arg to fix unit tests
2017-10-17 14:51:25 +02:00
Basile Trujilllo [L0gIn]
188382f339
Add symlink variable file unit tests
2017-10-17 14:32:58 +02:00
Basile Trujilllo [L0gIn]
08d62af899
Resolve file path before read file
2017-10-17 11:33:23 +02:00
Kostas Bariotis
47082fbc43
move fs utils, refactor tests
2017-10-06 16:37:19 +03:00
Mariusz Nowak
7689cff5a9
Improve plugin initialization error reporting
...
Distinguish not found errors from "initialization errors (so far in both cases not found error was thrown)
2017-09-29 16:25:29 +02:00
Doug Moscrop
778f510c35
fix #4272 use instanceof to detect duplicate plugins and log a warning
2017-09-18 14:49:57 -04:00
Philipp Muens
a0ddabc1ba
Merge pull request #4249 from lorengordon/escape-dash
...
Escapes the hyphen in the ssm variable syntax
2017-09-14 10:39:54 +02:00
Rafal Wilinski
6d893aee90
Fix typo
2017-09-13 16:53:04 +02:00
Rafal Wilinski
bc86be2252
Add --no-color flag notice
2017-09-13 16:48:23 +02:00
Loren Gordon
629c073c6b
Tests SSM variable syntax for all allowable characters
2017-09-13 07:14:49 -04:00
Loren Gordon
da782b85f4
Escapes the hyphen in the ssm variable syntax
...
Fixes #4248
2017-09-12 13:57:52 -04:00
Philipp Muens
96bac3963c
Merge pull request #4224 from lorengordon/escaped-default-string
...
Removes escaping of double-quotes around string value
2017-09-11 10:23:00 +02:00
Loren Gordon
9746de39dd
Expects string variables to fulfill promise
2017-09-07 09:39:31 -04:00
Loren Gordon
6088c9f494
Updates string syntax tests to call functions under test
2017-09-07 08:21:48 -04:00
Loren Gordon
b00ad4e773
Removes escaping of double-quotes around string value
2017-09-07 07:32:06 -04:00
Frank Schmid
232732cbac
Push coverage again
2017-09-06 18:16:06 +02:00
Frank Schmid
07becabf6c
Added alias commands and unit tests.
2017-09-06 17:36:17 +02:00
Eslam λ Hefnawy
e0201e2927
Merge pull request #4192 from HyperBrain/deploy-function-deploys-function
...
Deploy --function deploys function
2017-09-05 20:09:15 +07:00
Eslam λ Hefnawy
b4c3513b2d
Merge pull request #4062 from lorengordon/ssm-vars
...
Supports SSM Parameters as serverless variable references
2017-09-04 21:38:41 +07:00
Philipp Muens
323ae77790
Merge branch 'master' into deploy-function-deploys-function
2017-09-04 12:59:58 +02:00
Philipp Muens
907c16da21
Fix failing Utils class tests
2017-09-04 10:27:41 +02:00