Commit Graph

119 Commits

Author SHA1 Message Date
Bert Blommers
643759bd64
Admin: Rework skipped tests for ServerMode (#6833) 2023-09-19 19:46:20 +00:00
Sha
c37ddd9c5c
Core responses: Add missing registered() (#6597) 2023-09-12 13:16:42 +00:00
Bert Blommers
8aafbdb58f
Techdebt: Streamline AWSLambda/Docker tests (#6735) 2023-08-31 06:47:49 +00:00
Bert Blommers
5e89ceee69
Techdebt: Replace sure with regular asserts in APIGateway tests (#6366) 2023-06-07 09:46:18 +00:00
Bert Blommers
a28dd1abc8
Pin typing_extensions for Py3.7 (#6339) 2023-05-24 21:18:34 +00:00
Bert Blommers
0e58d3996b
APIGateway: Allow semicolon in path (#6159) 2023-04-01 22:37:57 +00:00
Julian Charlot
c875e7aa0e
Enhancement - Add policy to update rest api for apigateway (#5951) 2023-02-22 21:42:13 -01:00
Cesar Alvernaz
931bb6d960
APIGateway: add connection type field to integration model (#5867) 2023-01-23 09:48:59 -01:00
Bert Blommers
173e1549c0
APIGateway: get_export() (#5844) 2023-01-14 15:00:07 -01:00
Cesar Alvernaz
9fab501c2e
APIGateway: Add two new properties to the integration model object (#5693) 2022-11-21 20:46:07 -01:00
Bert Blommers
1a8ddc0f2b
Techdebt: Replace string-format with f-strings (for tests dirs) (#5678) 2022-11-17 21:41:08 -01:00
Cesar Alvernaz
db47aeeb02
APIGateway: Add response parameters to integration response (#5675) 2022-11-16 22:46:50 -01:00
Bert Blommers
56ca48cfdd
TechDebt: Enable MyPy on APIGateway-module (#5549) 2022-10-11 13:16:27 +00:00
Bert Blommers
2c2b1c76fa
APIGateway: Treat props as non-mandatory, and dont crash on unsupported resource (#5466) 2022-09-12 20:58:18 +00:00
Bert Blommers
e621ce419c
APIGateway: Support Sagemaker URI's as endpoints (#5434) 2022-08-30 21:13:56 +00:00
Cesar Alvernaz
257d775dfb
APIGateway: adds request parameters to Method resource (#5425) 2022-08-28 13:10:31 +00:00
Cesar Alvernaz
3e6394e641
APIGateway: add guard against no integration when adding a new response (#5416) 2022-08-24 15:38:05 +00:00
Cesar Alvernaz
318a3071fb
APIGateway: fix rest API status codes (#5397) 2022-08-23 22:46:01 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Cesar Alvernaz
1698c52740
APIGateway - add request parameters to integration model (#5224) 2022-06-14 10:07:30 +00:00
Cesar Alvernaz
416bef76e6
APIGateway - add passthroughBehaviour to the integration (#5142) 2022-05-19 10:16:33 +00:00
Bert Blommers
8bbd242d75
API Gateway: put_rest_api and import_rest_api (#5140) 2022-05-16 15:13:23 +00:00
Bert Blommers
10bd677cf2
Admin - enable more Pylint rules (#5037) 2022-04-18 20:44:56 +00:00
Bert Blommers
382ff2b1a9
Remove more DynamoDB2 references (#4933) 2022-03-11 21:29:16 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
876c783a24
APIGateway improvements (#4874) 2022-02-18 22:31:33 -01:00
Bert Blommers
a7e169a545
EC2 performance improvements (#4855) 2022-02-14 21:40:48 -01:00
Bert Blommers
094d00a37a
Feature: APIGatewayV2 (#4840) 2022-02-08 20:12:51 -01:00
cm-iwata
a9293d62e3
Implement APIGateway update_base_path_mapping (#4730) 2021-12-30 09:52:57 -01:00
Bert Blommers
34a3a03475
API Gateway - improve mocking of public API (#4613) 2021-11-22 16:05:19 -01:00
cm-iwata
b71b6904fd
APIGateway - Implement delete_base_path_mapping (#4568) 2021-11-13 10:41:07 -01:00
cm-iwata
e379ac1cec
Implement APIGateway get_base_path_mapping (#4531) 2021-11-06 09:52:27 -01:00
cm-iwata
0739537679
Implement APIGateway get_base_path_mappings (#4496) 2021-10-29 09:54:12 +00:00
cm-iwata
2218806f3d
Implement APIGateway create_base_path_mapping (#4475) 2021-10-27 10:48:32 +00:00
Bert Blommers
125936d269
APIGateway - rework tests to work with botocore 1.22 (#4451) 2021-10-20 22:02:20 +00:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
rajinder
f7d490167b
implemented validators endpoints (#4309) 2021-09-22 16:34:20 +00:00
Bert Blommers
b95d8aaebc
APIGateway - delete_method() (#4320) 2021-09-21 15:20:46 +00:00
rajinder
3d7d5eb7ed
added update rest api (#4303)
Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-09-18 20:17:42 +00:00
Bert Blommers
a1905ad584
Improve test coverage (#4098) 2021-07-28 11:17:15 +01:00
Waldemar Hummer
f4f8527955
Merge LocalStack changes into upstream moto (#4082)
* fix OPTIONS requests on non-existing API GW integrations

* add cloudformation models for API Gateway deployments

* bump version

* add backdoor to return CloudWatch metrics

* Updating implementation coverage

* Updating implementation coverage

* add cloudformation models for API Gateway deployments

* Updating implementation coverage

* Updating implementation coverage

* Implemented get-caller-identity returning real data depending on the access key used.

* bump version

* minor fixes

* fix Number data_type for SQS message attribute

* fix handling of encoding errors

* bump version

* make CF stack queryable before starting to initialize its resources

* bump version

* fix integration_method for API GW method integrations

* fix undefined status in CF FakeStack

* Fix apigateway issues with terraform v0.12.21
* resource_methods -> add handle for "DELETE" method
* integrations -> fix issue that "httpMethod" wasn't included in body request (this value was set as the value from refer method resource)

* bump version

* Fix setting http method for API gateway integrations (#6)

* bump version

* remove duplicate methods

* add storage class to S3 Key when completing multipart upload (#7)

* fix SQS performance issues; bump version

* add pagination to SecretsManager list-secrets (#9)

* fix default parameter groups in RDS

* fix adding S3 metadata headers with names containing dots (#13)

* Updating implementation coverage

* Updating implementation coverage

* add cloudformation models for API Gateway deployments

* Updating implementation coverage

* Updating implementation coverage

* Implemented get-caller-identity returning real data depending on the access key used.

* make CF stack queryable before starting to initialize its resources

* bump version

* remove duplicate methods

* fix adding S3 metadata headers with names containing dots (#13)

* Update amis.json to support EKS AMI mocks (#15)

* fix PascalCase for boolean value in ListMultipartUploads response (#17); fix _get_multi_param to parse nested list/dict query params

* determine non-zero container exit code in Batch API

* support filtering by dimensions in CW get_metric_statistics

* fix storing attributes for ELBv2 Route entities; API GW refactorings for TF tests

* add missing fields for API GW resources

* fix error messages for Route53 (TF-compat)

* various fixes for IAM resources (tf-compat)

* minor fixes for API GW models (tf-compat)

* minor fixes for API GW responses (tf-compat)

* add s3 exception for bucket notification filter rule validation

* change the way RESTErrors generate the response body and content-type header

* fix lint errors and disable "black" syntax enforcement

* remove return type hint in RESTError.get_body

* add RESTError XML template for IAM exceptions

* add support for API GW minimumCompressionSize

* fix casing getting PrivateDnsEnabled API GW attribute

* minor fixes for error responses

* fix escaping special chars for IAM role descriptions (tf-compat)

* minor fixes and tagging support for API GW and ELB v2 (tf-compat)

* Merge branch 'master' into localstack

* add "AlarmRule" attribute to enable support for composite CloudWatch metrics

* fix recursive parsing of complex/nested query params

* bump version

* add API to delete S3 website configurations (#18)

* use dict copy to allow parallelism and avoid concurrent modification exceptions in S3

* fix precondition check for etags in S3 (#19)

* minor fix for user filtering in Cognito

* fix API Gateway error response; avoid returning empty response templates (tf-compat)

* support tags and tracingEnabled attribute for API GW stages

* fix boolean value in S3 encryption response (#20)

* fix connection arn structure

* fix api destination arn structure

* black format

* release 2.0.3.37

* fix s3 exception tests

see botocore/parsers.py:1002 where RequestId is removed from parsed

* remove python 2 from build action

* add test failure annotations in build action

* fix events test arn comparisons

* fix s3 encryption response test

* return default value "0" if EC2 availableIpAddressCount is empty

* fix extracting SecurityGroupIds for EC2 VPC endpoints

* support deleting/updating API Gateway DomainNames

* fix(events): Return empty string instead of null when no pattern is specified in EventPattern (tf-compat) (#22)

* fix logic and revert CF changes to get tests running again (#21)

* add support for EC2 customer gateway API (#25)

* add support for EC2 Transit Gateway APIs (#24)

* feat(logs): add `kmsKeyId` into `LogGroup` entity (#23)

* minor change in ELBv2 logic to fix tests

* feat(events): add APIs to describe and delete CloudWatch Events connections (#26)

* add support for EC2 transit gateway route tables (#27)

* pass transit gateway route table ID in Describe API, minor refactoring (#29)

* add support for EC2 Transit Gateway Routes (#28)

* fix region on ACM certificate import (#31)

* add support for EC2 transit gateway attachments (#30)

* add support for EC2 Transit Gateway VPN attachments (#32)

* fix account ID for logs API

* add support for DeleteOrganization API

* feat(events): store raw filter representation for CloudWatch events patterns (tf-compat) (#36)

* feat(events): add support to describe/update/delete CloudWatch API destinations (#35)

* add Cognito UpdateIdentityPool, CW Logs PutResourcePolicy

* feat(events): add support for tags in EventBus API (#38)

* fix parameter validation for Batch compute environments (tf-compat)

* revert merge conflicts in IMPLEMENTATION_COVERAGE.md

* format code using black

* restore original README; re-enable and fix CloudFormation tests

* restore tests and old logic for CF stack parameters from SSM

* parameterize RequestId/RequestID in response messages and revert related test changes

* undo LocalStack-specific adaptations

* minor fix

* Update CodeCov config to reflect removal of Py2

* undo change related to CW metric filtering; add additional test for CW metric statistics with dimensions

* Terraform - Extend whitelist of running tests

Co-authored-by: acsbendi <acsbendi28@gmail.com>
Co-authored-by: Phan Duong <duongpv@outlook.com>
Co-authored-by: Thomas Rausch <thomas@thrau.at>
Co-authored-by: Macwan Nevil <macnev2013@gmail.com>
Co-authored-by: Dominik Schubert <dominik.schubert91@gmail.com>
Co-authored-by: Gonzalo Saad <saad.gonzalo.ale@gmail.com>
Co-authored-by: Mohit Alonja <monty16597@users.noreply.github.com>
Co-authored-by: Miguel Gagliardo <migag9@gmail.com>
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-07-26 15:21:17 +01:00
rajinder
fbbc8fc472
basic implementation of update rest api (#3951)
* basic implementation of update rest api

* basic implementation of update rest api

* basic implementation of update rest api

* review comments from bblommers

Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-05-23 17:09:02 +01:00
rajinder
58f7ab0d25
Refector Apigateway update_usage_plan and add all replace operation. (#3942)
* Refector Apigateway update_usage_plan and add all replace operation.

* code reformatting

Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-05-20 07:10:08 +01:00
usmangani1
0cff5458af
Fix : Remove Invalid request error when response-template is not specified (#3885)
* Fix : Remove Invalid request error

* Fix test and review commanets

* Remove duplicate put_integration_template

* API Gateway - Body can be None or empty

Co-authored-by: Bert Blommers <info@bertblommers.nl>
2021-05-01 15:45:06 +01:00
rajinder
4b1c7225b6
added feature update_usage_plan and fixed some lint errors (#3727)
Co-authored-by: rajinder saini <rajinder.saini@c02vt5k2htd6.corp.climate.com>
2021-02-25 07:46:11 +00:00
Bert Blommers
f64532ed40
Cloudformation - Create ApiGateway resources (#3659)
* Cloudformation - Create ApiGateway resources

* Cleanup

* Linting
2021-02-15 10:31:33 +00:00
Bert Blommers
2f50f9cb24
Add validation to API Key min length value (#3652)
* api gateway - add api key minimum length validation

* api gateway - support includeValue query parameter on api key apis

* [apigateway] code refactoring

* Cleanup - remove duplicate utility methods

* APIGateway - Dont send headers with error messsage

Co-authored-by: Jovan Zivanov <j.zivanov@levi9.com>
2021-02-15 09:39:35 +00:00
Anders Kaseorg
8befcb6a48
Leave the global responses configuration alone (#3529)
Instead of modifying responses._default_mock, create our own
responses.RequestsMock object that we can modify as needed without
interfering with other users of the responses library.

Fixes #3264.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-01-15 09:12:41 +00:00
Bert Blommers
273ca63d59 Linting 2020-11-11 15:55:37 +00:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00