Skip to content

Commit 96b9c02

Browse files
auto commit
1 parent e8e50c0 commit 96b9c02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TestVectors/dafny/DDBEncryption/src/TestVectors.dfy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,11 +854,11 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
854854
);
855855
var resultForInsertStatement := wClient.ExecuteStatement(inputForInsertStatement);
856856
expect resultForInsertStatement.Failure?;
857-
print(resultForInsertStatement.error.objMessage);
857+
expect resultForInsertStatement.error.objMessage == "ExecuteStatement not Supported on encrypted tables.";
858858

859859
// Create a PartiQL SELECT statement
860860
// The dynamodb attributes are random and non-existent because ExecuteStatement is supposed to be failed before going into dynamodb.
861-
var selectStatement := "SELECT * FROM" + TableName + "WHERE partition_key = 'a' AND sort_key = 'b'";
861+
var selectStatement := "SELECT * FROM " + TableName + " WHERE partition_key = 'a' AND sort_key = 'b'";
862862
var inputForSelectStatement := DDB.ExecuteStatementInput(
863863
Statement := selectStatement,
864864
Parameters := None,
@@ -869,7 +869,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
869869
);
870870
var resultForSelectStatement := rClient.ExecuteStatement(inputForSelectStatement);
871871
expect resultForSelectStatement.Failure?;
872-
print(resultForSelectStatement.error.objMessage);
872+
expect resultForSelectStatement.error.objMessage == "ExecuteStatement not Supported on encrypted tables.";
873873
}
874874

875875
method FindMatchingRecord(expected : DDB.AttributeMap, actual : DDB.ItemList) returns (output : bool)

0 commit comments

Comments
 (0)