Skip to content

Commit ca0b0fb

Browse files
verify
1 parent 13a5649 commit ca0b0fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

TestVectors/dafny/DDBEncryption/src/TestVectors.dfy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
922922
} else if attributeToDelete in records[i].item && records[i].item[attributeToDelete].S? && records[i].item[attributeToDelete].S == expectedAttributeValue {
923923
expect deleteResult.Success?, "DeleteItem should have succeeded.";
924924
expect deleteResult.value.Attributes.Some?, "DeleteItemOutput should have had some attribute because ReturnValues was set as `ALL_OLD` in DeleteItemInput";
925+
expect HashName in deleteResult.value.Attributes.value, "Deleted item does not have right partition key:" + HashName;
925926
expect deleteResult.value.Attributes.value[HashName] == records[i].item[HashName], "Wrong item was deleted.";
926927
} else {
927928
expect deleteResult.Failure?, "DeleteItem should have failed.";
@@ -945,6 +946,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
945946
expect deleteResultForWithoutConditionExpressionCase.Success?, "DeleteItem should have failed.";
946947
expect deleteResultForWithoutConditionExpressionCase.value.Attributes.Some?, "DeleteItemOutput should have had some attribute because ReturnValues was set as `ALL_OLD` in DeleteItemInput";
947948
if attributeToDelete in records[i].item {
949+
expect HashName in deleteResultForWithoutConditionExpressionCase.value.Attributes.value, "Deleted item does not have right partition key:" + HashName;
948950
expect deleteResultForWithoutConditionExpressionCase.value.Attributes.value[HashName] == records[i].item[HashName], "Wrong item was deleted.";
949951
}
950952
}

0 commit comments

Comments
 (0)