-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdora_metrics.feature
More file actions
164 lines (142 loc) · 9.64 KB
/
dora_metrics.feature
File metadata and controls
164 lines (142 loc) · 9.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
@endpoint(dora-metrics) @endpoint(dora-metrics-v2)
Feature: DORA Metrics
Search, send, or delete events for DORA Metrics to measure and improve
your software delivery performance. See the [DORA Metrics
page](https://docs.datadoghq.com/dora_metrics/) for more information.
**Note**: DORA Metrics are not available in the US1-FED site.
Background:
Given a valid "apiKeyAuth" key in the system
And an instance of "DORAMetrics" API
@skip @team:DataDog/ci-app-backend
Scenario: Delete a deployment event returns "Accepted" response
Given new "DeleteDORADeployment" request
And a valid "appKeyAuth" key in the system
And request contains "deployment_id" parameter with value "NO_VALUE"
When the request is sent
Then the response status is 202 Accepted
@skip @team:DataDog/ci-app-backend
Scenario: Delete a deployment event returns "Bad Request" response
Given new "DeleteDORADeployment" request
And request contains "deployment_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@skip @team:DataDog/ci-app-backend
Scenario: Delete a failure event returns "Accepted" response
Given new "DeleteDORAFailure" request
And a valid "appKeyAuth" key in the system
And request contains "failure_id" parameter with value "NO_VALUE"
When the request is sent
Then the response status is 202 Accepted
@skip @team:DataDog/ci-app-backend
Scenario: Delete a failure event returns "Bad Request" response
Given new "DeleteDORAFailure" request
And a valid "appKeyAuth" key in the system
And request contains "failure_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/ci-app-backend
Scenario: Get a deployment event returns "Bad Request" response
Given new "GetDORADeployment" request
And request contains "deployment_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/ci-app-backend
Scenario: Get a deployment event returns "OK" response
Given new "GetDORADeployment" request
And request contains "deployment_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/ci-app-backend
Scenario: Get a failure event returns "Bad Request" response
Given new "GetDORAFailure" request
And request contains "failure_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/ci-app-backend
Scenario: Get a failure event returns "OK" response
Given new "GetDORAFailure" request
And request contains "failure_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@team:DataDog/ci-app-backend
Scenario: Get a list of deployment events returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
And new "ListDORADeployments" request
And body with value {"data": {"attributes": {"limit": 10}}}
When the request is sent
Then the response status is 400 Bad Request
@skip @team:DataDog/ci-app-backend
Scenario: Get a list of deployment events returns "OK" response
Given a valid "appKeyAuth" key in the system
And new "ListDORADeployments" request
And body with value {"data": {"attributes": {"from": "2025-03-23T00:00:00Z", "limit": 1, "to": "2025-03-24T00:00:00Z"}, "type": "dora_deployments_list_request"}}
When the request is sent
Then the response status is 200 OK
@team:DataDog/ci-app-backend
Scenario: Get a list of failure events returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
And new "ListDORAFailures" request
And body with value {"data": {"attributes": {"limit": 10}}}
When the request is sent
Then the response status is 400 Bad Request
@skip @team:DataDog/ci-app-backend
Scenario: Get a list of failure events returns "OK" response
Given a valid "appKeyAuth" key in the system
And new "ListDORAFailures" request
And body with value {"data": {"attributes": {"from": "2025-03-23T00:00:00Z", "limit": 1, "to": "2025-03-24T00:00:00Z"}, "type": "dora_failures_list_request"}}
When the request is sent
Then the response status is 200 OK
@skip @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "Bad Request" response
Given new "CreateDORADeployment" request
And body with value {"data": {"attributes": {}}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response
Given new "CreateDORADeployment" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident
@replay-only @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "OK" response
Given new "CreateDORADeployment" request
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
When the request is sent
Then the response status is 200 OK
@skip @team:DataDog/ci-app-backend
Scenario: Send a failure event for DORA Metrics returns "Bad Request" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {}}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send a failure event for DORA Metrics returns "OK - but delayed due to incident" response
Given new "CreateDORAFailure" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident
@replay-only @team:DataDog/ci-app-backend
Scenario: Send a failure event for DORA Metrics returns "OK" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"finished_at": 1707842944600000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests", "services": ["shopist"], "severity": "High", "started_at": 1707842944500000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "Bad Request" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "OK" response
Given new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 200 OK