Skip to content

Commit f839556

Browse files
Update TestEncryptExistingTable.java
1 parent d8cf645 commit f839556

File tree

1 file changed

+5
-3
lines changed
  • Examples/runtimes/java/Migration/PlaintextToAWSDBE/src/test/java/software/amazon/cryptography/examples/migration/awsdbe/encrypttable

1 file changed

+5
-3
lines changed

Examples/runtimes/java/Migration/PlaintextToAWSDBE/src/test/java/software/amazon/cryptography/examples/migration/awsdbe/encrypttable/TestEncryptExistingTable.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public class TestEncryptExistingTable {
5555

5656
public static void EncryptExistingTable(
5757
String kmsKeyId,
58-
String ddbTableName
58+
String ddbTableName,
59+
String partitionKey
5960
) {
6061
// 1. Continue to configure your Keyring, Table Schema,
6162
// and allowedUnsignedAttributes as you did in Step 1.
@@ -139,7 +140,7 @@ public static void EncryptExistingTable(
139140
Map<String, AttributeValue> expressionAttributesValues = new HashMap<>();
140141
expressionAttributesValues.put(
141142
":plaintexttest",
142-
AttributeValue.builder().s("PlaintextMigrationExample").build()
143+
AttributeValue.builder().s(partitionKey).build()
143144
);
144145

145146
ScanEnhancedRequest scanEnhancedRequest = ScanEnhancedRequest
@@ -202,7 +203,8 @@ public void TestEncryptExistingTable() {
202203
// When: Execute migration, Then: Success (i.e. encrypts 2 plaintext values)
203204
EncryptExistingTable(
204205
TestUtils.TEST_KMS_KEY_ID,
205-
TestUtils.TEST_DDB_TABLE_NAME
206+
TestUtils.TEST_DDB_TABLE_NAME,
207+
TestUtils.PARTITION_KEY
206208
);
207209
}
208210
}

0 commit comments

Comments
 (0)