Skip to content

Commit 2e43097

Browse files
auto commit
1 parent 37ae395 commit 2e43097

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

DynamoDbEncryption/runtimes/rust/examples/migration/plaintext_to_awsdbe/migration_tests.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,10 @@ async fn test_migration_step_3() -> Result<(), Box<dyn std::error::Error>> {
192192
// When: Execute Step 3 with sortReadValue=0, Then: should error out when reading plaintext items from Step 0
193193
let result = migration_step_3_example(kms_key_id, table_name, &partition_key, sort_keys[3], sort_keys[0]).await;
194194
assert!(result.is_err(), "MigrationStep3 should fail when reading plaintext items");
195-
let error_msg = result.unwrap_err().to_string().to_lowercase();
196-
assert!(error_msg.contains("encrypted item missing expected header and footer attributes") ||
197-
error_msg.contains("header") || error_msg.contains("footer"));
198195

199196
// When: Execute Step 3 with sortReadValue=1, Then: should error out when reading plaintext items from Step 1
200197
let result = migration_step_3_example(kms_key_id, table_name, &partition_key, sort_keys[3], sort_keys[1]).await;
201198
assert!(result.is_err(), "MigrationStep3 should fail when reading plaintext items");
202-
let error_msg = result.unwrap_err().to_string().to_lowercase();
203-
assert!(error_msg.contains("encrypted item missing expected header and footer attributes") ||
204-
error_msg.contains("header") || error_msg.contains("footer"));
205199

206200
// When: Execute Step 3 with sortReadValue=2, Then: Success (i.e. can read encrypted values from Step 2)
207201
let success = migration_step_3_example(kms_key_id, table_name, &partition_key, sort_keys[3], sort_keys[2]).await?;

0 commit comments

Comments
 (0)