You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/test/resources/cassettes/features/v2/Creates_a_data_deletion_request_returns_Precondition_failed_error_response.json
Copy file name to clipboardexpand all lines: src/test/resources/com/datadog/api/client/v2/api/data_deletion.feature
+3-3
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Feature: Data Deletion
43
43
Given operation "CreateDataDeletionRequest" enabled
44
44
And new "CreateDataDeletionRequest" request
45
45
And request contains "product" parameter from "REPLACE.ME"
46
-
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}}
46
+
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}, "type": "create_deletion_req"}}
47
47
When the request is sent
48
48
Then the response status is 400 Bad Request
49
49
@@ -52,7 +52,7 @@ Feature: Data Deletion
52
52
Given operation "CreateDataDeletionRequest" enabled
53
53
And new "CreateDataDeletionRequest" request
54
54
And request contains "product" parameter with value "logs"
55
-
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}}}
55
+
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {"host": "abc", "service": "xyz"}, "to": 1704063600000}, "type": "create_deletion_req"}}
56
56
When the request is sent
57
57
Then the response status is 200 OK
58
58
And the response "data.type" is equal to "deletion_request"
@@ -64,7 +64,7 @@ Feature: Data Deletion
64
64
Given operation "CreateDataDeletionRequest" enabled
65
65
And new "CreateDataDeletionRequest" request
66
66
And request contains "product" parameter with value "logs"
67
-
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {}, "to": 1704063600000}}}
67
+
And body with value {"data": {"attributes": {"from": 1672527600000, "indexes": ["test-index", "test-index-2"], "query": {}, "to": 1704063600000}, "type": "create_deletion_req"}}
68
68
When the request is sent
69
69
Then the response status is 412 Precondition failed error
0 commit comments