Bert Blommers
152ad8b82e
Merge pull request #2723 from rossjones/remove-resource-warnings
...
Remove ResourceWarnings when loading AMIS and INSTANCE_TYPES
2020-02-04 10:52:48 +00:00
rossjones
6d64b12b41
Remove ResourceWarnings when loading AMIS and INSTANCE_TYPES
...
When loading AMIS and INSTANCE_TYPES in moto.ec2.models a file handle is
potentially leaked when loading the JSON. This results in a
ResourceWarning which is a bit of unnecessary noise.
Rather than pass a call to open() to json.load() this instead uses a
context-manager in a small private helper function.
This fixes https://github.com/spulec/moto/issues/2620
2020-02-04 10:04:01 +00:00
Jon Beilke
c9995412b5
add support for apigateway fields with default values including apiKeySource, endpointConfiguration, and tags
2020-02-03 10:21:22 -06:00
Bert Blommers
70b2d3ab3c
Merge pull request #2709 from blbradley/fix/localstack-split-stacks
...
throw ValidationError on non existing stack
2020-02-03 14:33:54 +00:00
Bert Blommers
14a7a92ed0
Merge pull request #2715 from asherf/versions
...
Botocore no longer needs an older version of python-dateutil.
2020-02-03 14:31:32 +00:00
Bert Blommers
e4eede7f9b
Merge pull request #2718 from gmcrocetti/bugfix/2690
...
RDS Feature: Add EnableIAMDatabaseAuthentication
2020-02-02 18:01:21 +00:00
Guilherme Martins Crocetti
f0509276d8
Apply black in responses.py
2020-02-02 13:46:01 -03:00
Guilherme Martins Crocetti
9f8388e402
Change test name in favor of abbreviation
2020-02-02 13:19:50 -03:00
Guilherme Martins Crocetti
06e4cafd20
Add enable_iam_database_authentication variable into snapshot 'to_xml'
2020-02-02 13:10:04 -03:00
Guilherme Martins Crocetti
eb0687eeaa
Add failing test for EnableIAMDatabaseAuthentication snapshot
2020-02-02 13:08:13 -03:00
Guilherme Martins Crocetti
51e787fba6
Add enable_iam_database_authentication in 'to_xml' method
2020-02-02 12:57:16 -03:00
Guilherme Martins Crocetti
dfd21187e1
Change iam_database_authentication_enabled to enabled_iam_database_authentication in accordance with aws docs
2020-02-02 12:55:05 -03:00
Guilherme Martins Crocetti
ec66670315
Add enable_iam_database_authentication parameter in RDS2Response
2020-02-02 12:50:46 -03:00
Guilherme Martins Crocetti
c36371e235
Add failing test for database creation with iam
2020-02-02 12:47:54 -03:00
Bert Blommers
e21ddb7abc
Use var instead of hardcoded string for region
2020-02-02 14:25:44 +00:00
Bert Blommers
ceb16b00a7
S3 LocationConstraint test can only be run in non-ServerMode
2020-02-02 12:45:57 +00:00
Bert Blommers
d5a36752d7
Add S3 LocationConstraint to CF tests
2020-02-02 12:44:26 +00:00
Bert Blommers
a86cba79de
Add S3 LocationConstraint to Lambda tests
2020-02-02 11:48:32 +00:00
Bert Blommers
f74f08581a
S3 - Add IllegalLocationConstraint validation when creating buckets
2020-02-02 10:36:51 +00:00
Brandon Bradley
800e5ab7d2
requested changes from review
2020-02-01 14:52:48 -06:00
Bert Blommers
b971aee9d5
Merge pull request #27 from spulec/master
...
Merge upstream
2020-02-01 09:53:15 +00:00
Asher Foa
27ce0b7ab1
Botocore no longer needs an older version of python-dateutil.
...
https://github.com/boto/botocore/pull/1910
https://github.com/boto/botocore/issues/1872
https://github.com/spulec/moto/pull/2570
2020-01-31 12:49:12 -08:00
gruebel
40bd4f1603
Fix kms.create_key default output
2020-01-31 17:16:42 +01:00
Bert Blommers
b6aeae0f2d
Merge pull request #2707 from UltCombo/patch-1
...
Support greedy resource path in API Gateway
2020-01-31 15:27:35 +00:00
Bert Blommers
4b1173c3ac
Merge pull request #2712 from gruebel/fix-sqs-permissions
...
Fix sqs permission handling & add more error handling
2020-01-31 15:24:53 +00:00
Brandon Bradley
8b3c2b6654
fix test
2020-01-30 17:50:21 -06:00
Brandon Bradley
b7795b7111
test for ListStackResources
2020-01-30 16:35:19 -06:00
gruebel
44024ab74b
Fix sqs permission handling & add more error handling
2020-01-30 22:42:27 +01:00
Bert Blommers
2f9b259cc1
Merge pull request #2701 from kislyuk/patch-2
...
awslambda: explicitly specify json-file log driver
2020-01-30 07:52:23 +00:00
Brandon Bradley
c877266f86
fix 500 error on non-existing stack name
2020-01-29 16:27:56 -06:00
Fabrício Matté
cf65cfc6ec
Update API Gateway resource name test
2020-01-29 16:28:37 -03:00
Jon Beilke
d4851d3eab
Merge pull request #4 from spulec/master
...
pull latest changes from upstream spulec/moto repo
2020-01-29 09:57:22 -06:00
Bert Blommers
da40c7125a
Merge pull request #2703 from brady-gsa/fix_lambda_config
...
Fixes awslambda policy management
2020-01-29 15:30:25 +00:00
Brady
dd243d72c2
switch to using sure for assertions
2020-01-29 09:46:09 -05:00
Fabrício Matté
be8eab18e9
Update InvalidResourcePathException message
2020-01-28 20:56:13 -03:00
Fabrício Matté
55a1c2fb59
Support greedy resource path
2020-01-28 20:45:19 -03:00
Bert Blommers
3cf45b7838
Merge pull request #2667 from owenfarrell/master
...
Made UserName parameter optional for IAM access key functions
2020-01-28 08:24:12 +00:00
Owen Farrell
142e237b0b
Made UserName parameter optional for IAM access key functions
2020-01-27 12:12:21 -05:00
Brady
cb07d17e13
don't use table of test cases and reduce duplication in get_policy method
2020-01-27 10:35:46 -05:00
Bert Blommers
4342b93170
Merge pull request #2702 from kislyuk/patch-5
...
awslambda: return actual result in sync invoke
2020-01-25 17:24:37 +00:00
Brady
2a2ff32dec
improves support for AWS lambda policy management
2020-01-24 14:53:16 -05:00
Andrey Kislyuk
324ef5af36
Fix test
2020-01-24 16:11:44 +00:00
Bert Blommers
ccd0257acc
Fix Lambda tests for DryRuns
2020-01-24 10:09:56 +00:00
Stephan Huber
5543a91cc1
Merge remote-tracking branch 'upstream/master'
2020-01-24 10:38:19 +01:00
Bert Blommers
ee8231202a
Fix linting
2020-01-24 09:08:48 +00:00
Roque Pinel
2ae09c5335
Fix the StatusCode
returned by lambda invoke
...
According to the AWS documentation:
```
The HTTP status code will be in the 200 range for successful request.
For the RequestResponse invocation type this status code will be 200.
For the Event invocation type this status code will be 202.
For the DryRun invocation type the status code will be 204.
```
2020-01-24 09:07:49 +00:00
Bert Blommers
b223cbc11b
Merge pull request #26 from spulec/master
...
Merge upstream
2020-01-24 08:48:41 +00:00
Bert Blommers
8f05d4aa3d
Merge pull request #2698 from asherf/others
...
Fix more typos.
2020-01-24 08:10:26 +00:00
Asher Foa
b4127040d1
remove this change.
2020-01-23 10:16:12 -08:00
Asher Foa
d9d055c75d
Fix more typos.
2020-01-23 10:15:02 -08:00