diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-python/moto/files/moto-1.3.14-newer-botocore.patch | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-python/moto/files/moto-1.3.14-newer-botocore.patch')
-rw-r--r-- | dev-python/moto/files/moto-1.3.14-newer-botocore.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/moto/files/moto-1.3.14-newer-botocore.patch b/dev-python/moto/files/moto-1.3.14-newer-botocore.patch new file mode 100644 index 000000000000..a12e38483362 --- /dev/null +++ b/dev-python/moto/files/moto-1.3.14-newer-botocore.patch @@ -0,0 +1,53 @@ +commit ef7fce5a4fcd951a6c2bd1b9c6d21e6cf6a711e2 +Author: gruebel <anton.gruebel@gmail.com> +Date: Thu Nov 21 22:35:20 2019 +0100 + + Fixed failing tests, due to a new required parameter StreamEnabled + +diff --git a/tests/test_dynamodbstreams/test_dynamodbstreams.py b/tests/test_dynamodbstreams/test_dynamodbstreams.py +index 01cf915a..a98f97bf 100644 +--- a/tests/test_dynamodbstreams/test_dynamodbstreams.py ++++ b/tests/test_dynamodbstreams/test_dynamodbstreams.py +@@ -213,7 +213,7 @@ class TestEdges: + + resp = conn.update_table( + TableName="test-streams", +- StreamSpecification={"StreamViewType": "KEYS_ONLY"}, ++ StreamSpecification={"StreamEnabled": True, "StreamViewType": "KEYS_ONLY"}, + ) + assert "StreamSpecification" in resp["TableDescription"] + assert resp["TableDescription"]["StreamSpecification"] == { +@@ -226,7 +226,10 @@ class TestEdges: + with assert_raises(conn.exceptions.ResourceInUseException): + resp = conn.update_table( + TableName="test-streams", +- StreamSpecification={"StreamViewType": "OLD_IMAGES"}, ++ StreamSpecification={ ++ "StreamEnabled": True, ++ "StreamViewType": "OLD_IMAGES", ++ }, + ) + + def test_stream_with_range_key(self): +@@ -243,7 +246,7 @@ class TestEdges: + {"AttributeName": "color", "AttributeType": "S"}, + ], + ProvisionedThroughput={"ReadCapacityUnits": 1, "WriteCapacityUnits": 1}, +- StreamSpecification={"StreamViewType": "NEW_IMAGES"}, ++ StreamSpecification={"StreamEnabled": True, "StreamViewType": "NEW_IMAGES"}, + ) + stream_arn = resp["TableDescription"]["LatestStreamArn"] + +diff --git a/moto/core/responses.py b/moto/core/responses.py +index bf4af902..c708edb8 100644 +--- a/moto/core/responses.py ++++ b/moto/core/responses.py +@@ -307,7 +307,7 @@ class BaseResponse(_TemplateEnvironmentMixin, ActionAuthenticatorMixin): + def _convert(elem, is_last): + if not re.match("^{.*}$", elem): + return elem +- name = elem.replace("{", "").replace("}", "") ++ name = elem.replace("{", "").replace("}", "").replace("+", "") + if is_last: + return "(?P<%s>[^/]*)" % name + return "(?P<%s>.*)" % name |