Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162029,7 +162029,7 @@ paths:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ: []
summary: Patch a deployment event
summary: Mark a deployment as failed by ID
tags: ["DORA Metrics"]
x-codegen-request-body-name: body
x-permission:
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/dora-metrics/PatchDORADeployment.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Patch a deployment event returns "Accepted" response
// Mark a deployment as failed by ID returns "Accepted" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@ public CompletableFuture<ApiResponse<DORAFailuresListResponse>> listDORAFailures
}

/**
* Patch a deployment event.
* Mark a deployment as failed by ID.
*
* <p>See {@link #patchDORADeploymentWithHttpInfo}.
*
Expand All @@ -1299,7 +1299,7 @@ public void patchDORADeployment(String deploymentId, DORADeploymentPatchRequest
}

/**
* Patch a deployment event.
* Mark a deployment as failed by ID.
*
* <p>See {@link #patchDORADeploymentWithHttpInfoAsync}.
*
Expand Down Expand Up @@ -1379,7 +1379,7 @@ public ApiResponse<Void> patchDORADeploymentWithHttpInfo(
}

/**
* Patch a deployment event.
* Mark a deployment as failed by ID.
*
* <p>See {@link #patchDORADeploymentWithHttpInfo}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,24 @@ Feature: DORA Metrics
When the request is sent
Then the response status is 200 OK

@generated @skip @team:ddoghq/ci-app-backend
Scenario: Mark a deployment as failed by ID returns "Accepted" response
Given a valid "appKeyAuth" key in the system
And new "PatchDORADeployment" request
And request contains "deployment_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"change_failure": true, "remediation": {"id": "eG42zNIkVjM", "type": "rollback"}}, "id": "z_RwVLi7v4Y", "type": "dora_deployment_patch_request"}}
When the request is sent
Then the response status is 202 Accepted

@generated @skip @team:ddoghq/ci-app-backend
Scenario: Mark a deployment as failed by ID returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
And new "PatchDORADeployment" request
And request contains "deployment_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"change_failure": true, "remediation": {"id": "eG42zNIkVjM", "type": "rollback"}}, "id": "z_RwVLi7v4Y", "type": "dora_deployment_patch_request"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:ddoghq/ci-app-backend
Scenario: Mark a deployment as failed by version returns "Accepted" response
Given a valid "appKeyAuth" key in the system
Expand All @@ -172,24 +190,6 @@ Feature: DORA Metrics
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:ddoghq/ci-app-backend
Scenario: Patch a deployment event returns "Accepted" response
Given a valid "appKeyAuth" key in the system
And new "PatchDORADeployment" request
And request contains "deployment_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"change_failure": true, "remediation": {"id": "eG42zNIkVjM", "type": "rollback"}}, "id": "z_RwVLi7v4Y", "type": "dora_deployment_patch_request"}}
When the request is sent
Then the response status is 202 Accepted

@generated @skip @team:ddoghq/ci-app-backend
Scenario: Patch a deployment event returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
And new "PatchDORADeployment" request
And request contains "deployment_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"change_failure": true, "remediation": {"id": "eG42zNIkVjM", "type": "rollback"}}, "id": "z_RwVLi7v4Y", "type": "dora_deployment_patch_request"}}
When the request is sent
Then the response status is 400 Bad Request

@skip @team:ddoghq/ci-app-backend
Scenario: Send a deployment event returns "Bad Request" response
Given new "CreateDORADeployment" request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
}
}
],
"scenario": "Patch a deployment event returns \"Accepted\" response",
"scenario": "Mark a deployment as failed by ID returns \"Accepted\" response",
"version": "v2"
},
{
Expand Down Expand Up @@ -351,7 +351,7 @@
}
}
],
"scenario": "Patch a deployment event returns \"Bad Request\" response",
"scenario": "Mark a deployment as failed by ID returns \"Bad Request\" response",
"version": "v2"
},
{
Expand Down
Loading