From d8aca59749130df37e25f091e36a0988cfb0ebb6 Mon Sep 17 00:00:00 2001 From: Andy Jewell Date: Fri, 8 Nov 2024 09:48:10 -0500 Subject: [PATCH] add test --- .../DynamoDbEnhancedClientEncryptionTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DynamoDbEncryption/runtimes/java/src/test/java/software/amazon/cryptography/dbencryptionsdk/dynamodb/enhancedclient/DynamoDbEnhancedClientEncryptionTest.java b/DynamoDbEncryption/runtimes/java/src/test/java/software/amazon/cryptography/dbencryptionsdk/dynamodb/enhancedclient/DynamoDbEnhancedClientEncryptionTest.java index 66c5e31ed..af234965e 100644 --- a/DynamoDbEncryption/runtimes/java/src/test/java/software/amazon/cryptography/dbencryptionsdk/dynamodb/enhancedclient/DynamoDbEnhancedClientEncryptionTest.java +++ b/DynamoDbEncryption/runtimes/java/src/test/java/software/amazon/cryptography/dbencryptionsdk/dynamodb/enhancedclient/DynamoDbEnhancedClientEncryptionTest.java @@ -56,6 +56,9 @@ public void TestMultipleTables() { .keyring(createKmsKeyring()) .allowedUnsignedAttributes(Arrays.asList("doNothing")) .schemaOnEncrypt(simpleSchema) + .algorithmSuiteId( + DBEAlgorithmSuiteId.ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_SYMSIG_HMAC_SHA384 + ) .build() ); tableConfigs.put( @@ -102,6 +105,10 @@ public void TestMultipleTables() { .config() .tableEncryptionConfigs() .get("SimpleClassTestTable"); + assertEquals( + DBEAlgorithmSuiteId.ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_SYMSIG_HMAC_SHA384, + simpleConfig.algorithmSuiteId() + ); assertEquals( CryptoAction.DO_NOTHING, simpleConfig.attributeActionsOnEncrypt().get("doNothing")