@@ -401,6 +401,8 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
401401 BasicIoTestUpdateItem (c1, c2, globalRecords, "Two");
402402 BasicIoTestDeleteItem (c1, c2, globalRecords, "One", "Uno");
403403 BasicIoTestDeleteItem (c1, c2, globalRecords, "Two", "Dos");
404+ BasicIoTestDeleteItemWithoutConditionExpression (c1, c2, globalRecords, "One", "Uno");
405+ BasicIoTestDeleteItemWithoutConditionExpression (c1, c2, globalRecords, "Two", "Dos");
404406 BasicIoTestExecuteStatement (c1, c2);
405407 BasicIoTestExecuteTransaction (c1, c2);
406408 BasicIoTestBatchExecuteStatement (c1, c2);
@@ -925,7 +927,14 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
925927 expect deleteResult. Failure?, "DeleteItem should have failed. ";
926928 expect deleteResult. error. ConditionalCheckFailedException?, "DeleteItem should have failed with ConditionalCheckFailedException";
927929 }
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| {
929938 var deleteInputWithoutConditionExpression := DDB. DeleteItemInput (
930939 TableName := TableName,
931940 Key := map[HashName := records[i].item[HashName]],
0 commit comments