Skip to content

Commit 06f018c

Browse files
Add comments
1 parent 9b45469 commit 06f018c

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
@@ -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

0 commit comments

Comments
 (0)