Skip to content

Commit ce03095

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 19ebc26 of spec repo
1 parent af7c397 commit ce03095

28 files changed

+2294
-40
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 441 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": "suites"}}
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": "suites"}}
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": "suites"}}
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": "suites"}}
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
@@ -4469,6 +4469,43 @@
44694469
"type": "safe"
44704470
}
44714471
},
4472+
"CreateSyntheticsSuite": {
4473+
"tag": "Synthetics",
4474+
"undo": {
4475+
"operationId": "DeleteSyntheticsSuites",
4476+
"parameters": [
4477+
{
4478+
"name": "body",
4479+
"template": "{\"data\": {\"type\": \"delete_suites_request\", \"attributes\": {\"public_ids\": [\"{{ data.attributes.public_id }}\"]}}"
4480+
}
4481+
],
4482+
"type": "unsafe"
4483+
}
4484+
},
4485+
"DeleteSyntheticsSuites": {
4486+
"tag": "Synthetics",
4487+
"undo": {
4488+
"type": "idempotent"
4489+
}
4490+
},
4491+
"SearchSuites": {
4492+
"tag": "Synthetics",
4493+
"undo": {
4494+
"type": "safe"
4495+
}
4496+
},
4497+
"GetSyntheticsSuite": {
4498+
"tag": "Synthetics",
4499+
"undo": {
4500+
"type": "safe"
4501+
}
4502+
},
4503+
"EditSyntheticsSuite": {
4504+
"tag": "Synthetics",
4505+
"undo": {
4506+
"type": "idempotent"
4507+
}
4508+
},
44724509
"ListTagPipelinesRulesets": {
44734510
"tag": "Cloud Cost Management",
44744511
"undo": {

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9016,6 +9016,61 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
90169016
},
90179017
operationResponseType: "OnDemandConcurrencyCapResponse",
90189018
},
9019+
"SyntheticsApi.V2.CreateSyntheticsSuite": {
9020+
body: {
9021+
type: "SuiteCreateEditRequest",
9022+
format: "",
9023+
},
9024+
operationResponseType: "SyntheticsSuiteResponse",
9025+
},
9026+
"SyntheticsApi.V2.DeleteSyntheticsSuites": {
9027+
body: {
9028+
type: "DeletedSuitesRequestDeleteRequest",
9029+
format: "",
9030+
},
9031+
operationResponseType: "DeletedSuitesResponse",
9032+
},
9033+
"SyntheticsApi.V2.SearchSuites": {
9034+
query: {
9035+
type: "string",
9036+
format: "",
9037+
},
9038+
sort: {
9039+
type: "string",
9040+
format: "",
9041+
},
9042+
facetsOnly: {
9043+
type: "boolean",
9044+
format: "",
9045+
},
9046+
start: {
9047+
type: "number",
9048+
format: "int64",
9049+
},
9050+
count: {
9051+
type: "number",
9052+
format: "int64",
9053+
},
9054+
operationResponseType: "SyntheticsSuiteSearchResponse",
9055+
},
9056+
"SyntheticsApi.V2.GetSyntheticsSuite": {
9057+
publicId: {
9058+
type: "string",
9059+
format: "",
9060+
},
9061+
operationResponseType: "SyntheticsSuiteResponse",
9062+
},
9063+
"SyntheticsApi.V2.EditSyntheticsSuite": {
9064+
publicId: {
9065+
type: "string",
9066+
format: "",
9067+
},
9068+
body: {
9069+
type: "SuiteCreateEditRequest",
9070+
format: "",
9071+
},
9072+
operationResponseType: "SyntheticsSuiteResponse",
9073+
},
90199074
"TeamsApi.V2.ListTeams": {
90209075
pageNumber: {
90219076
type: "number",

0 commit comments

Comments
 (0)