@@ -401,6 +401,8 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
401
401
BasicIoTestUpdateItem (c1, c2, globalRecords, "Two");
402
402
BasicIoTestDeleteItem (c1, c2, globalRecords, "One", "Uno");
403
403
BasicIoTestDeleteItem (c1, c2, globalRecords, "Two", "Dos");
404
+ BasicIoTestDeleteItemWithoutConditionExpression (c1, c2, globalRecords, "One", "Uno");
405
+ BasicIoTestDeleteItemWithoutConditionExpression (c1, c2, globalRecords, "Two", "Dos");
404
406
BasicIoTestExecuteStatement (c1, c2);
405
407
BasicIoTestExecuteTransaction (c1, c2);
406
408
BasicIoTestBatchExecuteStatement (c1, c2);
@@ -925,7 +927,14 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
925
927
expect deleteResult. Failure?, "DeleteItem should have failed. ";
926
928
expect deleteResult. error. ConditionalCheckFailedException?, "DeleteItem should have failed with ConditionalCheckFailedException";
927
929
}
928
-
930
+ }
931
+ }
932
+
933
+ method BasicIoTestDeleteItemWithoutConditionExpression (writeConfig : TableConfig , readConfig : TableConfig , records : seq <Record >, attributeToDelete: DDB .AttributeName, expectedAttributeValue: string )
934
+ {
935
+ var wClient, rClient := SetupTestTable (writeConfig, readConfig);
936
+ WriteAllRecords (wClient, records);
937
+ for i := 0 to |records| {
929
938
var deleteInputWithoutConditionExpression := DDB. DeleteItemInput (
930
939
TableName := TableName,
931
940
Key := map[HashName := records[i].item[HashName]],
0 commit comments