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 @@ -855,6 +855,9 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
855
855
);
856
856
var resultForInsertStatement := wClient. ExecuteStatement (inputForInsertStatement);
857
857
expect resultForInsertStatement. Failure?, "ExecuteStatement should have failed";
858
+ // This error is of type DynamoDbEncryptionTransformsException
859
+ // but AWS SDK wraps it into its own type for which customers should be unwrapping.
860
+ // In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
858
861
expect resultForInsertStatement. error. OpaqueWithText?, "Error should have been of type OpaqueWithText";
859
862
860
863
// Create a PartiQL SELECT statement
@@ -870,6 +873,9 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
870
873
);
871
874
var resultForSelectStatement := rClient. ExecuteStatement (inputForSelectStatement);
872
875
expect resultForSelectStatement. Failure?, "ExecuteStatement should have failed";
876
+ // This error is of type DynamoDbEncryptionTransformsException
877
+ // but AWS SDK wraps it into its own type for which customers should be unwrapping.
878
+ // In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
873
879
expect resultForSelectStatement. error. OpaqueWithText?, "Error should have been of type OpaqueWithText";
874
880
}
875
881
You can’t perform that action at this time.
0 commit comments