Skip to content

Commit f606005

Browse files
auto commit
1 parent fd909c1 commit f606005

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Examples/runtimes/net/src/migration/PlaintextToAWSDBE/awsdbe/MigrationStep2Test.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ public async Task TestMigrationStep2()
2020
string partitionKey = Guid.NewGuid().ToString();
2121
string[] sortKeys = { "0", "1", "2", "3" };
2222

23-
// Given: Step 0 has succeeded
24-
bool success = await MigrationStep0.MigrationStep0Example(tableName, partitionKey, sortKeys[0], sortKeys[0]);
25-
Assert.True(success, "MigrationStep0 should complete successfully");
26-
27-
// Given: Step 1 has succeeded
28-
success = await MigrationStep1.MigrationStep1Example(kmsKeyID, tableName, partitionKey, sortKeys[1], sortKeys[1]);
29-
Assert.True(success, "MigrationStep1 should complete successfully");
30-
3123
// Successfully executes step 2
3224
success = await MigrationStep2.MigrationStep2Example(kmsKeyID, tableName, partitionKey, sortKeys[2], sortKeys[2]);
3325
Assert.True(success, "MigrationStep2 should complete successfully");
3426

27+
// Given: Step 0 has succeeded
28+
bool success = await MigrationStep0.MigrationStep0Example(tableName, partitionKey, sortKeys[0], sortKeys[0]);
29+
Assert.True(success, "MigrationStep0 should complete successfully");
30+
3531
// When: Execute Step 2 with sortReadValue=0, Then: Success (i.e. can read plaintext values from Step 0)
3632
success = await MigrationStep2.MigrationStep2Example(kmsKeyID, tableName, partitionKey, sortKeys[2], sortKeys[0]);
3733
Assert.True(success, "MigrationStep2 should be able to read items written by Step 0");
3834

35+
// Given: Step 1 has succeeded
36+
success = await MigrationStep1.MigrationStep1Example(kmsKeyID, tableName, partitionKey, sortKeys[1], sortKeys[1]);
37+
Assert.True(success, "MigrationStep1 should complete successfully");
38+
3939
// When: Execute Step 2 with sortReadValue=1, Then: Success (i.e. can read plaintext values from Step 1)
4040
success = await MigrationStep2.MigrationStep2Example(kmsKeyID, tableName, partitionKey, sortKeys[2], sortKeys[1]);
4141
Assert.True(success, "MigrationStep2 should be able to read items written by Step 1");

0 commit comments

Comments
 (0)