@@ -9,15 +9,15 @@ Feature: CI Visibility Pipelines
9
9
Given a valid "apiKeyAuth" key in the system
10
10
And an instance of "CIVisibilityPipelines" API
11
11
12
- @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
12
+ @generated @skip @team:Datadog/ci-app-backend
13
13
Scenario : Aggregate pipelines events returns "Bad Request" response
14
14
Given a valid "appKeyAuth" key in the system
15
15
And new "AggregateCIAppPipelineEvents" request
16
16
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" }}
17
17
When the request is sent
18
18
Then the response status is 400 Bad Request
19
19
20
- @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
20
+ @team:Datadog/ci-app-backend
21
21
Scenario : Aggregate pipelines events returns "OK" response
22
22
Given a valid "appKeyAuth" key in the system
23
23
And new "AggregateCIAppPipelineEvents" request
@@ -26,14 +26,14 @@ Feature: CI Visibility Pipelines
26
26
Then the response status is 200 OK
27
27
And the response "meta.status" is equal to "done"
28
28
29
- @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
29
+ @generated @skip @team:Datadog/ci-app-backend
30
30
Scenario : Get a list of pipelines events returns "Bad Request" response
31
31
Given a valid "appKeyAuth" key in the system
32
32
And new "ListCIAppPipelineEvents" request
33
33
When the request is sent
34
34
Then the response status is 400 Bad Request
35
35
36
- @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
36
+ @team:Datadog/ci-app-backend
37
37
Scenario : Get a list of pipelines events returns "OK" response
38
38
Given a valid "appKeyAuth" key in the system
39
39
And new "ListCIAppPipelineEvents" request
@@ -44,7 +44,7 @@ Feature: CI Visibility Pipelines
44
44
When the request is sent
45
45
Then the response status is 200 OK
46
46
47
- @replay-only @skip-validation @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @ with-pagination
47
+ @replay-only @skip-validation @team:Datadog/ci-app-backend @with-pagination
48
48
Scenario : Get a list of pipelines events returns "OK" response with pagination
49
49
Given a valid "appKeyAuth" key in the system
50
50
And new "ListCIAppPipelineEvents" request
@@ -55,23 +55,23 @@ Feature: CI Visibility Pipelines
55
55
Then the response status is 200 OK
56
56
And the response has 2 items
57
57
58
- @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
58
+ @generated @skip @team:Datadog/ci-app-backend
59
59
Scenario : Search pipelines events returns "Bad Request" response
60
60
Given a valid "appKeyAuth" key in the system
61
61
And new "SearchCIAppPipelineEvents" request
62
62
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" }
63
63
When the request is sent
64
64
Then the response status is 400 Bad Request
65
65
66
- @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
66
+ @team:Datadog/ci-app-backend
67
67
Scenario : Search pipelines events returns "OK" response
68
68
Given a valid "appKeyAuth" key in the system
69
69
And new "SearchCIAppPipelineEvents" request
70
70
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" }
71
71
When the request is sent
72
72
Then the response status is 200 OK
73
73
74
- @replay-only @skip-validation @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @ with-pagination
74
+ @replay-only @skip-validation @team:Datadog/ci-app-backend @with-pagination
75
75
Scenario : Search pipelines events returns "OK" response with pagination
76
76
Given a valid "appKeyAuth" key in the system
77
77
And new "SearchCIAppPipelineEvents" request
@@ -80,35 +80,35 @@ Feature: CI Visibility Pipelines
80
80
Then the response status is 200 OK
81
81
And the response has 2 items
82
82
83
- @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
83
+ @generated @skip @team:Datadog/ci-app-backend
84
84
Scenario : Send pipeline event returns "Bad Request" response
85
85
Given new "CreateCIAppPipelineEvent" request
86
86
And body with value {"data" : {"attributes" : {"resource" : "Details TBD" }, "type" : "cipipeline_resource_request" }}
87
87
When the request is sent
88
88
Then the response status is 400 Bad Request
89
89
90
- @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
90
+ @generated @skip @team:Datadog/ci-app-backend
91
91
Scenario : Send pipeline event returns "Payload Too Large" response
92
92
Given new "CreateCIAppPipelineEvent" request
93
93
And body with value {"data" : {"attributes" : {"resource" : "Details TBD" }, "type" : "cipipeline_resource_request" }}
94
94
When the request is sent
95
95
Then the response status is 413 Payload Too Large
96
96
97
- @generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
97
+ @generated @skip @team:Datadog/ci-app-backend
98
98
Scenario : Send pipeline event returns "Request Timeout" response
99
99
Given new "CreateCIAppPipelineEvent" request
100
100
And body with value {"data" : {"attributes" : {"resource" : "Details TBD" }, "type" : "cipipeline_resource_request" }}
101
101
When the request is sent
102
102
Then the response status is 408 Request Timeout
103
103
104
- @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
104
+ @team:Datadog/ci-app-backend
105
105
Scenario : Send pipeline event returns "Request accepted for processing" response
106
106
Given new "CreateCIAppPipelineEvent" request
107
107
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" }}
108
108
When the request is sent
109
109
Then the response status is 202 Request accepted for processing
110
110
111
- @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
111
+ @team:Datadog/ci-app-backend
112
112
Scenario : Send pipeline job event returns "Request accepted for processing" response
113
113
Given new "CreateCIAppPipelineEvent" request
114
114
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" }}
0 commit comments