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 {
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
You can’t perform that action at this time.
0 commit comments