Mike Grima
4ec52b946d
Merge pull request #2492 from edekadigital/fix_deprecation_warning
...
fix deprication warning invalid escape sequence
2019-10-18 09:53:07 -07:00
Mike Grima
484da34022
Merge pull request #2491 from bblommers/bugfix/250
...
DynamoDB - Add validation for Query Key Expression
2019-10-18 09:52:23 -07:00
Mike Grima
c4665366a9
Merge pull request #2490 from cclauss/patch-1
...
Use ==/!= to compare str, bytes, and int literals
2019-10-18 09:51:28 -07:00
Mike Grima
382fe5bd68
Merge pull request #2481 from aacampbell/fix_getsecretmananger_error
...
Fix getsecretmananger error
2019-10-18 09:50:43 -07:00
Mike Grima
e469a64ed5
Merge pull request #2488 from edekadigital/add-sqs-error-handling
...
Add sqs error handling
2019-10-18 09:49:17 -07:00
Selena
37877c6fb2
add NotImplementedError when filter_pattern is given to filter_log_events
...
fix #2419
2019-10-18 13:46:27 +02:00
Selena
e64b9ca0ef
fix deprication warning invalid escape sequence
...
fix #2489
2019-10-18 12:52:05 +02:00
Bert Blommers
db206e994b
#250 - DynamoDB - Add check for valid query keyconditionexpression
2019-10-18 09:58:09 +01:00
Bert Blommers
deffefbfb8
PR changes
2019-10-18 09:18:12 +01:00
gruebel
ed1c799bdc
CR fix
2019-10-18 09:04:29 +02:00
Christian Clauss
c3c75c12d9
Use ==/!= to compare str, bytes, and int literals
...
Python 3.8 will probably [raise SyntaxWarnings](https://docs.python.org/3/whatsnew/3.8.html#changes-in-python-behavior ) on the flake8 F632 issue raised below.
[flake8](http://flake8.pycqa.org ) testing of https://github.com/spulec/moto on Python 3.7.1
$ __flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics__
```
./tests/test_awslambda/test_lambda.py:1137:24: F632 use ==/!= to compare str, bytes, and int literals
assert len(messages) is 3
^
1 F632 use ==/!= to compare str, bytes, and int literals
1
```
2019-10-18 09:03:31 +02:00
Alexander Campbell
30853a0b5c
Use specialised exception for "secret has no value" scenario
2019-10-18 12:06:12 +11:00
Alexander Campbell
6120a60263
Use escape sequence to express non-ASCII character
2019-10-18 10:17:49 +11:00
Alexander Campbell
4eb921480e
Use specific exception to prevent repetition
2019-10-18 10:17:45 +11:00
gruebel
05dc97b468
Update implementation coverage
2019-10-17 22:41:46 +02:00
gruebel
19a34ea57a
Add error handling for sqs.list_queue_tags
2019-10-17 22:38:16 +02:00
gruebel
dbfb319def
Add error handling for sqs.tag_queue
2019-10-17 22:36:37 +02:00
gruebel
65c5502a62
Add error handling for sqs.send_message_batch
2019-10-17 22:09:14 +02:00
Mike Grima
36a8a4ad00
Merge pull request #2485 from Htermotto/harrison__add_tagging_to_s3_versioned_objects
...
Add tagging to s3 versioned objects
2019-10-17 09:41:16 -07:00
Bert Blommers
856a06a778
IAM - Delete Policy implementation
2019-10-17 09:28:19 +01:00
Harrison Termotto
f788fd5c8c
Remove erroneous comment
2019-10-17 00:17:45 -04:00
Harrison Termotto
df2de373b2
Add tagging to versioned s3 objects.
2019-10-17 00:16:16 -04:00
Mike Grima
16a0e93259
Merge pull request #2484 from koshigoe/bugfix/check-none-in-s3-model-get_key
...
Avoid exception occur in `moto.s3.models.S3Backend.get_key`
2019-10-16 10:29:19 -07:00
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