1970 Commits

Author SHA1 Message Date
Eslam A. Hefnawy
ef2fffe130 refatored aws plugins structure 2016-06-16 21:24:09 +02:00
Philipp Muens
a57126f38a Update IntegrationHttpMethod to always be POST
Lambda function can only be invoked by POST methods so we always need to
add an integration for a POST method.
2016-06-16 13:57:58 +02:00
Philipp Muens
3677406924 Add necessary IntegrationResponses property to method resource 2016-06-16 10:03:04 +02:00
Philipp Muens
4ffbf0d228 Fix lambda permission error
Was caused because the function name in the lambda ARN was wrong (service
name was not prefixed).
2016-06-16 09:43:47 +02:00
Philipp Muens
a23ac28bba Refactor naming of compiled permission resource
So that it sticks to the overall used convention.
2016-06-16 08:37:04 +02:00
Philipp Muens
6043d603e5 Fix lambdaUri generation bug 2016-06-16 08:18:28 +02:00
Philipp Muens
c45a756bef Comment out AWS http_endpoints property in serverless.yaml 2016-06-15 19:58:39 +02:00
Philipp Muens
5eb02b3d5a Replace input.path("$") with input.json("$") in universal request template 2016-06-15 19:45:38 +02:00
Philipp Muens
87b5407aee Add universal JSON request template
Thanks to work from @rma4ok in #894.
2016-06-15 19:33:47 +02:00
Philipp Muens
6bb55dbd63 Refactoring and code cleanup
So that the code looks everywhere the familiar.
2016-06-15 18:39:48 +02:00
Philipp Muens
4d3fa667ca Remove validateInput as it's functionality is replaced 2016-06-15 18:32:30 +02:00
Philipp Muens
cdbc3bafbc Add tests for awsCompileApigEvents file 2016-06-15 18:30:49 +02:00
Eslam A. Hefnawy
6d5fd107f7 minor fixes 2016-06-15 16:08:54 +02:00
Eslam A. Hefnawy
5d2cba35a8 removed apig stage tests 2016-06-15 15:26:25 +02:00
Eslam A. Hefnawy
8e89863a78 apig refactoring 2016-06-15 15:22:40 +02:00
Eslam A. Hefnawy
c8eaae1238 fixed typo 2016-06-15 15:16:34 +02:00
Eslam A. Hefnawy
427333d222 check for http_endpoint property - apig 2016-06-15 15:13:48 +02:00
Philipp Muens
c16eec25ee Comment out http_endpoint definition in serverless.yaml
So that an endpoint is not automatically created when a user sets up and
deploys a service.
2016-06-15 15:11:19 +02:00
Philipp Muens
d2303f0e5e Add Integration property to method compilation
And fix broken permission compilation tests.
2016-06-15 15:07:13 +02:00
Philipp Muens
3c407ea2d9 Switch from http_endpoint to http_endpoints
http_endpoints is correct as the property might contain one or more endpoints.
2016-06-15 12:25:44 +02:00
Philipp Muens
5a209c875e Fix tests and normalize code
Normalized code so that it sticks to the "conventions".
Add check for present "http_endpoint" property so that tests won't fail if
it's not available.
2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
205e7803d7 fixed tests 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
2d9c23067b minor fixes 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
f84b609450 fixed typo 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
ffabf4f691 added permissions resource for apig 2016-06-15 12:25:44 +02:00
Philipp Muens
da29ccb464 Add checks if http_endpoint property is accessible 2016-06-15 12:25:44 +02:00
Philipp Muens
9e15f177cd Comment out http_endpoint definition in serverless.yaml
So that an endpoint is not automatically created when a user sets up and
deploys a service.
2016-06-15 12:25:44 +02:00
Philipp Muens
6514a2bd5f Fix Resource naming of compiled resources
So that they follow the new naming schema.
2016-06-15 12:25:44 +02:00
Philipp Muens
c0c0abfd63 Fix Resource naming of compiled methods
Add the method and the resourceId to the name so that they are unique.
2016-06-15 12:25:44 +02:00
Philipp Muens
1292c1ea4b Fix broken tests 2016-06-15 12:25:44 +02:00
Philipp Muens
21a68b07e3 Rename Resource and Method CloudFormation resource names
Rename the resource names to that they stick to the overalls used convention.
2016-06-15 12:25:44 +02:00
Philipp Muens
911998c61d Fix describe block in compileResources test 2016-06-15 12:25:44 +02:00
Philipp Muens
834c17ea50 Remove functionName from compiled RestApi resource 2016-06-15 12:25:44 +02:00
Philipp Muens
fe5edf1a2b Add compileMethods functionality 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
d69a4ba711 more tests for resources 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
7dfd5d938a added tests for compile resources 2016-06-15 12:25:44 +02:00
Philipp Muens
01afb8aefe Fix typo in JSON.stringify usages 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
8031d07d1b added compileResources logic for apig 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
e96130ff2e testing compileResources 2016-06-15 12:25:44 +02:00
Philipp Muens
89083dac56 Add plugin to Plugins.json file 2016-06-15 12:25:44 +02:00
Philipp Muens
1d631e0133 Add validateInput method
Add a validation step so that validation checks don't need to be rewritten in
each compile method / step.
2016-06-15 12:25:44 +02:00
Philipp Muens
83a5851473 Add compileStage functionality 2016-06-15 12:25:44 +02:00
Philipp Muens
f4afca3c32 Add compileDeployment functionality 2016-06-15 12:25:44 +02:00
Philipp Muens
6a00a36cfa Fix typo in test naming 2016-06-15 12:25:44 +02:00
Philipp Muens
5007f3b564 Add compileRestApi functionality 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
b4f0c80bc1 removed basePathMapping 2016-06-15 12:25:44 +02:00
Eslam A. Hefnawy
6cd49bf117 basic structure for apig event 2016-06-15 12:25:44 +02:00
Philipp Muens
c9fb51e70a Fix custom resource merging from serverless.yaml file 2016-06-15 11:34:45 +02:00
Philipp Muens
633420d9c5 Remove invalid Resources definitions for AWS 2016-06-15 11:34:45 +02:00
Philipp Muens
75b9c617af Update serverless.yaml file
Fix indentations and fix naming in resources section so that it matches the recent changes.
2016-06-15 11:34:45 +02:00