Commit Graph

4642 Commits

Author SHA1 Message Date
Mike Grima
1729e7c2fc
Merge pull request #2480 from hakamadare/handle-db-creation-no-allocated-storage
fix(rds2): handle create_db_instance when AllocatedStorage is not specified
2019-10-16 10:22:50 -07:00
Stephen Huff
d1a13ed782 chore(rds2): make flake8 happy 2019-10-16 09:10:56 -04:00
koshigoe
98f33740e1
fix(s3): check whether key is None or not to avoid exception.
```
AttributeError: 'NoneType' object has no attribute 'multipart'
```
2019-10-16 18:13:59 +09:00
Alexander Campbell
8eba88d1af Fix python2 unicode-in-exceptions issue for tests 2019-10-16 15:16:38 +11:00
Alexander Campbell
9a54cea4f1 Work around python2 unicode exception str() issues 2019-10-16 14:44:41 +11:00
Alexander Campbell
d74f9e47c8 Add coding hint for python2 compatibility 2019-10-16 12:44:30 +11:00
Alexander Campbell
9d6a1ca81d Fix slightly incorrect message for some errors 2019-10-16 10:58:59 +11:00
Alexander Campbell
381e7b165f Raise appropriate error when secret exists but has no value 2019-10-16 10:55:03 +11:00
Stephen Huff
7b1cf9eecd fix(rds2): handle create_db_instance when AllocatedStorage is not specified
In all of the tests of `create_db_instance()`, the `AllocatedStorage`
parameter is provided.  The [RDS API
reference](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html)
says this parameter is optional; however, when none is provided, moto
returns an obscure error message:

```
self = <botocore.parsers.QueryParser object at 0x113745890>, shape = <Shape(Integer)>, text = 'None'

    @_text_content
    def _handle_integer(self, shape, text):
>       return int(text)
E       ValueError: invalid literal for int() with base 10: 'None'

/usr/local/Cellar/pyenv/1.2.13_1/versions/3.7.4/envs/rds_encrypt/lib/python3.7/site-packages/botocore/parsers.py:466: ValueError
```

