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
Philipp Muens
a05bc333e3
Fix Utils class tests
2017-09-04 09:42:39 +02:00
Philipp Muens
6ee4cd4df8
Fix Service class tests
2017-09-04 09:18:41 +02:00
Loren Gordon
5a7d14af09
Adds overwrite syntax support to SSM variable syntax
...
Check for the expected error message in the case the SSM parameter
does not exist and return `undefined`. Any other (unexpected) error
message still throws an exception.
2017-09-01 15:10:00 -04:00
Loren Gordon
ba14eb9ab2
Adds tests for SSM variable functionality
2017-09-01 12:54:04 -04:00
Loren Gordon
a266d4f224
Supports ssm: variable references
...
Adds support for specifying SSM parameters as serverless variables.
Basic syntax is `${ssm:<foo>}`. To support decryption of SecureString
parameters, the extended syntax is `${ssm:<foo>~true|false}`. The `~`
is a delimiter; `true|false` is evaluated and passed to the
`WithDecryption` option of the SSM API.
2017-09-01 12:54:04 -04:00
Frank Schmid
1303702388
Allow deploy command with function argument
...
* Added function option documentation
* Added unit test for lifecycle termination
* Extended before:deploy:deploy unit tests
* Added debug logging for command invokes/spawns and terminations.
* Deploy with a function parameter starts deploy:function and terminates the deploy lifecycle.
* Spawn allows to exit the current lifecycle and continue with the parent
2017-09-01 15:30:37 +02:00
Mariusz Nowak
5dce256f00
Ensure errorneous calls are properly exposed
2017-08-22 15:11:33 +02:00
Philipp Muens
f8787d4289
Minor fixes
2017-08-21 13:35:04 +02:00
Philipp Muens
44aa158da9
Fix breaking test for custom variableSyntax usage
2017-08-21 13:19:08 +02:00
Philipp Muens
701187bc59
Update all variableSyntax usages
2017-08-21 13:11:29 +02:00
Toby Hede
33431cb45a
Allow double-quoted and single-quoted variables
...
Empty string is now valid
2017-08-20 11:05:15 +10:00
Toby Hede
2b3181c362
Handle both single and double quoted strings
2017-08-18 09:13:01 +10:00
Toby Hede
a1c8a37b9a
Allow use of string as default values in variables
2017-08-18 09:07:29 +10:00
Philipp Muens
8cffbe5c2b
Merge pull request #4074 from RafalWilinski/fix-s3RefSyntax-typo
...
Fix this.s3RefSyntax variable name typo
2017-08-17 14:20:49 +02:00
Philipp Muens
66181c148f
Merge pull request #4017 from vladgolubev/use-is-docker-npm
...
Use is-docker npm package, increased test coverage
2017-08-17 14:07:19 +02:00
Philipp Muens
239e79730a
Merge pull request #4091 from HyperBrain/4090-forward-plugin-exceptions
...
Rethrow original plugin error in debug mode. Added unit tests.
2017-08-17 10:34:07 +02:00
Frank Schmid
bb1e74a43c
Rethrow original plugin error in debug mode. Added unit tests.
2017-08-15 11:38:37 +02:00
Eslam A. Hefnawy
e176dc8e5d
run without functions and lock versions
2017-08-15 15:52:24 +07:00