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 {
855855 );
856856 var resultForInsertStatement := wClient. ExecuteStatement (inputForInsertStatement);
857857 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.
858861 expect resultForInsertStatement. error. OpaqueWithText?, "Error should have been of type OpaqueWithText";
859862
860863 // Create a PartiQL SELECT statement
@@ -870,6 +873,9 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
870873 );
871874 var resultForSelectStatement := rClient. ExecuteStatement (inputForSelectStatement);
872875 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.
873879 expect resultForSelectStatement. error. OpaqueWithText?, "Error should have been of type OpaqueWithText";
874880 }
875881
You can’t perform that action at this time.
0 commit comments