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: tests/v2/features/metrics.feature
+52-28Lines changed: 52 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Feature: Metrics
13
13
Given a valid "apiKeyAuth" key in the system
14
14
And an instance of "Metrics" API
15
15
16
-
@skip-typescript@team:DataDog/points-aggregation
16
+
@skip-typescript@team:DataDog/metrics-experience
17
17
Scenario: Configure tags for multiple metrics returns "Accepted" response
18
18
Given a valid "appKeyAuth" key in the system
19
19
And there is a valid "user" in the system
@@ -22,23 +22,23 @@ Feature: Metrics
22
22
When the request is sent
23
23
Then the response status is 202 Accepted
24
24
25
-
@generated@skip@team:DataDog/points-aggregation
25
+
@generated@skip@team:DataDog/metrics-experience
26
26
Scenario: Configure tags for multiple metrics returns "Bad Request" response
27
27
Given a valid "appKeyAuth" key in the system
28
28
And new "CreateBulkTagsMetricsConfiguration" request
29
29
And body with value {"data": {"attributes": {"emails": ["[email protected]", "[email protected]"], "tags": ["host", "pod_name", "is_shadow"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}}
30
30
When the request is sent
31
31
Then the response status is 400 Bad Request
32
32
33
-
@generated@skip@team:DataDog/points-aggregation
33
+
@generated@skip@team:DataDog/metrics-experience
34
34
Scenario: Configure tags for multiple metrics returns "Not Found" response
35
35
Given a valid "appKeyAuth" key in the system
36
36
And new "CreateBulkTagsMetricsConfiguration" request
37
37
And body with value {"data": {"attributes": {"emails": ["[email protected]", "[email protected]"], "tags": ["host", "pod_name", "is_shadow"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}}
38
38
When the request is sent
39
39
Then the response status is 404 Not Found
40
40
41
-
@generated@skip@team:DataDog/points-aggregation
41
+
@generated@skip@team:DataDog/metrics-experience
42
42
Scenario: Create a tag configuration returns "Bad Request" response
43
43
Given a valid "appKeyAuth" key in the system
44
44
And new "CreateTagConfiguration" request
@@ -47,7 +47,7 @@ Feature: Metrics
47
47
When the request is sent
48
48
Then the response status is 400 Bad Request
49
49
50
-
@generated@skip@team:DataDog/points-aggregation
50
+
@generated@skip@team:DataDog/metrics-experience
51
51
Scenario: Create a tag configuration returns "Conflict" response
Scenario: Delete a tag configuration returns "No Content" response
71
71
Given there is a valid "metric" in the system
72
72
And there is a valid "metric_tag_configuration" in the system
@@ -76,30 +76,54 @@ Feature: Metrics
76
76
When the request is sent
77
77
Then the response status is 204 No Content
78
78
79
-
@generated@skip@team:DataDog/points-aggregation
79
+
@generated@skip@team:DataDog/metrics-experience
80
80
Scenario: Delete a tag configuration returns "Not found" response
81
81
Given a valid "appKeyAuth" key in the system
82
82
And new "DeleteTagConfiguration" request
83
83
And request contains "metric_name" parameter from "REPLACE.ME"
84
84
When the request is sent
85
85
Then the response status is 404 Not found
86
86
87
-
@generated@skip@team:DataDog/points-aggregation
87
+
@generated@skip@team:DataDog/metrics-experience
88
+
Scenario: Delete tags for multiple metrics returns "Accepted" response
89
+
Given a valid "appKeyAuth" key in the system
90
+
And new "DeleteBulkTagsMetricsConfiguration" request
91
+
And body with value {"data": {"attributes": {"emails": ["[email protected]", "[email protected]"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}}
92
+
When the request is sent
93
+
Then the response status is 202 Accepted
94
+
95
+
@generated@skip@team:DataDog/metrics-experience
96
+
Scenario: Delete tags for multiple metrics returns "Bad Request" response
97
+
Given a valid "appKeyAuth" key in the system
98
+
And new "DeleteBulkTagsMetricsConfiguration" request
99
+
And body with value {"data": {"attributes": {"emails": ["[email protected]", "[email protected]"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}}
100
+
When the request is sent
101
+
Then the response status is 400 Bad Request
102
+
103
+
@generated@skip@team:DataDog/metrics-experience
104
+
Scenario: Delete tags for multiple metrics returns "Not Found" response
105
+
Given a valid "appKeyAuth" key in the system
106
+
And new "DeleteBulkTagsMetricsConfiguration" request
107
+
And body with value {"data": {"attributes": {"emails": ["[email protected]", "[email protected]"]}, "id": "kafka.lag", "type": "metric_bulk_configure_tags"}}
108
+
When the request is sent
109
+
Then the response status is 404 Not Found
110
+
111
+
@generated@skip@team:DataDog/metrics-experience
88
112
Scenario: Get a list of metrics returns "Bad Request" response
89
113
Given a valid "appKeyAuth" key in the system
90
114
And new "ListTagConfigurations" request
91
115
When the request is sent
92
116
Then the response status is 400 Bad Request
93
117
94
-
@skip@team:DataDog/points-aggregation
118
+
@skip@team:DataDog/metrics-experience
95
119
Scenario: Get a list of metrics returns "Success" response
96
120
Given a valid "appKeyAuth" key in the system
97
121
And there is a valid "metric_tag_configuration" in the system
98
122
And new "ListTagConfigurations" request
99
123
When the request is sent
100
124
Then the response status is 200 Success
101
125
102
-
@team:DataDog/points-aggregation
126
+
@team:DataDog/metrics-experience
103
127
Scenario: Get a list of metrics with a tag filter returns "Success" response
104
128
Given a valid "appKeyAuth" key in the system
105
129
And new "ListTagConfigurations" request
@@ -108,7 +132,7 @@ Feature: Metrics
108
132
Then the response status is 200 Success
109
133
And the response "data" has length 0
110
134
111
-
@team:DataDog/points-aggregation
135
+
@team:DataDog/metrics-experience
112
136
Scenario: Get a list of metrics with configured filter returns "Success" response
113
137
Given a valid "appKeyAuth" key in the system
114
138
And new "ListTagConfigurations" request
@@ -117,23 +141,23 @@ Feature: Metrics
117
141
Then the response status is 200 Success
118
142
And the response "data[0].type" is equal to "manage_tags"
119
143
120
-
@generated@skip@team:DataDog/points-aggregation
144
+
@generated@skip@team:DataDog/metrics-experience
121
145
Scenario: List active tags and aggregations returns "Bad Request" response
122
146
Given a valid "appKeyAuth" key in the system
123
147
And new "ListActiveMetricConfigurations" request
124
148
And request contains "metric_name" parameter from "REPLACE.ME"
125
149
When the request is sent
126
150
Then the response status is 400 Bad Request
127
151
128
-
@generated@skip@team:DataDog/points-aggregation
152
+
@generated@skip@team:DataDog/metrics-experience
129
153
Scenario: List active tags and aggregations returns "Not Found" response
130
154
Given a valid "appKeyAuth" key in the system
131
155
And new "ListActiveMetricConfigurations" request
132
156
And request contains "metric_name" parameter from "REPLACE.ME"
133
157
When the request is sent
134
158
Then the response status is 404 Not Found
135
159
136
-
@skip-validation@team:DataDog/points-aggregation
160
+
@skip-validation@team:DataDog/metrics-experience
137
161
Scenario: List active tags and aggregations returns "Success" response
138
162
Given a valid "appKeyAuth" key in the system
139
163
And there is a valid "metric" in the system
@@ -143,23 +167,23 @@ Feature: Metrics
143
167
Then the response status is 200 Success
144
168
And the response "data.type" is equal to "actively_queried_configurations"
145
169
146
-
@generated@skip@team:DataDog/points-aggregation
170
+
@generated@skip@team:DataDog/metrics-experience
147
171
Scenario: List distinct metric volumes by metric name returns "Bad Request" response
148
172
Given a valid "appKeyAuth" key in the system
149
173
And new "ListVolumesByMetricName" request
150
174
And request contains "metric_name" parameter from "REPLACE.ME"
151
175
When the request is sent
152
176
Then the response status is 400 Bad Request
153
177
154
-
@generated@skip@team:DataDog/points-aggregation
178
+
@generated@skip@team:DataDog/metrics-experience
155
179
Scenario: List distinct metric volumes by metric name returns "Not Found" response
156
180
Given a valid "appKeyAuth" key in the system
157
181
And new "ListVolumesByMetricName" request
158
182
And request contains "metric_name" parameter from "REPLACE.ME"
159
183
When the request is sent
160
184
Then the response status is 404 Not Found
161
185
162
-
@skip-validation@team:DataDog/points-aggregation
186
+
@skip-validation@team:DataDog/metrics-experience
163
187
Scenario: List distinct metric volumes by metric name returns "Success" response
164
188
Given a valid "appKeyAuth" key in the system
165
189
And there is a valid "metric" in the system
@@ -170,15 +194,15 @@ Feature: Metrics
170
194
Then the response status is 200 Success
171
195
And the response "data.type" is equal to "metric_volumes"
172
196
173
-
@generated@skip@team:DataDog/points-aggregation
197
+
@generated@skip@team:DataDog/metrics-experience
174
198
Scenario: List tag configuration by name returns "Not Found" response
175
199
Given a valid "appKeyAuth" key in the system
176
200
And new "ListTagConfigurationByName" request
177
201
And request contains "metric_name" parameter from "REPLACE.ME"
0 commit comments