22 Commits

Author SHA1 Message Date
Mark Tse
525fe8a07e aws - adding naming function for S3 compiled template file name. 2019-10-13 14:30:55 -04:00
Mariusz Nowak
4944f471b1
Prettify 2019-06-26 12:43:01 +02:00
Luan
91806cef44 Fix eslint issues
Signed-off-by: Luan <luan@luanmuniz.com.br>
2019-01-19 16:34:14 -02:00
Luan
96183686bf Create tests for #5664
Signed-off-by: Luan <luan@luanmuniz.com.br>
2019-01-19 16:27:43 -02:00
Luan
79fe3adb85
Fix #5664 - Rollback fails due to a timestamp parsing error
When running sls rollback -t 1546961025152 the timestamp was being parsed as a string inside a Date Object.
This would return an Invalid Date, therefore, failing to convert the timestamp into a valid date.

In here we are checking to see if the date is already a valid one, otherwise convert the timestamp to a number and try again.
We are checking first because most cases we don't want to convert to numbers.

Fix #5664

Ps: We could add another check, if the date is still invalid, throw an Error, but that's not the scope of the issue.

Signed-off-by: Luan <luan@luanmuniz.com.br>
2019-01-16 10:46:00 -02:00
weeniearms
b5da4d09ed Added possibility to specify custom S3 key prefix instead of the standard 'serverless' 2018-09-17 09:35:40 +02:00
Erik Erikson
ca5ba8daac Remove unused parameters in platform.js (and deal with consequences)
Add explicit use of options where they were defined.
2017-12-12 11:59:08 -08:00
Erik Erikson
bf8d57fa9f Improve Stage and Region Usage
Remove the errant (but understandable) distributed usage of region and stage settings.  This otherwise locks in a multitude of bugs around the improper algorithm for selecting (given all context) the proper region or stage setting.  Instead, all code should use the centralized algorithm for determining such values.  This creates a strange first and second class configuration concept but these two are sufficiently varied and complex in their creation and use that this seems appropriate.
2017-12-11 16:39:44 -08: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
Rafal Wilinski
0350bbeadc Add test case 2017-09-21 15:33:27 +02:00
Rafal Wilinski
3301d37244 Change wording 2017-09-21 14:58:08 +02:00
Rafal Wilinski
3a6b33c63c Run deploy:list if timestamp is not specified 2017-09-21 14:55:11 +02:00
Philipp Muens
f9997c9814 Update tests to reflect correct naming and avoid confusion 2017-04-26 13:59:50 +02:00
Philipp Muens
9b0d5619f4 Revert name of compiled CloudFormation template 2017-04-26 13:57:05 +02:00
Eslam A. Hefnawy
770fb87ad9 removed references to old cf file 2017-04-10 02:33:53 +07:00
Eslam A. Hefnawy
0866f2950a fixed issue with rollback 2017-04-07 19:03:12 +07:00
Doug Moscrop
1012c351b7 add sinon-bluebird to make promises in tests a bit cleaner 2017-02-08 12:59:18 -05:00
Philipp Muens
8aad2372eb Refactor test structure
So that all tests follow the *.test.js pattern and globs are used to find test files.
2016-11-22 12:49:26 +01:00
Nik Graf
02e7516801 remove .only from tests 2016-10-21 12:47:50 +02:00
Nik Graf
20933623b0 add unit-tests for rollback 2016-10-21 12:26:42 +02:00
Nik Graf
51c27936b0 add unittests for aws rollback plugin 2016-10-21 11:37:53 +02:00
Nik Graf
078738ca2d add rollback feature 2016-10-21 00:13:21 +02:00