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
Inline rule definitions for a deployment gate evaluation. When provided, rules are evaluated
30041
+
directly from this configuration instead of using the preconfigured gate rules.
30042
+
At least one rule is required.
30043
+
properties:
30044
+
dry_run:
30045
+
description: Gate-level dry run. When enabled, the rules are evaluated normally but the gate always returns `pass`. The real result is visible in the Datadog UI.
30046
+
example: false
30047
+
type: boolean
30048
+
rules:
30049
+
description: The list of rules to evaluate. At least one rule is required.
description: A faulty deployment detection rule to evaluate as part of a deployment gate evaluation.
30254
+
properties:
30255
+
dry_run:
30256
+
description: Rule-level dry run. When enabled, the rule is evaluated normally but it always returns `pass`. The real result is visible in the Datadog UI.
Copy file name to clipboardExpand all lines: features/v2/deployment_gates.feature
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -286,23 +286,23 @@ Feature: Deployment Gates
286
286
Scenario: Trigger a deployment gate evaluation returns "Accepted" response
287
287
Given operation "TriggerDeploymentGatesEvaluation" enabled
288
288
And new "TriggerDeploymentGatesEvaluation" request
289
-
And body with value {"data": {"attributes": {"env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
289
+
And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
290
290
When the request is sent
291
291
Then the response status is 202 Accepted
292
292
293
293
@generated@skip@team:DataDog/ci-app-backend
294
294
Scenario: Trigger a deployment gate evaluation returns "Bad request." response
295
295
Given operation "TriggerDeploymentGatesEvaluation" enabled
296
296
And new "TriggerDeploymentGatesEvaluation" request
297
-
And body with value {"data": {"attributes": {"env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
297
+
And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
298
298
When the request is sent
299
299
Then the response status is 400 Bad request.
300
300
301
301
@generated@skip@team:DataDog/ci-app-backend
302
302
Scenario: Trigger a deployment gate evaluation returns "Deployment gate not found." response
303
303
Given operation "TriggerDeploymentGatesEvaluation" enabled
304
304
And new "TriggerDeploymentGatesEvaluation" request
305
-
And body with value {"data": {"attributes": {"env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
305
+
And body with value {"data": {"attributes": {"configuration": {"dry_run": false, "rules": [{"dry_run": false, "name": "error rate monitors", "options": {"duration": 300, "query": "service:transaction-backend env:production"}, "type": "monitor"}]}, "env": "staging", "identifier": "pre-deploy", "primary_tag": "region:us-east-1", "service": "transaction-backend", "version": "v1.2.3"}, "type": "deployment_gates_evaluation_request"}}
306
306
When the request is sent
307
307
Then the response status is 404 Deployment gate not found.
0 commit comments