Skip to content

Commit 6719ef1

Browse files
auto commit
1 parent a8442bf commit 6719ef1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

TestVectors/dafny/DDBEncryption/src/TestVectors.dfy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,9 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
968968

969969
var resultForBatchSelect := rClient.BatchExecuteStatement(inputForBatchSelect);
970970
expect resultForBatchSelect.Failure?, "BatchExecuteStatement for selects should have failed";
971+
// This error is of type DynamoDbEncryptionTransformsException
972+
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
973+
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
971974
expect resultForBatchSelect.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
972975

973976
// Test with mixed batch (both inserts and selects)
@@ -978,6 +981,9 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
978981

979982
var resultForMixedBatch := wClient.BatchExecuteStatement(inputForMixedBatch);
980983
expect resultForMixedBatch.Failure?, "BatchExecuteStatement for mixed batch should have failed";
984+
// This error is of type DynamoDbEncryptionTransformsException
985+
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
986+
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
981987
expect resultForMixedBatch.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
982988
}
983989

0 commit comments

Comments
 (0)