688 Commits

Author SHA1 Message Date
Philipp Muens
8e48a3cd8e Update other S3 calls to use upload as well 2017-09-14 12:31:43 +02:00
Philipp Muens
d0549eaa28 Update other stubs as well 2017-09-08 13:02:54 +02:00
Philipp Muens
55c78ba63e Rename stubs 2017-09-08 12:57:35 +02:00
Philipp Muens
192bc74a8c Fix tests 2017-09-08 12:47:34 +02:00
Andre Rabold
10987dc533 Use S3 upload method instead of putObject for uploading artifacts 2017-09-06 17:51:53 -07:00
Scott Ewart
c184f36e8c Upload function artifacts with limited concurrency 2017-09-06 08:40:01 -07:00
Loren Gordon
58eec4d761 Uses path join to make tests os agnostic 2017-08-08 09:46:26 -04:00
Eslam A. Hefnawy
bcbbd907ab skip service packaging if artifact is provided 2017-07-07 20:59:00 +07:00
Philipp Muens
27541592e8 Fix and update extendedValidate tests 2017-07-04 09:23:47 +02:00
Philipp Muens
0d8174ba72 Merge master into PR 2017-07-03 17:04:49 +02:00
Philipp Muens
7c57935ca9 Fix linting issue 2017-07-03 11:23:32 +02:00
Philipp Muens
dd3662079f Update variable usage to ensure better readability 2017-07-03 11:10:29 +02:00
Philipp Muens
71b63519f4 Fix check for equality of remote and local files 2017-07-03 10:57:26 +02:00
Philipp Muens
6893bba324 Add support for "force" option 2017-07-03 09:36:49 +02:00
Sunny
cb059a3a79 Add extendedValidate test for package artifact 2017-07-01 01:48:42 +05:30
Sunny
d5de23f482 Fix extendedValidate issue and refactor some code 2017-07-01 01:02:52 +05:30
Philipp Muens
d39e95fec5 Update check if deployment is necessary 2017-06-30 13:32:06 +02:00
Philipp Muens
3ad2c5031d Add tests 2017-06-30 13:17:39 +02:00
Philipp Muens
e329bf9ad8 Only re-deploy when code or service updated 2017-06-30 09:26:55 +02:00
Greg Thornton
60caa22edb Skip packaging if artifact specified 2017-06-28 21:26:08 -05:00
Philipp Muens
526d3a6da4 Refactor code to support deploymentBucket object representation globally 2017-06-16 11:50:51 +01:00
Philipp Muens
b11dc135a1 Add deploymentBucket config handling in AWS package and deploy plugins 2017-06-16 09:32:48 +01:00
Philipp Muens
b87326d5dd Minor refactorings 2017-06-16 09:19:41 +01:00
Philipp Muens
b912ad91bd Minor code cleanup 2017-06-16 08:36:19 +01:00
Max Redmond
abef261722 update serverside encryption options so that they are configured in the deploymentBucket section 2017-06-16 08:12:23 +01:00
Max Redmond
9a8b2354ed fixing lint error 2017-06-16 08:12:23 +01:00
Max Redmond
56049e34f8 new function to add serverside encryption params 2017-06-16 08:12:23 +01:00
Max Redmond
09979a170b adding sse test cases 2017-06-16 08:12:23 +01:00
Max Redmond
6aad85e7e7 lint clean up 2017-06-16 08:12:23 +01:00
Max Redmond
9ffba7fdc6 adding check for deploymentBucketOptions to anohter part of the code 2017-06-16 08:12:23 +01:00
Max Redmond
6873abda0d adding a check for deploymentBucketOptions
checking if deploymentBucketOptions exists in the yaml so that you can deploy without any deploymentBucketOptions defined
2017-06-16 08:12:23 +01:00
Max Redmond
46d4466898 adding serverside encryption options to deployment bucket in the provider section of serverless.yml 2017-06-16 08:12:23 +01:00
Philipp Muens
b060dbca94 Rephrase error message for invalid template 2017-06-05 11:45:54 +02:00
Philipp Muens
0abc60335f Add sinon-chai usage definition 2017-05-31 14:08:23 +02:00
Philipp Muens
5004c2d37b Remove commented out test 2017-05-31 14:00:19 +02:00
Philipp Muens
9919134e6c Update tests to use chai-as-promised 2017-05-31 13:57:14 +02:00
Philipp Muens
adcb471429 Update validateTemplate functionality and add tests 2017-05-31 13:30:59 +02:00
Hassan Khan
75a17f3b1d Move validation code to deploy event
As per the discussion on the PR, the validation should occur before the
`aws:deploy:updateStack` hook.
2017-05-24 00:11:30 +01:00
Eslam A. Hefnawy
d97ec82442 added tests for extendedValidate file 2017-05-11 20:41:05 +07:00
Eslam A. Hefnawy
4556f51d44 fix bug with packaging service free functions 2017-05-11 19:24:06 +07:00
Eslam λ Hefnawy
4e752fbc5e Merge pull request #3527 from HyperBrain/filter-self-reference
Persist self references with "${self:}" and restore it correctly
2017-04-27 18:35:13 +07:00
Frank Schmid
9257256e7a Restore self references on state restore 2017-04-26 22:09:51 +02:00
Eslam A. Hefnawy
f86703add1 releasing 1.12 2017-04-26 22:42:56 +07:00
Philipp Muens
9b0d5619f4 Revert name of compiled CloudFormation template 2017-04-26 13:57:05 +02:00
Philipp Muens
67a7031c83 Fix naming of compiled CloudFormation template 2017-04-26 13:23:18 +02:00
Philipp Muens
f32ac41492 Update if statements for easier reasoning 2017-04-26 09:17:51 +02:00
Eslam A. Hefnawy
4623e0bbed final packaging fixes 2017-04-25 23:03:46 +07:00
Frank Schmid
a67674528e Do not persist artifact if individually is set true. 2017-04-24 10:44:53 +02:00
Frank Schmid
aa29c9632e Persist artifact in saved state
The `service.package.artifact` property was missing in the saveState function, so it was not available in the deploy phase.
This PR saves and restores the property correctly, and for AWS additionally sets it during packaging. For AWS the initialization of the property also was missing, possibly due to a merge conflict.

Combination of the following commits:
Re-revert changes for saveServiceState and extendedValidate
Revert most recent changes
Update package artifact to include path and .zip name
Update artifact file path for packaging and name for service state
Update tests for saveServiceState
Do not persist artifacts as it is not needed
Persist package.artifact correctly
2017-04-21 19:50:00 +02:00
Frank Schmid
c74d9c6dda Fixed unit tests and got coverage to 100% again 2017-04-20 14:30:55 +02:00