Skip to content

Commit 4300c27

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d7066de of spec repo
1 parent d2f5513 commit 4300c27

28 files changed

+2286
-40
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 440 additions & 0 deletions
Large diffs are not rendered by default.

features/v2/synthetics.feature

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,73 @@ Feature: Synthetics
2727
When the request is sent
2828
Then the response status is 200 OK
2929
And the response "data.attributes.on_demand_concurrency_cap" is equal to 20
30+
31+
@generated @skip @team:DataDog/synthetics-managing
32+
Scenario: Search Synthetics suites returns "API error response." response
33+
Given new "SearchSuites" request
34+
When the request is sent
35+
Then the response status is 400 API error response.
36+
37+
@team:DataDog/synthetics-managing
38+
Scenario: Search Synthetics suites returns "OK" response
39+
Given new "SearchSuites" request
40+
When the request is sent
41+
Then the response status is 200 OK
42+
43+
@generated @skip @team:DataDog/synthetics-managing
44+
Scenario: Synthetics: Bulk delete suites returns "API error response." response
45+
Given new "DeleteSyntheticsSuites" request
46+
And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}}
47+
When the request is sent
48+
Then the response status is 400 API error response.
49+
50+
@generated @skip @team:DataDog/synthetics-managing
51+
Scenario: Synthetics: Bulk delete suites returns "OK" response
52+
Given new "DeleteSyntheticsSuites" request
53+
And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}}
54+
When the request is sent
55+
Then the response status is 200 OK
56+
57+
@generated @skip @team:DataDog/synthetics-managing
58+
Scenario: Synthetics: Create a test suite returns "API error response." response
59+
Given new "CreateSyntheticsSuite" request
60+
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suite"}}
61+
When the request is sent
62+
Then the response status is 400 API error response.
63+
64+
@team:DataDog/synthetics-managing
65+
Scenario: Synthetics: Create a test suite returns "OK" response
66+
Given new "CreateSyntheticsSuite" request
67+
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [], "type": "suite"}, "type": "suite"}}
68+
When the request is sent
69+
Then the response status is 200 OK
70+
71+
@generated @skip @team:DataDog/synthetics-managing
72+
Scenario: Synthetics: Get a suite returns "API error response." response
73+
Given new "GetSyntheticsSuite" request
74+
And request contains "public_id" parameter from "REPLACE.ME"
75+
When the request is sent
76+
Then the response status is 404 API error response.
77+
78+
@generated @skip @team:DataDog/synthetics-managing
79+
Scenario: Synthetics: Get a suite returns "OK" response
80+
Given new "GetSyntheticsSuite" request
81+
And request contains "public_id" parameter from "REPLACE.ME"
82+
When the request is sent
83+
Then the response status is 200 OK
84+
85+
@generated @skip @team:DataDog/synthetics-managing
86+
Scenario: Synthetics: edit a test suite returns "API error response." response
87+
Given new "EditSyntheticsSuite" request
88+
And request contains "public_id" parameter from "REPLACE.ME"
89+
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suite"}}
90+
When the request is sent
91+
Then the response status is 400 API error response.
92+
93+
@generated @skip @team:DataDog/synthetics-managing
94+
Scenario: Synthetics: edit a test suite returns "OK" response
95+
Given new "EditSyntheticsSuite" request
96+
And request contains "public_id" parameter from "REPLACE.ME"
97+
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "options": {}, "tags": ["env:production"], "tests": [{"alerting_criticality": "critical", "public_id": ""}], "type": "suite"}, "type": "suite"}}
98+
When the request is sent
99+
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4401,6 +4401,43 @@
44014401
"type": "safe"
44024402
}
44034403
},
4404+
"CreateSyntheticsSuite": {
4405+
"tag": "Synthetics",
4406+
"undo": {
4407+
"operationId": "DeleteSyntheticsSuites",
4408+
"parameters": [
4409+
{
4410+
"name": "body",
4411+
"template": "{\"data\": {\"type\": \"delete_suites_request\", \"attributes\": {\"public_ids\": [\"{{ public_id }}\"]}}"
4412+
}
4413+
],
4414+
"type": "unsafe"
4415+
}
4416+
},
4417+
"DeleteSyntheticsSuites": {
4418+
"tag": "Synthetics",
4419+
"undo": {
4420+
"type": "idempotent"
4421+
}
4422+
},
4423+
"SearchSuites": {
4424+
"tag": "Synthetics",
4425+
"undo": {
4426+
"type": "safe"
4427+
}
4428+
},
4429+
"GetSyntheticsSuite": {
4430+
"tag": "Synthetics",
4431+
"undo": {
4432+
"type": "safe"
4433+
}
4434+
},
4435+
"EditSyntheticsSuite": {
4436+
"tag": "Synthetics",
4437+
"undo": {
4438+
"type": "idempotent"
4439+
}
4440+
},
44044441
"ListTagPipelinesRulesets": {
44054442
"tag": "Cloud Cost Management",
44064443
"undo": {

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8879,6 +8879,61 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
88798879
},
88808880
operationResponseType: "OnDemandConcurrencyCapResponse",
88818881
},
8882+
"SyntheticsApi.V2.CreateSyntheticsSuite": {
8883+
body: {
8884+
type: "SuiteCreateEditRequest",
8885+
format: "",
8886+
},
8887+
operationResponseType: "SyntheticsSuiteResponse",
8888+
},
8889+
"SyntheticsApi.V2.DeleteSyntheticsSuites": {
8890+
body: {
8891+
type: "DeletedSuitesRequestDeleteRequest",
8892+
format: "",
8893+
},
8894+
operationResponseType: "DeletedSuitesResponse",
8895+
},
8896+
"SyntheticsApi.V2.SearchSuites": {
8897+
query: {
8898+
type: "string",
8899+
format: "",
8900+
},
8901+
sort: {
8902+
type: "string",
8903+
format: "",
8904+
},
8905+
facetsOnly: {
8906+
type: "boolean",
8907+
format: "",
8908+
},
8909+
start: {
8910+
type: "number",
8911+
format: "int64",
8912+
},
8913+
count: {
8914+
type: "number",
8915+
format: "int64",
8916+
},
8917+
operationResponseType: "SyntheticsSuiteSearchResponse",
8918+
},
8919+
"SyntheticsApi.V2.GetSyntheticsSuite": {
8920+
publicId: {
8921+
type: "string",
8922+
format: "",
8923+
},
8924+
operationResponseType: "SyntheticsSuiteResponse",
8925+
},
8926+
"SyntheticsApi.V2.EditSyntheticsSuite": {
8927+
publicId: {
8928+
type: "string",
8929+
format: "",
8930+
},
8931+
body: {
8932+
type: "SuiteCreateEditRequest",
8933+
format: "",
8934+
},
8935+
operationResponseType: "SyntheticsSuiteResponse",
8936+
},
88828937
"TeamsApi.V2.ListTeams": {
88838938
pageNumber: {
88848939
type: "number",

0 commit comments

Comments
 (0)