Skip to content

Commit 711dac5

Browse files
auto commit
1 parent 1f0c6bc commit 711dac5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

TestVectors/dafny/DDBEncryption/src/TestVectors.dfy

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
865865
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
866866
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
867867
expect resultForInsertStatement.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
868-
var hasDynamoDbEncryptionTransformsExceptionForInsertStatement? := String.HasSubString(resultForInsertStatement.error.objMessage, "DynamoDbEncryptionTransformsException");
868+
var hasDynamoDbEncryptionTransformsExceptionForInsertStatement? := String.HasSubString(resultForInsertStatement.error.objMessage, "ExecuteStatement not Supported on encrypted tables.");
869869
expect hasDynamoDbEncryptionTransformsExceptionForInsertStatement?.Some?;
870870

871871
// Create a PartiQL SELECT statement
@@ -885,7 +885,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
885885
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
886886
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
887887
expect resultForSelectStatement.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
888-
var hasDynamoDbEncryptionTransformsExceptionForSelectStatement? := String.HasSubString(resultForSelectStatement.error.objMessage, "DynamoDbEncryptionTransformsException");
888+
var hasDynamoDbEncryptionTransformsExceptionForSelectStatement? := String.HasSubString(resultForSelectStatement.error.objMessage, "ExecuteStatement not Supported on encrypted tables.");
889889
expect hasDynamoDbEncryptionTransformsExceptionForSelectStatement?.Some?;
890890
}
891891

@@ -918,7 +918,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
918918
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
919919
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
920920
expect resultForWriteTransaction.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
921-
var hasDynamoDbEncryptionTransformsExceptionForWriteTransaction? := String.HasSubString(resultForWriteTransaction.error.objMessage, "DynamoDbEncryptionTransformsException");
921+
var hasDynamoDbEncryptionTransformsExceptionForWriteTransaction? := String.HasSubString(resultForWriteTransaction.error.objMessage, "ExecuteStatement not Supported on encrypted tables.");
922922
expect hasDynamoDbEncryptionTransformsExceptionForWriteTransaction?.Some?;
923923

924924
// Test with read client
@@ -928,7 +928,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
928928
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
929929
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
930930
expect resultForReadTransaction.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
931-
var hasDynamoDbEncryptionTransformsExceptionForReadTransaction? := String.HasSubString(resultForReadTransaction.error.objMessage, "DynamoDbEncryptionTransformsException");
931+
var hasDynamoDbEncryptionTransformsExceptionForReadTransaction? := String.HasSubString(resultForReadTransaction.error.objMessage, "ExecuteStatement not Supported on encrypted tables.");
932932
expect hasDynamoDbEncryptionTransformsExceptionForReadTransaction?.Some?;
933933
}
934934

@@ -968,7 +968,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
968968
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
969969
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
970970
expect resultForBatchInsert.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
971-
var hasDynamoDbEncryptionTransformsExceptionForBatchInsert? := String.HasSubString(resultForBatchInsert.error.objMessage, "DynamoDbEncryptionTransformsException");
971+
var hasDynamoDbEncryptionTransformsExceptionForBatchInsert? := String.HasSubString(resultForBatchInsert.error.objMessage, "ExecuteStatement not Supported on encrypted tables.");
972972
expect hasDynamoDbEncryptionTransformsExceptionForBatchInsert?.Some?;
973973

974974
// Test with read client for batch select
@@ -983,7 +983,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
983983
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
984984
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
985985
expect resultForBatchSelect.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
986-
var hasDynamoDbEncryptionTransformsExceptionForBatchSelect? := String.HasSubString(resultForBatchSelect.error.objMessage, "DynamoDbEncryptionTransformsException");
986+
var hasDynamoDbEncryptionTransformsExceptionForBatchSelect? := String.HasSubString(resultForBatchSelect.error.objMessage, "ExecuteStatement not Supported on encrypted tables.");
987987
expect hasDynamoDbEncryptionTransformsExceptionForBatchSelect?.Some?;
988988

989989
// Test with mixed batch (both inserts and selects)
@@ -998,7 +998,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
998998
// but AWS SDK wraps it into its own type for which customers should be unwrapping.
999999
// In test vectors, we still have to change the error from AWS SDK to dafny so it turns out to be OpaqueWithText.
10001000
expect resultForMixedBatch.error.OpaqueWithText?, "Error should have been of type OpaqueWithText";
1001-
var hasDynamoDbEncryptionTransformsExceptionForMixedBatch? := String.HasSubString(resultForMixedBatch.error.objMessage, "DynamoDbEncryptionTransformsException");
1001+
var hasDynamoDbEncryptionTransformsExceptionForMixedBatch? := String.HasSubString(resultForMixedBatch.error.objMessage, "ExecuteStatement not Supported on encrypted tables.");
10021002
expect hasDynamoDbEncryptionTransformsExceptionForMixedBatch?.Some?;
10031003
}
10041004

0 commit comments

Comments
 (0)