180 Commits

Author SHA1 Message Date
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
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
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
8ea06053a2 Fix s3 is undefined bug 2016-06-14 20:03:56 +02:00
Eslam A. Hefnawy
e56f61718e added Event to resource names 2016-06-10 16:57:48 +02:00
Eslam A. Hefnawy
4060ad6507 removed options obj 2016-06-10 16:55:14 +02:00
Eslam A. Hefnawy
11a5507f31 removed outdated comment 2016-06-10 16:55:14 +02:00
Eslam A. Hefnawy
f23ae6933f added schedule event 2016-06-10 16:55:14 +02:00
Philipp Muens
1403088b29 Append namespaces to s3 event resources 2016-06-10 14:09:15 +02:00
Philipp Muens
df25e0af48 Remove namespacing of S3 event bucket
This way users are not confused if they won't find their bucket because of the
namespacing that was previously applied.
2016-06-10 11:21:18 +02:00
Philipp Muens
60e7be805d Rename "awsRemoveResources" to "awsRemove"
This way it's less verbose and sticks to the overall used naming convention.
2016-06-10 10:40:37 +02:00
Philipp Muens
a3a7440c32 Add check if S3 events are available
Add this check so that the forEach loop won't fail if the user has not setup an
S3 event.
2016-06-10 09:05:42 +02:00
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
e563a071b5 Add option definitions to core plugins 2016-06-09 19:43:13 +02:00
Philipp Muens
2e701c1d4d Fix failing tests for "create" plugin 2016-06-09 19:43:13 +02:00