Skip to content

Commit

Permalink
Merge pull request #236 from alex-chew/fix-parsed-ciphertext-test
Browse files Browse the repository at this point in the history
test: fix ParsedCiphertextTest, add to AllTestsSuite
  • Loading branch information
alex-chew committed Jan 27, 2021
2 parents ca03d79 + 58bea6d commit e62ddf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/java/com/amazonaws/encryptionsdk/AllTestsSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
RestrictRegionExampleTest.class,
SimpleDataKeyCachingExampleTest.class,
SetEncryptionAlgorithmExampleTest.class,
SetCommitmentPolicyExampleTest.class
SetCommitmentPolicyExampleTest.class,
ParsedCiphertextTest.class,
})
public class AllTestsSuite {
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ParsedCiphertextTest extends CiphertextHeaders {
public void init() {
masterKeyProvider = spy(new StaticMasterKey("testmaterial"));

encryptionClient_ = AwsCrypto.standard();
encryptionClient_ = AwsCrypto.builder().withCommitmentPolicy(CommitmentPolicy.ForbidEncryptAllowDecrypt).build();
encryptionClient_.setEncryptionAlgorithm(CryptoAlgorithm.ALG_AES_128_GCM_IV12_TAG16_HKDF_SHA256);
}

Expand Down

0 comments on commit e62ddf3

Please sign in to comment.