Skip to content
Open
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
415 changes: 415 additions & 0 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions features/v2/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,73 @@ Feature: Synthetics
When the request is sent
Then the response status is 200 OK
And the response "data.attributes.on_demand_concurrency_cap" is equal to 20

@generated @skip @team:DataDog/synthetics-managing
Scenario: Search Synthetics suites returns "API error response." response
Given new "SearchSuites" request
When the request is sent
Then the response status is 400 API error response.

@generated @skip @team:DataDog/synthetics-managing
Scenario: Search Synthetics suites returns "OK" response
Given new "SearchSuites" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/synthetics-managing
Scenario: Synthetics: Bulk delete suites returns "API error response." response
Given new "DeleteSyntheticsSuites" request
And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}}
When the request is sent
Then the response status is 400 API error response.

@generated @skip @team:DataDog/synthetics-managing
Scenario: Synthetics: Bulk delete suites returns "OK" response
Given new "DeleteSyntheticsSuites" request
And body with value {"data": {"attributes": {"public_ids": [""]}, "type": "delete_suites_request"}}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/synthetics-managing
Scenario: Synthetics: Create a test suite returns "API error response." response
Given new "CreateSyntheticsSuite" request
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "tags": ["env:production"], "tests": [{"public_id": ""}], "type": "suite"}, "type": "suite"}}
When the request is sent
Then the response status is 400 API error response.

@generated @skip @team:DataDog/synthetics-managing
Scenario: Synthetics: Create a test suite returns "OK" response
Given new "CreateSyntheticsSuite" request
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "tags": ["env:production"], "tests": [{"public_id": ""}], "type": "suite"}, "type": "suite"}}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/synthetics-managing
Scenario: Synthetics: Get a suite returns "API error response." response
Given new "GetSyntheticsSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 API error response.

@generated @skip @team:DataDog/synthetics-managing
Scenario: Synthetics: Get a suite returns "OK" response
Given new "GetSyntheticsSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/synthetics-managing
Scenario: Synthetics: edit a test suite returns "API error response." response
Given new "EditSyntheticsSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "tags": ["env:production"], "tests": [{"public_id": ""}], "type": "suite"}, "type": "suite"}}
When the request is sent
Then the response status is 400 API error response.

@generated @skip @team:DataDog/synthetics-managing
Scenario: Synthetics: edit a test suite returns "OK" response
Given new "EditSyntheticsSuite" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"message": "Notification message", "name": "Example suite name", "tags": ["env:production"], "tests": [{"public_id": ""}], "type": "suite"}, "type": "suite"}}
When the request is sent
Then the response status is 200 OK
34 changes: 34 additions & 0 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4207,6 +4207,40 @@
"type": "safe"
}
},
"CreateSyntheticsSuite": {
"tag": "Synthetics",
"undo": {
"operationId": "TODO",
"parameters": [],
"type": "unsafe"
}
},
"DeleteSyntheticsSuites": {
"tag": "Synthetics",
"undo": {
"operationId": "TODO",
"parameters": [],
"type": "unsafe"
}
},
"SearchSuites": {
"tag": "Synthetics",
"undo": {
"type": "safe"
}
},
"GetSyntheticsSuite": {
"tag": "Synthetics",
"undo": {
"type": "safe"
}
},
"EditSyntheticsSuite": {
"tag": "Synthetics",
"undo": {
"type": "idempotent"
}
},
"ListTagPipelinesRulesets": {
"tag": "Cloud Cost Management",
"undo": {
Expand Down
55 changes: 55 additions & 0 deletions private/bdd_runner/src/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8655,6 +8655,61 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
},
operationResponseType: "OnDemandConcurrencyCapResponse",
},
"SyntheticsApi.V2.CreateSyntheticsSuite": {
body: {
type: "SuiteCreateEditRequest",
format: "",
},
operationResponseType: "SyntheticsSuiteResponse",
},
"SyntheticsApi.V2.DeleteSyntheticsSuites": {
body: {
type: "DeletedSuitesRequestDeleteRequest",
format: "",
},
operationResponseType: "DeletedSuitesResponse",
},
"SyntheticsApi.V2.SearchSuites": {
query: {
type: "string",
format: "",
},
sort: {
type: "string",
format: "",
},
facetsOnly: {
type: "boolean",
format: "",
},
start: {
type: "number",
format: "int64",
},
count: {
type: "number",
format: "int64",
},
operationResponseType: "SyntheticsSuiteSearchResponse",
},
"SyntheticsApi.V2.GetSyntheticsSuite": {
publicId: {
type: "string",
format: "",
},
operationResponseType: "SyntheticsSuiteResponse",
},
"SyntheticsApi.V2.EditSyntheticsSuite": {
publicId: {
type: "string",
format: "",
},
body: {
type: "SuiteCreateEditRequest",
format: "",
},
operationResponseType: "SyntheticsSuiteResponse",
},
"TeamsApi.V2.ListTeams": {
pageNumber: {
type: "number",
Expand Down
Loading