58 Commits

Author SHA1 Message Date
Sander van de Graaf
b1b5fae554
make eslint happy 2016-10-10 14:51:40 +02:00
Sander van de Graaf
52c92d8e3c
fixed test for request parameters 2016-10-10 10:18:21 +02:00
Sander van de Graaf
4ac6c330fb
fixed rebase with master 2016-10-10 09:28:38 +02:00
Philipp Muens
0e9ad41250 Remove resetting of request / response config and show a warning message instead 2016-10-04 13:53:02 -07:00
Philipp Muens
96537755b3 Update integrationResponses to be an array 2016-10-04 13:53:02 -07:00
Philipp Muens
2ebfd90893 Fix linting errors 2016-10-04 13:53:02 -07:00
Philipp Muens
0ea8ab732c Make tests for config clearing when using AWS_PROXY more explicit 2016-10-04 13:53:02 -07:00
Philipp Muens
090aa52bf1 Reset / remove irrelevant configuration when AWS_PROXY is used 2016-10-04 13:53:02 -07:00
Philipp Muens
3b1eec6155 Add Lambda proxy functionality for API Gateway 2016-10-04 13:53:02 -07:00
Sander van de Graaf
d97808008e
make eslint happy 2016-09-26 13:20:52 +02:00
Sander van de Graaf
d90fe1636a
added tests for query parameters 2016-09-26 13:16:58 +02:00
Fabien Ruffin
2f296c296f Fixed linting issues 2016-09-07 17:15:24 +10:00
Fabien Ruffin
a568d4f236 Updated tests for API Gateway response integration 2016-09-07 15:45:47 +10:00
Florian Motlik
bb2ca44623 Capture Exception in handler with 500 status code 2016-09-02 17:02:30 +02:00
Philipp Muens
41260b834e Change from object representation to string representation for status code 2016-09-02 16:01:16 +02:00
Philipp Muens
16863c3303 Fix tests to use new resource logical IDs 2016-09-02 14:20:58 +02:00
Philipp Muens
09139fda18 Add status code support for API Gateway 2016-09-02 14:20:58 +02:00
John DeVerna
12a069d2f2 Fixing #1168 - adding ability to specify APIG pass through behavior 2016-09-01 11:12:46 -04:00
Eslam A. Hefnawy
9f0b6c09fa resolved conflicts and fixed tests 2016-08-31 23:34:23 +09:00
Eslam A. Hefnawy
f996b3549b fixed logical ids tests 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
e9e565e2ec fixed cors bug 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
d475b386a4 logical IDs updates 2016-08-31 23:27:17 +09:00
Eslam A. Hefnawy
959d0a17d3 updated tests with new logical ids 2016-08-31 23:27:17 +09:00
Florian Motlik
308889b128 Merge pull request #1988 from puug/cors_custom_headers
Fixed issue where custom cors headers were not being set, and was jus…
2016-08-31 14:10:28 +02:00
Philipp Muens
c14018bb2f Add tests for correct error throwing 2016-08-31 10:18:13 +02:00
Ryan Murfitt
b59c53fe82 More lint issue fixes 2016-08-31 18:11:45 +10:00
Ryan Murfitt
e7ed3573da Combined the tests a bit nicer 2016-08-31 18:03:14 +10:00
Ryan Murfitt
330d3471e7 trailing comma fix 2016-08-31 17:39:02 +10:00
Ryan Murfitt
219f20e8f1 Fixed issue where custom cors headers were not being set, and was just using defaults' 2016-08-31 17:26:22 +10:00
Philipp Muens
1159de41fd Update merging of custom request templates to support only strings 2016-08-31 09:23:44 +02:00
Philipp Muens
c036836bfa Remove automatic enclosing of response header values with single quotes 2016-08-31 09:23:44 +02:00
Philipp Muens
28f2aab1e2 Add support for custom request templates 2016-08-31 09:23:44 +02:00
Philipp Muens
d6d2f83bee Refactor default request template setup
To be added inline (rather than referenced from the CloudFormation
"Mappings" section) because they're independent and not re-used anyway.
2016-08-31 09:23:44 +02:00
Philipp Muens
9afc5834d5 Add support for merging of custom headers 2016-08-31 09:23:44 +02:00
Philipp Muens
1c63524446 Add custom response template support 2016-08-31 09:23:44 +02:00
Philipp Muens
c3d34b2d30 Add support for default text/html response template 2016-08-31 09:23:44 +02:00
Philipp Muens
495c5d8eea Add separate request template for x-www-form-urlencoded content type 2016-08-31 09:23:44 +02:00
Philipp Muens
262fabd75a Refactor application/json request template usage
To be referenced from the CloudFormations Mappings section.
2016-08-31 09:23:44 +02:00
Philipp Muens
9fadb31d0b Introduce provider.compiledCloudFormationTemplate section
This section is used to store the core CloudFormation template and merge compiled resources into it.
2016-08-15 15:19:04 +02:00
Christopher G. Paton
b66b0612f6 Merge branch 'master'
Conflicts:
	lib/plugins/aws/deploy/compile/events/apiGateway/lib/methods.js
	lib/plugins/aws/deploy/compile/events/apiGateway/tests/methods.js
2016-08-13 21:47:35 +01:00
Christopher G. Paton
6b50036841 Fixed typo in readme. :)
Tidied up CORS configuration. Updated readme and tests.
2016-08-11 18:44:39 +01:00
Florian Motlik
2a97b5bdfd Merge pull request #1794 from nicka/feature/refactor-aws-cloudformation-endpoint-outputs
Refactor for the CLI endpoints outputs
2016-08-11 16:12:25 +02:00
Christopher G. Paton
590ff32bcc Added check before setting origins and updated readme
Updated readme


Fixed RequestTemplates issue.


Added statusCode response to Options Request template.

Added X-Amz-Security-Token header and updated tests, too.
Manual test works. Updated unit tests, too.


Added documentation and some validation.


Updated tests to check each header. All passing.


Added preflight config. Need to write tests.


Adds origin header to method. Tests pass. Need preflight added, too.



Setup basic cors assignement. Experimenting with configuration setup.
2016-08-10 20:12:07 +01:00
Nick den Engelsman
6f21163fa3 refactor cli and cloudformation endpoint outputs 2016-08-09 10:08:47 +02:00
Philipp Muens
a0f7bb20d1 Add tests to increase test coverage 2016-08-08 08:27:26 +02:00
Eslam A. Hefnawy
16e0fadef3 added test for methodDependencies array 2016-08-05 04:31:53 +09:00
Benny Bauer
9f0c506c75 fix 1468 - display endpoints
Display general information on service, functions and endpoints.
Add tests.

partial fix for #1468 - display endpoints

fix 1468 - display endpoints

Display general information on service, functions and endpoints.
Add tests.
2016-07-29 13:01:15 +02:00
Sander van de Graaf
c98d8d81bf cleanup json notation, make eslint happy 2016-07-27 16:22:37 +02:00
Sander van de Graaf
5ea59d4ed6 Removed unneeded outputs and the corresponding tests. Added postCreate function for easy hook later. 2016-07-27 16:22:37 +02:00
Eslam A. Hefnawy
0a0de5fc89 added tests for api keys 2016-07-26 18:23:47 +09:00