File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
TestVectors/dafny/DDBEncryption/src Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -968,6 +968,9 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
968
968
969
969
var resultForBatchSelect := rClient. BatchExecuteStatement (inputForBatchSelect);
970
970
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.
971
974
expect resultForBatchSelect. error. OpaqueWithText?, "Error should have been of type OpaqueWithText";
972
975
973
976
// Test with mixed batch (both inserts and selects)
@@ -978,6 +981,9 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
978
981
979
982
var resultForMixedBatch := wClient. BatchExecuteStatement (inputForMixedBatch);
980
983
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.
981
987
expect resultForMixedBatch. error. OpaqueWithText?, "Error should have been of type OpaqueWithText";
982
988
}
983
989
You can’t perform that action at this time.
0 commit comments