@@ -217,8 +217,8 @@ def test_GIVEN_awsdbe_encrypted_item_WHEN_paginate_with_legacy_query_paginator(
217
217
legacy_actual_item = sort_dynamodb_json_lists (items [0 ])
218
218
assert expected_item == legacy_actual_item
219
219
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
222
222
with pytest .raises (DecryptionError ):
223
223
response = legacy_query_paginator .paginate (** paginate_query_request )
224
224
items = []
@@ -259,8 +259,8 @@ def test_GIVEN_awsdbe_encrypted_item_WHEN_paginate_with_legacy_scan_paginator(
259
259
legacy_actual_item = sort_dynamodb_json_lists (items [0 ])
260
260
assert expected_item == legacy_actual_item
261
261
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
264
264
with pytest .raises (DecryptionError ):
265
265
response = legacy_scan_paginator .paginate (** paginate_scan_request )
266
266
items = []
@@ -302,7 +302,7 @@ def test_GIVEN_legacy_encrypted_item_WHEN_paginate_with_awsdbe_query_paginator(
302
302
else :
303
303
# Given: Valid paginate request with FORBID_LEGACY_DECRYPT policy
304
304
# 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)
306
306
with pytest .raises (DynamoDbItemEncryptor ):
307
307
response = query_paginator .paginate (** paginate_query_request )
308
308
items = []
@@ -344,7 +344,7 @@ def test_GIVEN_legacy_encrypted_item_WHEN_paginate_with_awsdbe_scan_paginator(
344
344
else :
345
345
# Given: Valid paginate request with FORBID_LEGACY_DECRYPT policy
346
346
# 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)
348
348
with pytest .raises (DynamoDbItemEncryptor ):
349
349
response = scan_paginator .paginate (** paginate_scan_request )
350
350
items = []
0 commit comments