@@ -80,40 +80,35 @@ Feature: CI Visibility Pipelines
80
80
81
81
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
82
82
Scenario : Send pipeline event returns "Bad Request" response
83
- Given operation "CreateCIAppPipelineEvent" enabled
84
- And new "CreateCIAppPipelineEvent" request
83
+ Given new "CreateCIAppPipelineEvent" request
85
84
And body with value {"data" : {"attributes" : {"resource" : "Details TBD" }, "type" : "cipipeline_resource_request" }}
86
85
When the request is sent
87
86
Then the response status is 400 Bad Request
88
87
89
88
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
90
89
Scenario : Send pipeline event returns "Payload Too Large" response
91
- Given operation "CreateCIAppPipelineEvent" enabled
92
- And new "CreateCIAppPipelineEvent" request
90
+ Given new "CreateCIAppPipelineEvent" request
93
91
And body with value {"data" : {"attributes" : {"resource" : "Details TBD" }, "type" : "cipipeline_resource_request" }}
94
92
When the request is sent
95
93
Then the response status is 413 Payload Too Large
96
94
97
95
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
98
96
Scenario : Send pipeline event returns "Request Timeout" response
99
- Given operation "CreateCIAppPipelineEvent" enabled
100
- And new "CreateCIAppPipelineEvent" request
97
+ Given new "CreateCIAppPipelineEvent" request
101
98
And body with value {"data" : {"attributes" : {"resource" : "Details TBD" }, "type" : "cipipeline_resource_request" }}
102
99
When the request is sent
103
100
Then the response status is 408 Request Timeout
104
101
105
102
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
106
103
Scenario : Send pipeline event returns "Request accepted for processing" response
107
- Given operation "CreateCIAppPipelineEvent" enabled
108
- And new "CreateCIAppPipelineEvent" request
104
+ Given new "CreateCIAppPipelineEvent" request
109
105
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" }}
110
106
When the request is sent
111
107
Then the response status is 202 Request accepted for processing
112
108
113
109
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
114
110
Scenario : Send pipeline job event returns "Request accepted for processing" response
115
- Given operation "CreateCIAppPipelineEvent" enabled
116
- And new "CreateCIAppPipelineEvent" request
111
+ Given new "CreateCIAppPipelineEvent" request
117
112
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" }}
118
113
When the request is sent
119
114
Then the response status is 202 Request accepted for processing
0 commit comments