@@ -846,12 +846,7 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
846
846
847
847
// Update each record by appending "-updated" to the partition key
848
848
for i := 0 to |records| {
849
- // Get the current value of the partition key
850
- var currentValue;
851
- currentValue := records[i]. item[HashName]. N;
852
-
853
- // Append "-updated" to the current value
854
- var newValue := currentValue + "- updated";
849
+ var newValue := "updated";
855
850
856
851
// Create an update expression to update the partition key
857
852
var updateExpr := "SET #pk = :val";
@@ -885,18 +880,18 @@ module {:options "-functionSyntax:4"} DdbEncryptionTestVectors {
885
880
method BasicIoTestDeleteItem (writeConfig : TableConfig , readConfig : TableConfig , records : seq <Record >)
886
881
{
887
882
var wClient :- expect newGazelle (writeConfig);
883
+ print (writeConfig. config. attributeActionsOnEncrypt);
888
884
var rClient :- expect newGazelle (readConfig);
889
885
DeleteTable (wClient);
890
886
WriteAllRecords (wClient, records);
891
887
892
888
// Try to delete records with a condition expression with condition to
893
- // delete records if the record has an attribute "randomAttribute" with value "random"
894
- // These are random attribute and value because we conditional expression should fail before going into dynamodb.
889
+ // delete records if the record has an attribute "Two" with value "Dos"
895
890
for i := 0 to |records| {
896
- // Set up condition expression to only delete if randomAttribute = "random "
891
+ // Set up condition expression to only delete if Two = "Dos "
897
892
var conditionExpr := "#attr = :val";
898
- var exprAttrNames := map ["#attr" := "randomAttribute "];
899
- var exprAttrValues := map [":val" := DDB. AttributeValue. S ("random ")];
893
+ var exprAttrNames := map ["#attr" := "Two "];
894
+ var exprAttrValues := map [":val" := DDB. AttributeValue. S ("Dos ")];
900
895
901
896
var deleteInput := DDB. DeleteItemInput (
902
897
TableName := TableName,
0 commit comments