-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Beta Banner to Send Pipeline Events Endpoint (#1737)
Co-authored-by: ci.datadog-api-spec <[email protected]>
- Loading branch information
1 parent
859f8eb
commit 45c4c4d
Showing
6 changed files
with
20 additions
and
9 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
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
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 |
---|---|---|
|
@@ -80,35 +80,40 @@ Feature: CI Visibility Pipelines | |
|
||
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries | ||
Scenario: Send pipeline event returns "Bad Request" response | ||
Given new "CreateCIAppPipelineEvent" request | ||
Given operation "CreateCIAppPipelineEvent" enabled | ||
And 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 @team:Datadog/integrations-tools-and-libraries | ||
Scenario: Send pipeline event returns "Payload Too Large" response | ||
Given new "CreateCIAppPipelineEvent" request | ||
Given operation "CreateCIAppPipelineEvent" enabled | ||
And 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 @team:Datadog/integrations-tools-and-libraries | ||
Scenario: Send pipeline event returns "Request Timeout" response | ||
Given new "CreateCIAppPipelineEvent" request | ||
Given operation "CreateCIAppPipelineEvent" enabled | ||
And 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/integrations-tools-and-libraries | ||
Scenario: Send pipeline event returns "Request accepted for processing" response | ||
Given new "CreateCIAppPipelineEvent" request | ||
Given operation "CreateCIAppPipelineEvent" enabled | ||
And new "CreateCIAppPipelineEvent" request | ||
And body with value {"data": {"attributes": {"resource": {"end": "{{ timeISO('now - 30s') }}", "level": "pipeline", "name": "Deploy to AWS", "partial_retry": false, "start": "{{ timeISO('now - 120s') }}", "status": "success", "unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", "url": "https://my-ci-provider.example/pipelines/my-pipeline/run/1","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/integrations-tools-and-libraries | ||
Scenario: Send pipeline job event returns "Request accepted for processing" response | ||
Given new "CreateCIAppPipelineEvent" request | ||
Given operation "CreateCIAppPipelineEvent" enabled | ||
And new "CreateCIAppPipelineEvent" request | ||
And body with value {"data": {"attributes": {"resource": {"end": "{{ timeISO('now - 30s') }}", "level": "job", "name": "Build image", "start": "{{ timeISO('now - 120s') }}", "status": "error", "id": "cf9456de-8b9e-4c27-aa79-27b1e78c1a33", "pipeline_unique_id": "3eacb6f3-ff04-4e10-8a9c-46e6d054024a", "pipeline_name": "Deploy to AWS", "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 |