4240 Commits

Author SHA1 Message Date
Andrew Sprouse
d5b64c8c71 Added Access Control Allow Credentials for CORS settings fixes #2182 2017-01-18 17:12:31 -05:00
Daniel Schep
a163e65d9f invoke local python functions! closes #2862 2017-01-18 09:54:29 -05:00
Philipp Muens
158b1bf6cc Merge pull request #3107 from ssemyonov/fix-2404
Fix 2404 Receive "Deployment bucket is not in the same region..." when using eu-west-1
2017-01-18 14:19:48 +01:00
Sergey Semyonov
a636fc7f12 add missing stub restore() 2017-01-18 13:10:49 +00:00
Philipp Muens
f599977bb2 Fix serverless.yml indentations 2017-01-18 10:07:42 +01:00
Ryan Stelly
f0b762536c fix casing of dotnet artifact 2017-01-17 17:16:38 -06:00
Sergey Semyonov
df03336bee add tests for #2404 covering inconsistent AWS API responses 2017-01-16 10:39:57 +00:00
Sergey Semyonov
30ec78df37 fix #2404 by handling EU special case response for LocationConstraint 2017-01-16 10:23:35 +00:00
horike37
9a8e5cc465 update errormessage 2017-01-15 23:23:20 +09:00
horike37
3ad27484b5 add CloudWatch event source 2017-01-15 23:00:40 +09:00
Philipp Muens
4f9cafb119 Minor cleanups 2017-01-14 14:04:43 -08:00
Philipp Muens
1f810f4018 Fix and update tests 2017-01-14 12:40:41 -08:00
horike37
64af4ef244 fixed the bug when Multi-line values is given in iot events 2017-01-14 15:33:07 +09:00
Jonathan Goldwasser
bdce10cb07 Show valid iam role statements examples in docs and templates 2017-01-11 18:47:25 +01:00
Eslam λ Hefnawy
112cf554bd Merge pull request #3064 from vladgolubev/add-support-numeric-template-path
Add support of numeric template creation path
2017-01-11 16:02:03 +07:00
Erik Erikson
c93c5b29c4 Allow Role 'Fn::GetAtt' for Lambda role
Fix https://github.com/serverless/serverless/issues/3081

The fix is to allow the role defined for a Lambda to be a `{ 'Fn::GetAtt', [ 'LambdaLogicalId', 'Arn'] }` reference to a role in the current service.  If the `role` attribute is defined, check whether it is a role reference and if it is, fill the depends on attribute for the event mapping to be that logical ID.
Add tests that make sure this use case is covered in future incarnations of the code.
2017-01-10 18:12:26 -08:00
Philipp Muens
791880911a Remove unnecessary assertions 2017-01-10 08:57:43 -08:00
Philipp Muens
dc8fe5c22f Remove unnecessary getRootPath method 2017-01-10 08:16:17 -08:00
Philipp Muens
2d2ba4521d Update Docker detection to be cgroup based
This ensures a more stable detection strategy since .dockerenv might be not around for the long term.
2017-01-09 11:15:12 -08:00
Philipp Muens
ce8bbc4885 Add Docker detection 2017-01-08 14:19:25 +01:00
Vlad Golubev
f0ee493d18 Fix start / end date in metrics tests 2017-01-06 23:24:27 +02:00
Vlad Golubev
e1d8d7a208 Use os.homedir() instead of own implementation 2017-01-06 23:14:03 +02:00
Vlad Golubev
184d4fe46a Add tests to verify valid metrics Period param 2017-01-06 23:03:17 +02:00
Vlad Golubev
c2a6b4ae24 Fix getMetrics test by wrapping date, as we don't call validate 2017-01-06 23:02:51 +02:00
Vlad Golubev
9385f968e3 Fix ESLint errors 2017-01-06 22:24:28 +02:00
Vlad Golubev
39b890dbd5 Refactor getMetrics method to reduce duplication 2017-01-06 22:21:12 +02:00
Vlad Golubev
f2ff20649c Display 0 as average function duration if no data by given period 2017-01-06 22:02:26 +02:00
Vlad Golubev
f090f86d30 Remove unused stage and region arguments from provider request 2017-01-06 21:58:11 +02:00
Vlad Golubev
d72b9511d1 Round average function duration to 2 digits after dot 2017-01-06 21:52:51 +02:00
Vlad Golubev
f2eaae5517 Add test: should display correct average of service wide average function duration 2017-01-06 21:46:54 +02:00
Vlad Golubev
7d7f7c7054 Refactor getting aws provider stage 2017-01-06 20:53:08 +02:00
Vlad Golubev
0fb4cf6fba Refactor getting aws provider region 2017-01-06 20:53:08 +02:00
Vlad Golubev
c86e09a63c Refactor calculating metrics counts 2017-01-06 20:53:08 +02:00
Vlad Golubev
1c3dbd4c70 Further refactor parsing human start dates in metrics 2017-01-06 20:53:08 +02:00
Vlad Golubev
37f4545139 Add getAllFunctionsNames to Service class 2017-01-06 18:59:36 +02:00
Vlad Golubev
f1fdbcf0a0 Simplify validating function name in metrics 2017-01-06 18:44:28 +02:00
Vlad Golubev
59051c1fb3 Use moment.js to format date in metrics tests 2017-01-06 18:34:49 +02:00
Vlad Golubev
b880acdc3c Use regex to check if date is in since format 2017-01-06 18:29:28 +02:00
Vlad Golubev
f3c09efee2 Use moment.js to set default yesterday date 2017-01-06 18:24:45 +02:00
Vlad Golubev
da18517fcd Store .gitignore as gitignore in template dir 2017-01-06 17:24:44 +02:00
Vlad Golubev
0420a9c55b Add test: should create a service in the directory if using the "path" option with digits 2017-01-06 16:35:10 +02:00
Vlad Golubev
f678e45b02 Add support of numeric template creation path, fix #3063 2017-01-06 16:35:10 +02:00
Ryan S. Brown
d4a1aafd80 Add versionFunctions as an AWS provider option that will reduce the default number of stack outputs.
Per #2853, having versions as resources/outputs can trigger some limits
related to CloudFormation stack outputs. This leaves the existing
default, but if turned to `false` will reduce the number of outputs by
N, where N is the number of functions total.
2017-01-05 11:23:52 -05:00
Philipp Muens
6ae19fd724 Merge pull request #2952 from LightmakerCanada/fix-for-2508
Generate a single policy statement to cover all stream events
2017-01-03 15:48:50 +01:00
Eslam λ Hefnawy
c8439dc95f Merge pull request #3048 from serverless/create-error-on-overwrite
Create error on overwrite
2017-01-03 19:38:50 +07:00
Eslam λ Hefnawy
7fc058df63 Merge pull request #2141 from johnf/cognito_authorizer
add the start of cognito user pool authorizer support
2017-01-03 19:28:00 +07:00
Philipp Muens
bc368fdabd Fix broken validate test 2017-01-03 13:27:00 +01:00
Philipp Muens
3e6ee85a96 Fix failing tests 2017-01-03 12:50:27 +01:00
Philipp Muens
dd9935730e Merge pull request #3047 from serverless/fix-exit-code-noop
Fix "No updates to be performed." throwing Error code 1
2017-01-03 12:28:46 +01:00
Maciej Winnicki
1f881fb228
add tests and small refactor 2017-01-03 12:11:31 +01:00