-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 5cd91069 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Mar 6, 2025
1 parent
9775f03
commit 136ca53
Showing
4 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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"}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters