Skip to content

Commit

Permalink
Regenerate client from commit 57729e6b of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Mar 6, 2025
1 parent 2133f34 commit 033bab4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 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": "2025-03-05 21:00:33.112254",
"spec_repo_commit": "6105a175"
"regenerated": "2025-03-06 10:23:38.659455",
"spec_repo_commit": "57729e6b"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-05 21:00:33.127833",
"spec_repo_commit": "6105a175"
"regenerated": "2025-03-06 10:23:38.674489",
"spec_repo_commit": "57729e6b"
}
}
}
30 changes: 15 additions & 15 deletions tests/scenarios/features/v2/ci_visibility_pipelines.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ Feature: CI Visibility Pipelines
Given a valid "apiKeyAuth" key in the system
And an instance of "CIVisibilityPipelines" API

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Aggregate pipelines events returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
And new "AggregateCIAppPipelineEvents" request
And body with value {"compute": [{"aggregation": "pc90", "interval": "5m", "metric": "@duration", "type": "total"}], "filter": {"from": "now-15m", "query": "@ci.provider.name:github AND @ci.status:error", "to": "now"}, "group_by": [{"facet": "@ci.status", "histogram": {"interval": 10, "max": 100, "min": 50}, "limit": 10, "sort": {"aggregation": "count", "order": "asc"}, "total": false}], "options": {"timezone": "GMT"}}
When the request is sent
Then the response status is 400 Bad Request

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Aggregate pipelines events returns "OK" response
Given a valid "appKeyAuth" key in the system
And new "AggregateCIAppPipelineEvents" request
Expand All @@ -26,14 +26,14 @@ Feature: CI Visibility Pipelines
Then the response status is 200 OK
And the response "meta.status" is equal to "done"

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Get a list of pipelines events returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
And new "ListCIAppPipelineEvents" request
When the request is sent
Then the response status is 400 Bad Request

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Get a list of pipelines events returns "OK" response
Given a valid "appKeyAuth" key in the system
And new "ListCIAppPipelineEvents" request
Expand All @@ -44,7 +44,7 @@ Feature: CI Visibility Pipelines
When the request is sent
Then the response status is 200 OK

@replay-only @skip-validation @team:Datadog/ci-app-backend @with-pagination
@replay-only @skip-validation @team:DataDog/ci-app-backend @with-pagination
Scenario: Get a list of pipelines events returns "OK" response with pagination
Given a valid "appKeyAuth" key in the system
And new "ListCIAppPipelineEvents" request
Expand All @@ -55,23 +55,23 @@ Feature: CI Visibility Pipelines
Then the response status is 200 OK
And the response has 2 items

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Search pipelines events returns "Bad Request" response
Given a valid "appKeyAuth" key in the system
And new "SearchCIAppPipelineEvents" request
And body with value {"filter": {"from": "now-15m", "query": "@ci.provider.name:github AND @ci.status:error", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "timestamp"}
When the request is sent
Then the response status is 400 Bad Request

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Search pipelines events returns "OK" response
Given a valid "appKeyAuth" key in the system
And new "SearchCIAppPipelineEvents" request
And body with value {"filter": {"from": "now-15m", "query": "@ci.provider.name:github AND @ci.status:error", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"limit": 5}, "sort": "timestamp"}
When the request is sent
Then the response status is 200 OK

@replay-only @skip-validation @team:Datadog/ci-app-backend @with-pagination
@replay-only @skip-validation @team:DataDog/ci-app-backend @with-pagination
Scenario: Search pipelines events returns "OK" response with pagination
Given a valid "appKeyAuth" key in the system
And new "SearchCIAppPipelineEvents" request
Expand All @@ -80,49 +80,49 @@ Feature: CI Visibility Pipelines
Then the response status is 200 OK
And the response has 2 items

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send pipeline event returns "Bad Request" response
Given new "CreateCIAppPipelineEvent" request
And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send pipeline event returns "Payload Too Large" response
Given new "CreateCIAppPipelineEvent" request
And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}}
When the request is sent
Then the response status is 413 Payload Too Large

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send pipeline event returns "Request Timeout" response
Given new "CreateCIAppPipelineEvent" request
And body with value {"data": {"attributes": {"resource": "Details TBD"}, "type": "cipipeline_resource_request"}}
When the request is sent
Then the response status is 408 Request Timeout

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Send pipeline event returns "Request accepted for processing" response
Given new "CreateCIAppPipelineEvent" request
And body with value {"data": {"attributes": {"resource": {"level": "pipeline","unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a","name": "Deploy to AWS","url": "https://my-ci-provider.example/pipelines/my-pipeline/run/1","start": "{{ timeISO('now - 120s') }}","end": "{{ timeISO('now - 30s') }}","status": "success","partial_retry": false,"git": {"repository_url": "https://github.com/DataDog/datadog-agent","sha": "7f263865994b76066c4612fd1965215e7dcb4cd2","author_email": "[email protected]"}}},"type": "cipipeline_resource_request"}}
When the request is sent
Then the response status is 202 Request accepted for processing

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Send pipeline event with custom provider returns "Request accepted for processing" response
Given new "CreateCIAppPipelineEvent" request
And body with value {"data": {"attributes": {"provider_name": "example-provider", "resource": {"level": "pipeline","unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a","name": "Deploy to AWS","url": "https://my-ci-provider.example/pipelines/my-pipeline/run/1","start": "{{ timeISO('now - 120s') }}","end": "{{ timeISO('now - 30s') }}","status": "success","partial_retry": false,"git": {"repository_url": "https://github.com/DataDog/datadog-agent","sha": "7f263865994b76066c4612fd1965215e7dcb4cd2","author_email": "[email protected]"}}},"type": "cipipeline_resource_request"}}
When the request is sent
Then the response status is 202 Request accepted for processing

@skip @team:Datadog/ci-app-backend
@skip @team:DataDog/ci-app-backend
Scenario: Send pipeline job event returns "Request accepted for processing" response
Given new "CreateCIAppPipelineEvent" request
And body with value {"data": {"attributes": {"resource": {"level": "job", "id": "cf9456de-8b9e-4c27-aa79-27b1e78c1a33", "name": "Build image", "pipeline_unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", "pipeline_name": "Deploy to AWS", "start": "{{ timeISO('now - 120s') }}", "end": "{{ timeISO('now - 30s') }}", "status": "error", "url": "https://my-ci-provider.example/jobs/my-jobs/run/1"}}, "type": "cipipeline_resource_request"}}
When the request is sent
Then the response status is 202 Request accepted for processing

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Send running pipeline event returns "Request accepted for processing" response
Given new "CreateCIAppPipelineEvent" request
And body with value {"data": {"attributes": {"resource": {"level": "pipeline","unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a","name": "Deploy to AWS","url": "https://my-ci-provider.example/pipelines/my-pipeline/run/1","start": "{{ timeISO('now - 120s') }}","status": "running","partial_retry": false,"git": {"repository_url": "https://github.com/DataDog/datadog-agent","sha": "7f263865994b76066c4612fd1965215e7dcb4cd2","author_email": "[email protected]"}}},"type": "cipipeline_resource_request"}}
Expand Down
16 changes: 8 additions & 8 deletions tests/scenarios/features/v2/ci_visibility_tests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ Feature: CI Visibility Tests
And a valid "appKeyAuth" key in the system
And an instance of "CIVisibilityTests" API

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Aggregate tests events returns "Bad Request" response
Given new "AggregateCIAppTestEvents" request
And body with value {"compute": [{"aggregation": "pc90", "interval": "5m", "metric": "@duration", "type": "total"}], "filter": {"from": "now-15m", "query": "@test.service:web-ui-tests AND @test.status:fail", "to": "now"}, "group_by": [{"facet": "@test.service", "histogram": {"interval": 10, "max": 100, "min": 50}, "limit": 10, "sort": {"aggregation": "count", "order": "asc"}, "total": false}], "options": {"timezone": "GMT"}}
When the request is sent
Then the response status is 400 Bad Request

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Aggregate tests events returns "OK" response
Given new "AggregateCIAppTestEvents" request
And body with value {"compute": [{"aggregation": "count", "metric": "@test.is_flaky", "type": "total"}], "filter": {"from": "now-15m", "query": "@language:(python OR go)", "to": "now"}, "group_by": [{"facet": "@git.branch", "limit": 10, "sort": {"order": "asc"}, "total": false}], "options": {"timezone": "GMT"}}
When the request is sent
Then the response status is 200 OK
And the response "meta.status" is equal to "done"

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Get a list of tests events returns "Bad Request" response
Given new "ListCIAppTestEvents" request
When the request is sent
Then the response status is 400 Bad Request

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Get a list of tests events returns "OK" response
Given new "ListCIAppTestEvents" request
And request contains "filter[query]" parameter with value "@test.service:web-ui-tests"
Expand All @@ -40,7 +40,7 @@ Feature: CI Visibility Tests
When the request is sent
Then the response status is 200 OK

@replay-only @skip-validation @team:Datadog/ci-app-backend @with-pagination
@replay-only @skip-validation @team:DataDog/ci-app-backend @with-pagination
Scenario: Get a list of tests events returns "OK" response with pagination
Given new "ListCIAppTestEvents" request
And request contains "filter[from]" parameter with value "{{ timeISO('now - 30s') }}"
Expand All @@ -50,21 +50,21 @@ Feature: CI Visibility Tests
Then the response status is 200 OK
And the response has 2 items

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Search tests events returns "Bad Request" response
Given new "SearchCIAppTestEvents" request
And body with value {"filter": {"from": "now-15m", "query": "@test.service:web-ui-tests AND @test.status:fail", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "timestamp"}
When the request is sent
Then the response status is 400 Bad Request

@team:Datadog/ci-app-backend
@team:DataDog/ci-app-backend
Scenario: Search tests events returns "OK" response
Given new "SearchCIAppTestEvents" request
And body with value {"filter": {"from": "now-15m", "query": "@test.service:web-ui-tests AND @test.status:skip", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"limit": 25}, "sort": "timestamp"}
When the request is sent
Then the response status is 200 OK

@replay-only @skip-validation @team:Datadog/ci-app-backend @with-pagination
@replay-only @skip-validation @team:DataDog/ci-app-backend @with-pagination
Scenario: Search tests events returns "OK" response with pagination
Given new "SearchCIAppTestEvents" request
And body with value {"filter": {"from": "now-15m", "query": "@test.status:pass AND -@language:python", "to": "now"}, "page": {"limit": 2}, "sort": "timestamp"}
Expand Down
12 changes: 6 additions & 6 deletions tests/scenarios/features/v2/dora_metrics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,47 @@ Feature: DORA Metrics
Given a valid "apiKeyAuth" key in the system
And an instance of "DORAMetrics" API

@skip @team:Datadog/ci-app-backend
@skip @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "Bad Request" response
Given operation "CreateDORADeployment" enabled
And new "CreateDORADeployment" request
And body with value {"data": {"attributes": {}}}
When the request is sent
Then the response status is 400 Bad Request

@skip @team:Datadog/ci-app-backend
@skip @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response
Given operation "CreateDORADeployment" enabled
And new "CreateDORADeployment" request
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident

@replay-only @team:Datadog/ci-app-backend
@replay-only @team:DataDog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "OK" response
Given operation "CreateDORADeployment" enabled
And new "CreateDORADeployment" request
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
When the request is sent
Then the response status is 200 OK

@skip @team:Datadog/ci-app-backend
@skip @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "Bad Request" response
Given operation "CreateDORAIncident" enabled
And new "CreateDORAIncident" request
And body with value {"data": {"attributes": {}}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:Datadog/ci-app-backend
@generated @skip @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
Given operation "CreateDORAIncident" enabled
And new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident

@replay-only @team:Datadog/ci-app-backend
@replay-only @team:DataDog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "OK" response
Given operation "CreateDORAIncident" enabled
And new "CreateDORAIncident" request
Expand Down

0 comments on commit 033bab4

Please sign in to comment.