Skip to content

Commit ad60db0

Browse files
auto commit
1 parent b79963f commit ad60db0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

TestVectors/dafny/DDBEncryption/src/TestVectors.dfy

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,8 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
934934
{
935935
var wClient, rClient := SetupTestTable(writeConfig, readConfig);
936936
WriteAllRecords(wClient, records);
937-
for i := 0 to |records| {
937+
for i := 0 to |records| {
938+
expect HashName in records[i].item, "`HashName` is not in records.";
938939
var deleteInputWithoutConditionExpression := DDB.DeleteItemInput(
939940
TableName := TableName,
940941
Key := map[HashName := records[i].item[HashName]],
@@ -943,7 +944,9 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
943944
var deleteResultForWithoutConditionExpressionCase := wClient.DeleteItem(deleteInputWithoutConditionExpression);
944945
expect deleteResultForWithoutConditionExpressionCase.Success?, "DeleteItem should have failed.";
945946
expect deleteResultForWithoutConditionExpressionCase.value.Attributes.Some?, "DeleteItemOutput should have had some attribute because ReturnValues was set as `ALL_OLD` in DeleteItemInput";
946-
expect deleteResultForWithoutConditionExpressionCase.value.Attributes.value == records[i].item, "Wrong item was deleted.";
947+
if attributeToDelete in records[i].item {
948+
expect deleteResultForWithoutConditionExpressionCase.value.Attributes.value == records[i].item, "Wrong item was deleted.";
949+
}
947950
}
948951
}
949952

0 commit comments

Comments
 (0)