Skip to content

Commit

Permalink
Document force_delete_dependencies for synthetics test deletion (#1668
Browse files Browse the repository at this point in the history
)

Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jul 2, 2024
1 parent 84500a9 commit 74554a1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-02 18:17:50.120632",
"spec_repo_commit": "464f0cec"
"regenerated": "2024-07-02 18:50:24.822584",
"spec_repo_commit": "fae9d797"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-02 18:17:50.138246",
"spec_repo_commit": "464f0cec"
"regenerated": "2024-07-02 18:50:24.840415",
"spec_repo_commit": "fae9d797"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14944,6 +14944,13 @@ components:

to delete.'
properties:
force_delete_dependencies:
description: 'Delete the Synthetic test even if it''s referenced by other
resources

(for example, SLOs and composite monitors).'
example: false
type: boolean
public_ids:
description: An array of Synthetic test IDs you want to delete.
example: []
Expand Down
4 changes: 2 additions & 2 deletions features/v1/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,14 @@ Feature: Synthetics
@generated @skip @team:DataDog/synthetics-ct
Scenario: Delete tests returns "- JSON format is wrong" response
Given new "DeleteTests" request
And body with value {"public_ids": []}
And body with value {"force_delete_dependencies": false, "public_ids": []}
When the request is sent
Then the response status is 400 - JSON format is wrong

@generated @skip @team:DataDog/synthetics-ct
Scenario: Delete tests returns "- Tests to be deleted can't be found" response
Given new "DeleteTests" request
And body with value {"public_ids": []}
And body with value {"force_delete_dependencies": false, "public_ids": []}
When the request is sent
Then the response status is 404 - Tests to be deleted can't be found

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
* to delete.
*/
export class SyntheticsDeleteTestsPayload {
/**
* Delete the Synthetic test even if it's referenced by other resources
* (for example, SLOs and composite monitors).
*/
"forceDeleteDependencies"?: boolean;
/**
* An array of Synthetic test IDs you want to delete.
*/
Expand All @@ -32,6 +37,10 @@ export class SyntheticsDeleteTestsPayload {
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
forceDeleteDependencies: {
baseName: "force_delete_dependencies",
type: "boolean",
},
publicIds: {
baseName: "public_ids",
type: "Array<string>",
Expand Down

0 comments on commit 74554a1

Please sign in to comment.