Skip to content

Commit 5900e43

Browse files
committed
Nit comments.
1 parent 459fa68 commit 5900e43

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

DynamoDbEncryption/runtimes/python/test/integ/legacy/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def test_GIVEN_legacy_encrypted_item_WHEN_get_with_awsdbe(
240240
else:
241241
# Given: Valid get_item request for the same item with FORBID_LEGACY_DECRYPT policy
242242
# When: get_item using AWS DBE SDK client
243-
# Then: Throws DynamoDbItemEncryptor exception (AWS DB-ESDK with FORBID policy cannot decrypt legacy items)
243+
# Then: Throws a DynamoDbItemEncryptor exception (AWS DB-ESDK with FORBID policy cannot decrypt legacy items)
244244
with pytest.raises(DynamoDbItemEncryptor):
245245
encrypted_client.get_item(**get_item_request)
246246

DynamoDbEncryption/runtimes/python/test/integ/legacy/test_paginator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def test_GIVEN_awsdbe_encrypted_item_WHEN_paginate_with_legacy_query_paginator(
217217
legacy_actual_item = sort_dynamodb_json_lists(items[0])
218218
assert expected_item == legacy_actual_item
219219
else:
220-
# When: batch_get_item with legacy resource using FORBID policies
221-
# Then: Legacy resource cannot decrypt items created with FORBID_LEGACY_ENCRYPT policy
220+
# When: Paginate with legacy query paginator using FORBID policies
221+
# Then: Legacy paginator cannot decrypt items created with FORBID_LEGACY_ENCRYPT policy
222222
with pytest.raises(DecryptionError):
223223
response = legacy_query_paginator.paginate(**paginate_query_request)
224224
items = []
@@ -259,8 +259,8 @@ def test_GIVEN_awsdbe_encrypted_item_WHEN_paginate_with_legacy_scan_paginator(
259259
legacy_actual_item = sort_dynamodb_json_lists(items[0])
260260
assert expected_item == legacy_actual_item
261261
else:
262-
# When: batch_get_item with legacy resource using FORBID policies
263-
# Then: Legacy resource cannot decrypt items created with FORBID_LEGACY_ENCRYPT policy
262+
# When: Paginate with legacy scan paginator using FORBID policies
263+
# Then: Legacy paginator cannot decrypt items created with FORBID_LEGACY_ENCRYPT policy
264264
with pytest.raises(DecryptionError):
265265
response = legacy_scan_paginator.paginate(**paginate_scan_request)
266266
items = []
@@ -302,7 +302,7 @@ def test_GIVEN_legacy_encrypted_item_WHEN_paginate_with_awsdbe_query_paginator(
302302
else:
303303
# Given: Valid paginate request with FORBID_LEGACY_DECRYPT policy
304304
# When: Paginate with AWS DB-ESDK client
305-
# Then: Throws DynamoDbItemEncryptor exception (AWS DB-ESDK with FORBID policy cannot decrypt legacy items)
305+
# Then: Throws a DynamoDbItemEncryptor exception (AWS DB-ESDK with FORBID policy cannot decrypt legacy items)
306306
with pytest.raises(DynamoDbItemEncryptor):
307307
response = query_paginator.paginate(**paginate_query_request)
308308
items = []
@@ -344,7 +344,7 @@ def test_GIVEN_legacy_encrypted_item_WHEN_paginate_with_awsdbe_scan_paginator(
344344
else:
345345
# Given: Valid paginate request with FORBID_LEGACY_DECRYPT policy
346346
# When: Paginate with AWS DB-ESDK client
347-
# Then: Throws DynamoDbItemEncryptor exception (AWS DB-ESDK with FORBID policy cannot decrypt legacy items)
347+
# Then: Throws a DynamoDbItemEncryptor exception (AWS DB-ESDK with FORBID policy cannot decrypt legacy items)
348348
with pytest.raises(DynamoDbItemEncryptor):
349349
response = scan_paginator.paginate(**paginate_scan_request)
350350
items = []

DynamoDbEncryption/runtimes/python/test/integ/legacy/test_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_GIVEN_legacy_encrypted_item_WHEN_get_with_awsdbe(
152152
else:
153153
# Given: Valid get_item request for the same item with FORBID_LEGACY_DECRYPT policy
154154
# When: get_item using AWS DB-ESDK client
155-
# Then: Throws DynamoDbItemEncryptor exception (AWS DB-ESDK with FORBID policy cannot decrypt legacy items)
155+
# Then: Throws a DynamoDbItemEncryptor exception (AWS DB-ESDK with FORBID policy cannot decrypt legacy items)
156156
with pytest.raises(DynamoDbItemEncryptor):
157157
encrypted_table.get_item(**get_item_request_dict)
158158

0 commit comments

Comments
 (0)