Skip to content

Commit 25df5b3

Browse files
auto commit
1 parent 75ad2af commit 25df5b3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Examples/runtimes/net/src/migration/PlaintextToAWSDBE/MigrationUtils.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,26 @@ public static bool VerifyReturnedItem(GetItemResponse response, string partition
2020
{
2121
var item = response.Item;
2222

23-
// Verify partition key
2423
if (!item.ContainsKey("partition_key") || item["partition_key"].S != partitionKeyValue)
2524
{
2625
throw new Exception($"partition_key mismatch: expected {partitionKeyValue}, got {(item.ContainsKey("partition_key") ? item["partition_key"].S : "null")}");
2726
}
2827

29-
// Verify sort key
3028
if (!item.ContainsKey("sort_key") || item["sort_key"].N != sortKeyValue)
3129
{
3230
throw new Exception($"sort_key mismatch: expected {sortKeyValue}, got {(item.ContainsKey("sort_key") ? item["sort_key"].N : "null")}");
3331
}
3432

35-
// Verify attribute1 (will be encrypted and signed in future steps)
3633
if (!item.ContainsKey("attribute1") || item["attribute1"].S != ENCRYPTED_AND_SIGNED_VALUE)
3734
{
3835
throw new Exception($"attribute1 mismatch: expected {ENCRYPTED_AND_SIGNED_VALUE}, got {(item.ContainsKey("attribute1") ? item["attribute1"].S : "null")}");
3936
}
4037

41-
// Verify attribute2 (will be signed but not encrypted in future steps)
4238
if (!item.ContainsKey("attribute2") || item["attribute2"].S != SIGN_ONLY_VALUE)
4339
{
4440
throw new Exception($"attribute2 mismatch: expected {SIGN_ONLY_VALUE}, got {(item.ContainsKey("attribute2") ? item["attribute2"].S : "null")}");
4541
}
4642

47-
// Verify attribute3 (will neither be encrypted nor signed in future steps)
4843
if (!item.ContainsKey("attribute3") || item["attribute3"].S != DO_NOTHING_VALUE)
4944
{
5045
throw new Exception($"attribute3 mismatch: expected {DO_NOTHING_VALUE}, got {(item.ContainsKey("attribute3") ? item["attribute3"].S : "null")}");

0 commit comments

Comments
 (0)