This PR adds default values that correspond to the current default API
behaviors.
2019-10-15 16:18:37 -04:00
Mike Grima
4da9ec1346
Merge pull request #2442 from titibike/sns_subscription_attributes
Issue #2441 Add informations in SNS subscriptions `attributes`
2019-10-15 10:05:20 -07:00
Ivan Dromigny
123209515c Change test 2019-10-15 16:12:22 +02:00
Bert Blommers
e261ddb063
Merge pull request #8 from spulec/master
Upstream merge
2019-10-14 19:16:24 +01:00
Mike Grima
cc96a5e659
Merge pull request #2357 from brodie-g/master
Existing user now raises a UsernameExistsException
2019-10-14 09:33:56 -07:00
Mike Grima
4497fb132b
Merge pull request #2467 from bblommers/bugfix/1823
DynamoDB: Add List index operations
2019-10-14 09:32:57 -07:00
Ivan Dromigny
02fc1fbcef Add a test 2019-10-14 18:03:01 +02:00
Bert Blommers
009a97db85 Merge branch 'master' into bugfix/1823 2019-10-14 10:02:22 +01:00
Bert Blommers
106692ed88 #1823 - Add support to delete items from a nested list 2019-10-14 09:59:52 +01:00
Bert Blommers
cc1693c4ec
Merge pull request #7 from spulec/master
Merge upstream
2019-10-14 09:32:22 +01:00
Mike Grima
35d2f938af
Merge pull request #2478 from mikegrima/configbatch
Added AWS Config query batching capabilities
2019-10-13 19:31:13 -07:00
Steve Pulec
2118fc415a
Merge pull request #2477 from edekadigital/add-sqs-tags
Add tags parameter to sqs.create_queue
2019-10-13 16:51:21 -05:00
Mike Grima
96f0666df9 Added AWS Config batching capabilities
- Support for aggregated and non-aggregated batching
- Currently only implemented for S3
2019-10-13 12:28:09 -07:00
gruebel
ce3f1eed66 fix test server error 2019-10-13 20:32:53 +02:00
Mike Grima
893f0d4f83
Merge pull request #2463 from gruebel/fix-dynamodb-get-item-ProjectionExpression
Add ProjectionExpression & ExpressionAttributeNames to DynamoDB get_it…
2019-10-13 10:47:25 -07:00
Mike Grima
e2a27d8206
Merge pull request #2476 from mikegrima/configquery
Added initial support for querying AWS Config for S3
2019-10-13 10:40:18 -07:00
Mike Grima
2a2c3e80f0 Adding support for querying the AWS Config resource for S3.
- Need to add support still for batch requests and batch aggregation requests in a future PR
2019-10-13 10:14:15 -07:00
gruebel
0d8c81a211 fix CloudFormation tests 2019-10-13 17:18:11 +02:00
gruebel
49045fe680 Add tags parameter to sqs.create_queue 2019-10-13 14:51:31 +02:00
Mike Grima
e7f1ab3290
Merge pull request #2475 from edekadigital/add-sns-tags
Add sns tags
2019-10-12 15:42:25 -07:00
Mike Grima
c46ee4cf8d
Merge pull request #2474 from jrstarke/2473
Added Exception to describe_container_instances to match aws api
2019-10-12 15:41:02 -07:00
Mike Grima
f14d5ca6cb
Merge pull request #2470 from JackDanger/jackdanger/kinesis-extended-s3-config
Supporting more modern Firehose features
2019-10-12 15:38:57 -07:00
Mike Grima
d0a6c4380b
Merge pull request #2469 from bblommers/bugfix/2384
DynamoDB - Fixes query sorting on numerical values
2019-10-12 15:37:56 -07:00
gruebel
26ef792690 Add sns.untag_resource 2019-10-12 21:10:51 +02:00
gruebel
726775678c Add sns.tag_resource 2019-10-12 20:37:59 +02:00
Jamie Starke
017cbb52ca Added Exception to for describe_container_instances to match aws api 2019-10-11 22:13:55 -07:00
gruebel
8d527743d5 Add sns.list_tags_for_resource 2019-10-11 17:58:48 +02:00
gruebel
97c4174f30 Extract projection_expression adjustment 2019-10-11 14:30:25 +02:00
Jack Danger
0723fcf6e7 Supporting more modern Firehose features
This implements ExtendedS3DestinationConfiguration, allowing
serialization to Parquet and ORC formats as part of a Firehose
destination.
2019-10-10 17:44:09 -07:00
Steve Pulec
31198c75b8
Merge pull request #2457 from bblommers/feature/dynamodb_streams_invoke_lambda
Feature: Add option for DynamoDB stream to kick off lambda
2019-10-10 17:05:43 -05:00
Steve Pulec
34d4379b9f
Merge branch 'master' into bugfix/2384 2019-10-10 17:02:59 -05:00
Steve Pulec
359d6c9099
Merge pull request #2464 from sethblack/lambda-update-function-code-and-configuration
added UpdateFunctionCode and UpdateFunctionConfiguration and associat…
2019-10-10 17:01:31 -05:00
Steve Pulec
b60f720f0e
Merge pull request #2468 from bblommers/remove-dead-code
Remove dead code
2019-10-10 16:58:29 -05:00
Steve Pulec
307889ccb3
Merge pull request #2455 from bblommers/bugfix/1874
Bugfix #1874 - Limit DynamoDB item size to 400KB
2019-10-10 16:57:26 -05:00
Bert Blommers
cf899eecff #2384 - Add test case 2019-10-10 09:33:11 +01:00
Bert Blommers
a3f3d5661b
Merge pull request #6 from johnlpuc163/xu.bug_DynamoType_compare
Use cast_value when comparing DynamoType
2019-10-10 09:19:10 +01:00
Bert Blommers
ed6d780dab Remove dead code 2019-10-10 09:14:22 +01:00
Seth Black
dff24cb032 bringing up test percentage 2019-10-09 16:20:53 -05:00
Seth Black
20dc8ae5c4 getting tests working in server mode 2019-10-09 15:15:10 -05:00
Bert Blommers
afb8f71e9f #1822 - DynamoDB: Add List index operations 2019-10-09 17:30:42 +01:00
Bert Blommers
e759b565da #1874 - Change tests to use resource/client when appropriate 2019-10-09 10:02:40 +01:00
Bert Blommers
1fb844972f Merge branch 'master' into bugfix/1874 2019-10-09 08:33:53 +01:00