Skip to content

Commit 8acf2fe

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 5d002e79 of spec repo
1 parent 44d9c09 commit 8acf2fe

File tree

4 files changed

+23
-17
lines changed

4 files changed

+23
-17
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-09-22 16:26:39.643849",
8-
"spec_repo_commit": "45270a3e"
7+
"regenerated": "2023-09-25 12:12:23.639338",
8+
"spec_repo_commit": "5d002e79"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-09-22 16:26:39.657830",
13-
"spec_repo_commit": "45270a3e"
12+
"regenerated": "2023-09-25 12:12:23.655830",
13+
"spec_repo_commit": "5d002e79"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18158,6 +18158,8 @@ paths:
1815818158
schema:
1815918159
$ref: '#/components/schemas/HTTPCIAppErrors'
1816018160
description: Service Unavailable
18161+
security:
18162+
- apiKeyAuth: []
1816118163
summary: Send pipeline event
1816218164
tags:
1816318165
- CI Visibility Pipelines

features/v2/ci_visibility_pipelines.feature

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,36 @@ Feature: CI Visibility Pipelines
55

66
Background:
77
Given a valid "apiKeyAuth" key in the system
8-
And a valid "appKeyAuth" key in the system
98
And an instance of "CIVisibilityPipelines" API
109

1110
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
1211
Scenario: Aggregate pipelines events returns "Bad Request" response
13-
Given new "AggregateCIAppPipelineEvents" request
12+
Given a valid "appKeyAuth" key in the system
13+
And new "AggregateCIAppPipelineEvents" request
1414
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"}}
1515
When the request is sent
1616
Then the response status is 400 Bad Request
1717

1818
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
1919
Scenario: Aggregate pipelines events returns "OK" response
20-
Given new "AggregateCIAppPipelineEvents" request
20+
Given a valid "appKeyAuth" key in the system
21+
And new "AggregateCIAppPipelineEvents" request
2122
And body with value {"compute": [{"aggregation": "pc90", "metric": "@duration", "type": "total"}], "filter": {"from": "now-15m", "query": "@ci.provider.name:(gitlab OR github)", "to": "now"}, "group_by": [{ "facet": "@ci.status", "limit": 10, "total": false}], "options": {"timezone": "GMT"}}
2223
When the request is sent
2324
Then the response status is 200 OK
2425
And the response "meta.status" is equal to "done"
2526

2627
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
2728
Scenario: Get a list of pipelines events returns "Bad Request" response
28-
Given new "ListCIAppPipelineEvents" request
29+
Given a valid "appKeyAuth" key in the system
30+
And new "ListCIAppPipelineEvents" request
2931
When the request is sent
3032
Then the response status is 400 Bad Request
3133

3234
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
3335
Scenario: Get a list of pipelines events returns "OK" response
34-
Given new "ListCIAppPipelineEvents" request
36+
Given a valid "appKeyAuth" key in the system
37+
And new "ListCIAppPipelineEvents" request
3538
And request contains "filter[query]" parameter with value "@ci.provider.name:circleci"
3639
And request contains "filter[from]" parameter with value "{{ timeISO('now - 30m') }}"
3740
And request contains "filter[to]" parameter with value "{{ timeISO('now') }}"
@@ -41,7 +44,8 @@ Feature: CI Visibility Pipelines
4144

4245
@replay-only @skip-validation @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination
4346
Scenario: Get a list of pipelines events returns "OK" response with pagination
44-
Given new "ListCIAppPipelineEvents" request
47+
Given a valid "appKeyAuth" key in the system
48+
And new "ListCIAppPipelineEvents" request
4549
And request contains "filter[from]" parameter with value "{{ timeISO('now - 30s') }}"
4650
And request contains "filter[to]" parameter with value "{{ timeISO('now') }}"
4751
And request contains "page[limit]" parameter with value 2
@@ -51,21 +55,24 @@ Feature: CI Visibility Pipelines
5155

5256
@generated @skip @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
5357
Scenario: Search pipelines events returns "Bad Request" response
54-
Given new "SearchCIAppPipelineEvents" request
58+
Given a valid "appKeyAuth" key in the system
59+
And new "SearchCIAppPipelineEvents" request
5560
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"}
5661
When the request is sent
5762
Then the response status is 400 Bad Request
5863

5964
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
6065
Scenario: Search pipelines events returns "OK" response
61-
Given new "SearchCIAppPipelineEvents" request
66+
Given a valid "appKeyAuth" key in the system
67+
And new "SearchCIAppPipelineEvents" request
6268
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"}
6369
When the request is sent
6470
Then the response status is 200 OK
6571

6672
@replay-only @skip-validation @team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries @with-pagination
6773
Scenario: Search pipelines events returns "OK" response with pagination
68-
Given new "SearchCIAppPipelineEvents" request
74+
Given a valid "appKeyAuth" key in the system
75+
And new "SearchCIAppPipelineEvents" request
6976
And body with value {"filter": {"from": "now-30s", "to": "now"}, "options": {"timezone": "GMT"}, "page": {"limit": 2}, "sort": "timestamp"}
7077
When the request with pagination is sent
7178
Then the response status is 200 OK

packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ export class CIVisibilityPipelinesApiRequestFactory extends BaseAPIRequestFactor
110110
requestContext.setBody(serializedBody);
111111

112112
// Apply auth methods
113-
applySecurityAuthentication(_config, requestContext, [
114-
"apiKeyAuth",
115-
"appKeyAuth",
116-
]);
113+
applySecurityAuthentication(_config, requestContext, ["apiKeyAuth"]);
117114

118115
return requestContext;
119116
}

0 commit comments

Comments
 (0)