@@ -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 = []
0 commit comments