File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
TestVectors/dafny/DDBEncryption/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -901,7 +901,8 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
901
901
Key := map[HashName := records[i].item[HashName]],
902
902
ConditionExpression := Some(conditionExpr),
903
903
ExpressionAttributeNames := Some (exprAttrNames),
904
- ExpressionAttributeValues := Some (exprAttrValues)
904
+ ExpressionAttributeValues := Some (exprAttrValues),
905
+ ReturnValues := Some (DDB.ReturnValue.ALL_OLD)
905
906
);
906
907
907
908
// The delete operation will succeed only if the condition is met
@@ -918,9 +919,11 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
918
919
expect hasDynamoDbEncryptionTransformsException?. Some?, "Error might is not be of type DynamoDbEncryptionTransformsException";
919
920
} else if attributeToDelete in records[i]. item && records[i]. item[attributeToDelete]. S? && records[i]. item[attributeToDelete]. S == valueToDelete {
920
921
expect deleteResult. Success?;
922
+ print ("\n");
923
+ print (deleteResult);
921
924
} else {
922
925
expect deleteResult. Failure?, "DeleteItem should have failed. ";
923
- expect deleteResult. error. ConditionalCheckFailedException?;
926
+ expect deleteResult. error. ConditionalCheckFailedException?, "DeleteItem should have failed with ConditionalCheckFailedException" ;
924
927
}
925
928
}
926
929
}
You can’t perform that action at this time.
0 commit comments