Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz committed Nov 8, 2024
1 parent 77f3953 commit d8aca59
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit d8aca59

Please sign in to comment.