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: features/v2/rum_retention_filters.feature
+50Lines changed: 50 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,22 @@ Feature: Rum Retention Filters
70
70
And the response "data.attributes.query" is equal to "custom_query"
71
71
And the response "data.attributes.sample_rate" is equal to 25
72
72
73
+
@generated@skip@team:DataDog/rum-backend
74
+
Scenario: Get a permanent RUM retention filter returns "Not Found" response
75
+
Given new "GetPermanentRetentionFilter" request
76
+
And request contains "app_id" parameter from "REPLACE.ME"
77
+
And request contains "permanent_rf_id" parameter from "REPLACE.ME"
78
+
When the request is sent
79
+
Then the response status is 404 Not Found
80
+
81
+
@generated@skip@team:DataDog/rum-backend
82
+
Scenario: Get a permanent RUM retention filter returns "OK" response
83
+
Given new "GetPermanentRetentionFilter" request
84
+
And request contains "app_id" parameter from "REPLACE.ME"
85
+
And request contains "permanent_rf_id" parameter from "REPLACE.ME"
86
+
When the request is sent
87
+
Then the response status is 200 OK
88
+
73
89
@replay-only@team:DataDog/rum-backend
74
90
Scenario: Get all RUM retention filters returns "OK" response
75
91
Given new "ListRetentionFilters" request
@@ -78,6 +94,13 @@ Feature: Rum Retention Filters
78
94
Then the response status is 200 OK
79
95
And the response "data" has length 3
80
96
97
+
@generated@skip@team:DataDog/rum-backend
98
+
Scenario: Get all permanent RUM retention filters returns "OK" response
99
+
Given new "ListPermanentRetentionFilters" request
100
+
And request contains "app_id" parameter from "REPLACE.ME"
101
+
When the request is sent
102
+
Then the response status is 200 OK
103
+
81
104
@team:DataDog/rum-backend
82
105
Scenario: Order RUM retention filters returns "Bad Request" response
83
106
Given new "OrderRetentionFilters" request
@@ -130,3 +153,30 @@ Feature: Rum Retention Filters
130
153
And the response "data.attributes.enabled" is equal to true
131
154
And the response "data.attributes.query" is equal to "view_query"
132
155
And the response "data.attributes.sample_rate" is equal to 100
156
+
157
+
@generated@skip@team:DataDog/rum-backend
158
+
Scenario: Update a permanent RUM retention filter returns "Bad Request" response
159
+
Given new "UpdatePermanentRetentionFilter" request
160
+
And request contains "app_id" parameter from "REPLACE.ME"
161
+
And request contains "permanent_rf_id" parameter from "REPLACE.ME"
162
+
And body with value {"data": {"attributes": {"cross_product_sampling": {"trace_enabled": true, "trace_sample_rate": 25.0}}, "id": "synthetics_sessions", "type": "permanent_retention_filters"}}
163
+
When the request is sent
164
+
Then the response status is 400 Bad Request
165
+
166
+
@generated@skip@team:DataDog/rum-backend
167
+
Scenario: Update a permanent RUM retention filter returns "Not Found" response
168
+
Given new "UpdatePermanentRetentionFilter" request
169
+
And request contains "app_id" parameter from "REPLACE.ME"
170
+
And request contains "permanent_rf_id" parameter from "REPLACE.ME"
171
+
And body with value {"data": {"attributes": {"cross_product_sampling": {"trace_enabled": true, "trace_sample_rate": 25.0}}, "id": "synthetics_sessions", "type": "permanent_retention_filters"}}
172
+
When the request is sent
173
+
Then the response status is 404 Not Found
174
+
175
+
@generated@skip@team:DataDog/rum-backend
176
+
Scenario: Update a permanent RUM retention filter returns "Updated" response
177
+
Given new "UpdatePermanentRetentionFilter" request
178
+
And request contains "app_id" parameter from "REPLACE.ME"
179
+
And request contains "permanent_rf_id" parameter from "REPLACE.ME"
180
+
And body with value {"data": {"attributes": {"cross_product_sampling": {"trace_enabled": true, "trace_sample_rate": 25.0}}, "id": "synthetics_sessions", "type": "permanent_retention_filters"}}
0 commit comments