49 Commits

Author SHA1 Message Date
Philipp Muens
24b90af89d Fix linting errors and reduce ratchet to 100 2016-06-10 07:43:37 +02:00
Philipp Muens
82cbccf6b0 Refactor plugins to use new constructor based options passing 2016-06-09 20:09:50 +02:00
Philipp Muens
2fe214b999 Add fix to check for the correct resource (should be a function) 2016-06-09 17:10:42 +02:00
Philipp Muens
a851b58c7f Fix failing "awsDeploy" hook promise chain tests 2016-06-09 16:33:00 +02:00
Philipp Muens
fb4d31215b Fix linting and naming issues 2016-06-09 16:08:52 +02:00
Philipp Muens
739e5d46a8 Add fix for update function in "updateStack"
This fix makes it possible to iterate over the service.resources.aws.Resources
property to attach the zipFileKey to the corresponding function resource.
Furthermore this fix removes the tight coupling between the "awsDeploy" and "awsCompileFunctions"
plugins.
2016-06-09 15:10:46 +02:00
Philipp Muens
cc258c8398 Uppercase "AwsDeploy" class name
So that it sticks to the overall naming convention.
2016-06-09 14:34:08 +02:00
Eslam A. Hefnawy
b4fa9a498f fixed sync promises in arary 2016-06-09 13:19:09 +02:00
Philipp Muens
061616f5d8 Fix broken create test (in createStack) 2016-06-09 07:52:48 +02:00
Philipp Muens
6d2e67f21a Refactor awsDeploy to use new deploy lifecycles
The awsDeploy plugin now uses different lifecycles to split the tasks up and
introduce a way for 3rd party plugin developers to hook into those lifecycle to e.g.
add resources before everything is deployed.
2016-06-09 07:18:05 +02:00
Philipp Muens
a7acecbf05 Remove programmatically role setting for Lambda function 2016-06-08 08:23:51 +02:00
Philipp Muens
5d1894aa05 Remove "compileFunctions" out of "awsDeploy" plugin 2016-06-07 20:38:35 +02:00
Eslam A. Hefnawy
ea470daf90 fixed S3 bucket name 2016-06-02 21:04:25 +02:00
Philipp Muens
68b3d835d1 Add missing parenthesis to test description 2016-06-01 18:46:27 +02:00
Eslam A. Hefnawy
492b617a1e fixed some linting issues 2016-06-01 18:12:50 +02:00
Eslam A. Hefnawy
cba28f1fd2 fixed awsDeploy on deployment for the second time 2016-06-01 18:02:29 +02:00
Philipp Muens
9ed18e7e89 Add include functionality 2016-06-01 17:38:54 +02:00
Eslam A. Hefnawy
2de6b3e76c added restore method 2016-06-01 17:30:33 +02:00
Eslam A. Hefnawy
31e5daf992 added test for deploying functions to S3 2016-06-01 17:30:33 +02:00
Philipp Muens
ca29606b04 Add tests for predefined exclude patterns (e.g. .git folder)
There are currently 5 different predefined exclude rules (.git, .gitignore, .DS_Store,
serverless.yaml, serverless.env.yaml) which will ensure that those files are not
included in the zipped archive. This test ensures this behavior.
2016-06-01 17:03:02 +02:00
Eslam A. Hefnawy
0075e4d243 added extra test for awsDeploy 2016-06-01 16:58:11 +02:00
Philipp Muens
279b0d5a2d Add zipping files test for zipFiles functionality 2016-06-01 16:45:28 +02:00
Philipp Muens
e19dddac15 Add exclude support 2016-06-01 15:46:53 +02:00
Eslam A. Hefnawy
b30c8fd615 fixed some linting issues 2016-06-01 15:00:27 +02:00
Eslam A. Hefnawy
03d8257993 added test for custom resources 2016-06-01 14:31:11 +02:00
Eslam A. Hefnawy
cb57020dc2 added validation and mergin custom resources 2016-06-01 14:18:15 +02:00
Eslam A. Hefnawy
ed6c343855 removed commented code 2016-06-01 11:54:36 +02:00
Eslam A. Hefnawy
fe9014cbae finished updateStack tests 2016-06-01 11:50:14 +02:00
Philipp Muens
475486bc9c Add correct tests for zipFunctions functionality 2016-06-01 11:42:09 +02:00
Eslam A. Hefnawy
f79d112859 added tests for createStack 2016-06-01 11:30:55 +02:00
Philipp Muens
10d0216ada Cleanup and fix tests 2016-06-01 09:14:58 +02:00
Philipp Muens
ad8e375217 Mark "deployFunctions" tests as pending so that they won't error out for now 2016-05-31 17:33:53 +02:00
Philipp Muens
474c7f150c Add "magic handler" zipping support
Add zipping of handler directories. Add a walkDirSync method which collects all the
file paths in a directory (needed for the .zip file creation for "magic handlers") in a synchronous way.
2016-05-31 17:13:05 +02:00
Eslam A. Hefnawy
e0cb16c7bf successfully deployed functions 2016-05-31 16:20:09 +02:00
Eslam A. Hefnawy
3c9628bad2 awsDeploy: cleaning up 2016-05-31 11:02:15 +02:00
Philipp Muens
e6f00c1900 Remove "." in uniqueString / extend zipFilePath test to check for a .zip file 2016-05-31 10:33:57 +02:00
Philipp Muens
7e82d10038 Add unique .zip file name and temp directory generation
Add generation of a unique .zip file so that two function .zip files won't collide.
Furthermore the .zip file is stored in a temp directory so that it won't pollute the service directory.
2016-05-31 09:35:46 +02:00
Philipp Muens
78d6316c80 Add setting of "Code" property in compile method 2016-05-31 07:36:55 +02:00
Philipp Muens
867cf16ce4 Add deployedFunctions array which contains all functions related information
This way everything is in one place and can be easily passed around.
2016-05-31 06:50:45 +02:00
Philipp Muens
c710b62dea Add saving of URL to S3 zip file upload in array 2016-05-31 06:14:31 +02:00
Eslam A. Hefnawy
edfa89cfff added updateStack method 2016-05-30 19:57:40 +02:00
Eslam A. Hefnawy
5056a63684 better region name handling for awsDeploy 2016-05-30 19:18:44 +02:00
Philipp Muens
6944ed20a8 Add basic deployFunctions functionality 2016-05-30 17:59:20 +02:00
Philipp Muens
4bd0f83ade Change function name for validation in compiles main function 2016-05-30 16:12:16 +02:00
Philipp Muens
41325c2f8e Rename validation for the compile functionality
Because validation is used in other functions as well (and a general name might clash with
existing names for the same functionality).
2016-05-30 15:54:09 +02:00
Philipp Muens
60bfdb248d Add additional compile function functionality 2016-05-30 14:02:35 +02:00
Eslam A. Hefnawy
26f534f481 basic deployCore functionality 2016-05-30 13:29:44 +02:00
Philipp Muens
0a1c19b02a Add extractFunctions function for compile step 2016-05-30 12:08:32 +02:00
Eslam A. Hefnawy
8ee36c42f5 awsDeploy: init plugin structure 2016-05-30 10:33:22 +02:00