Commit Graph

4662 Commits

Author SHA1 Message Date
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
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
Brandon Bradley
800e5ab7d2 requested changes from review 2020-02-01 14:52:48 -06: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
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
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
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
Steve Pulec
19bf8bf762 Change S3 S3_ALL_BUCKETS response to return bucket creation_date in iso format. 2020-01-22 20:43:45 -06:00
Steve Pulec
769c41e5a8
Merge pull request #2677 from ptdel/minor-scaffold-fixes
fix: small fixes to get scripts/scaffold.py working
2020-01-22 20:03:01 -06:00
Steve Pulec
663d7c289b
Merge pull request #2675 from bblommers/bugfix/#2674
DynamoDB - ListAppend should also work when adding maps to a list
2020-01-22 20:01:53 -06:00
Steve Pulec
c5b7b2f7af
Merge pull request #2687 from bblommers/bugfix/2626
DynamoDB - Update Item doesnt handle LT/GT properly
2020-01-22 20:01:00 -06:00
Steve Pulec
d73a548bb0 Remove duplicate StorageClass in S3_MULTIPART_LIST_RESPONSE. 2020-01-22 19:45:27 -06:00
Steve Pulec
dff1986801
Merge pull request #2683 from Journera/ecs-td-add-network-mode
Store 'networkMode' in ECS Task Definitions instead of just throwing it away
2020-01-22 19:39:41 -06:00
Steve Pulec
a32b3c4b59 Fix SQS get_queue_attributes to allow RedrivePolicy. Closes #2682. 2020-01-22 19:38:07 -06:00
Andrey Kislyuk
e3906043d7
Fix linter error 2020-01-22 16:58:25 -08:00
Andrey Kislyuk
5ba786d97a
awslambda: return actual result in sync invoke
Return actual output of the Lambda instead of echoing the input.
2020-01-22 16:39:11 -08:00
Andrey Kislyuk
ed81e36faf
awslambda: explicitly specify json-file log driver
This is analogous to #2635.
2020-01-22 16:08:42 -08:00
Bert Blommers
7ff7ee4e8e Test fix - Region must be specified 2020-01-22 11:42:06 +00:00
Bert Blommers
6f02782624 #2627 - Change comparison to differentiate between 0 and None 2020-01-22 11:30:17 +00:00
Steve Pulec
b54d3b5a11
Merge pull request #2685 from moseb/losen-jsondiff-dependency
setup.py: Unlock use with jsondiff >1.1.2
2020-01-21 21:38:53 -06:00
Steve Pulec
4335f1d3dd
Merge pull request #2669 from bblommers/lambda-return-output-only
AWS Lambda - Return response only, and skip log/print statements
2020-01-21 21:37:36 -06:00
Steve Pulec
6b62a9d90f
Merge pull request #2696 from charleshypk/patch-1
Fix spelling typo
2020-01-16 15:50:46 -06:00