Skip to content

Commit b74e809

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
CI Visibility Pipelines test case and example update (#931)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent d90fe26 commit b74e809

File tree

8 files changed

+30
-31
lines changed

8 files changed

+30
-31
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.4",
7-
"regenerated": "2022-11-22 13:49:05.695818",
8-
"spec_repo_commit": "dad9f2c8"
7+
"regenerated": "2022-11-28 14:42:38.615339",
8+
"spec_repo_commit": "4b671e2f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-11-22 13:49:05.708257",
13-
"spec_repo_commit": "dad9f2c8"
12+
"regenerated": "2022-11-28 14:42:38.628880",
13+
"spec_repo_commit": "4b671e2f"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-10-21T09:04:03.789Z"
1+
"2022-11-28T11:57:44.730Z"

cassettes/v2/CI-Visibility-Pipelines_2492627744/Aggregate-pipelines-events-returns-OK-response_454816794/recording.har

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "c56ff6ac9e844d0e5a04e2ba5da2e5f4",
11+
"_id": "a2f719c1d23b81213c7185d0426ee0c9",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 297,
15+
"bodySize": 268,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"compute\":[{\"aggregation\":\"pc90\",\"metric\":\"@duration\",\"type\":\"total\"}],\"filter\":{\"from\":\"now-15m\",\"query\":\"@ci.provider.name:github AND @ci.provider.instance:github-actions\",\"to\":\"now\"},\"group_by\":[{\"facet\":\"@ci.status\",\"limit\":10,\"total\":false}],\"options\":{\"timezone\":\"GMT\"},\"page\":{\"limit\":25}}"
35+
"text": "{\"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\"},\"page\":{\"limit\":25}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/ci/pipelines/analytics/aggregate"
3939
},
4040
"response": {
41-
"bodySize": 435,
41+
"bodySize": 178,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 435,
45-
"text": "{\"meta\":{\"elapsed\":113,\"request_id\":\"pddv1ChYwUEN0YnZ5dFNrdVZEbHhuSTliVEpnIiwKHGMtY3c8ixDp3d4CWjg8UkGmZ1-bi7LFmSWOebUSDClmkByOFEin86vlJg\",\"status\":\"done\"},\"data\":{\"buckets\":[{\"by\":{\"@ci.status\":\"canceled\"},\"computes\":{\"c0\":149536704640.0603}},{\"by\":{\"@ci.status\":\"error\"},\"computes\":{\"c0\":423086456660.7128}},{\"by\":{\"@ci.status\":\"skipped\"},\"computes\":{\"c0\":0.0}},{\"by\":{\"@ci.status\":\"success\"},\"computes\":{\"c0\":190099929600.14703}}]}}\n"
44+
"size": 178,
45+
"text": "{\"meta\":{\"elapsed\":11,\"request_id\":\"pddv1ChZqQzVJUE9vVlNBLVFpRk84Vko5MmFRIi0KHbc5utz89Y10MZzALoXnFE9Iv7tPhZgvKgIWyiodEgzXWdD8rQBC2y027fc\",\"status\":\"done\"},\"data\":{\"buckets\":[]}}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,8 +57,8 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2022-10-21T09:04:03.802Z",
61-
"time": 1556
60+
"startedDateTime": "2022-11-28T11:57:44.746Z",
61+
"time": 189
6262
}
6363
],
6464
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-10-21T09:03:14.191Z"
1+
"2022-11-28T11:57:44.947Z"

cassettes/v2/CI-Visibility-Pipelines_2492627744/Get-a-list-of-pipelines-events-returns-OK-response_1738327961/recording.har

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "21695008f28743a9b8f04c75f2d309c9",
11+
"_id": "0db7c48fc7ac8d1315a3ff15267e47ff",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -21,16 +21,16 @@
2121
"value": "application/json"
2222
}
2323
],
24-
"headersSize": 684,
24+
"headersSize": 680,
2525
"httpVersion": "HTTP/1.1",
2626
"method": "GET",
2727
"queryString": [
2828
{
2929
"name": "filter",
3030
"value": {
31-
"from": "2022-10-21T08:33:14.191Z",
32-
"query": "@ci.provider.instance:circleci",
33-
"to": "2022-10-21T09:03:14.191Z"
31+
"from": "2022-11-28T11:27:44.947Z",
32+
"query": "@ci.provider.name:circleci",
33+
"to": "2022-11-28T11:57:44.947Z"
3434
}
3535
},
3636
{
@@ -40,14 +40,14 @@
4040
}
4141
}
4242
],
43-
"url": "https://api.datadoghq.com/api/v2/ci/pipelines/events?filter%5Bquery%5D=%40ci.provider.instance%3Acircleci&filter%5Bfrom%5D=2022-10-21T08%3A33%3A14.191Z&filter%5Bto%5D=2022-10-21T09%3A03%3A14.191Z&page%5Blimit%5D=5"
43+
"url": "https://api.datadoghq.com/api/v2/ci/pipelines/events?filter%5Bquery%5D=%40ci.provider.name%3Acircleci&filter%5Bfrom%5D=2022-11-28T11%3A27%3A44.947Z&filter%5Bto%5D=2022-11-28T11%3A57%3A44.947Z&page%5Blimit%5D=5"
4444
},
4545
"response": {
46-
"bodySize": 9584,
46+
"bodySize": 12,
4747
"content": {
4848
"mimeType": "application/json",
49-
"size": 9584,
50-
"text": "{\"data\":[{\"id\":\"AgAAAYP5xykf8-SC-QAAAAAAAAAYAAAAAEFZUDV4eWtmQUFCUks3bmxVT3JlZDMyLQAAACQAAAAAMDE4M2Y5YzctMzZiMC00MTA3LWFlNWUtMjY5YmIyNWNjMjU1\",\"type\":\"cipipeline\",\"attributes\":{\"attributes\":{\"duration\":168245000000,\"git\":{\"commit\":{\"committer\":{\"date\":\"2022-10-21T08:53:37Z\",\"name\":\"GitHub\",\"email\":\"[email protected]\",\"date_timestamp\":1666342417000},\"author\":{\"date\":\"2022-10-21T08:53:37Z\",\"name\":\"dependabot[bot]\",\"email\":\"49699333+dependabot[bot]@users.noreply.github.com\",\"date_timestamp\":1666342417000},\"message\":\"Bump sigs.k8s.io/custom-metrics-apiserver from 1.23.0 to 1.24.0\\nBumps [sigs.k8s.io/custom-metrics-apiserver](https://github.com/kubernetes-sigs/custom-metrics-apiserver) from 1.23.0 to 1.24.0.\\n- [Release notes](https://github.com/kubernetes-sigs/custom-metrics-apiserver/releases)\\n- [Changelog](https://github.com/kubernetes-sigs/custom-metrics-apiserver/blob/master/RELEASE.md)\\n- [Commits](https://github.com/kubernetes-sigs/custom-metrics-apiserver/compare/v1.23.0...v1.24.0)\\n\\n---\\nupdated-dependencies:\\n- dependency-name: sigs.k8s.io/custom-metrics-apiserver\\n dependency-type: direct:production\\n update-type: version-update:semver-minor\\n...\\n\\nSigned-off-by: dependabot[bot] <[email protected]>\",\"sha\":\"ae8f4633aeeffe565f65b51d835c1d16194bae84\"},\"repository_url\":\"https://github.com/DataDog/repo\",\"repository\":{\"path\":\"/DataDog/repo\",\"scheme\":\"https\",\"name\":\"DataDog/repo\",\"host\":\"github.com\",\"id\":\"github.com/DataDog/repo\"},\"branch\":\"dependabot/go_modules/sigs.k8s.io/custom-metrics-apiserver-1.24.0\"},\"ci\":{\"pipeline\":{\"name\":\"test_and_build\",\"id\":\"49e7fd76-3f02-4713-920a-9fe5815acb69\",\"url\":\"https://app.circleci.com/pipelines/workflows/49e7fd76-3f02-4713-920a-9fe5815acb69\"},\"provider\":{\"instance\":\"circleci\",\"name\":\"circleci\"},\"job\":{\"name\":\"integration_tests\",\"id\":\"63fe0e47-c104-4084-a885-90a5efe48fc0\",\"url\":\"https://app.circleci.com/jobs/gh/DataDog/repo/747606\"},\"status\":\"error\"},\"circleci\":{\"result\":\"failed\"},\"start\":1666342754282000000},\"ci_level\":\"job\",\"tags\":[\"source:apm\",\"source:apm\"]}},{\"id\":\"AgAAAYP5xqkdMVh9SQAAAAAAAAAYAAAAAEFZUDV4cWtkQUFCTVgxb2RLVG05X1gyLQAAACQAAAAAMDE4M2Y5YzYtY2QzOC00YmU5LTllMjctYTZkYWY0ODU1NTM2\",\"type\":\"cipipeline\",\"attributes\":{\"attributes\":{\"duration\":135912000000,\"git\":{\"commit\":{\"committer\":{\"date\":\"2022-10-21T08:53:37Z\",\"name\":\"GitHub\",\"email\":\"[email protected]\",\"date_timestamp\":1666342417000},\"author\":{\"date\":\"2022-10-21T08:53:37Z\",\"name\":\"dependabot[bot]\",\"email\":\"49699333+dependabot[bot]@users.noreply.github.com\",\"date_timestamp\":1666342417000},\"message\":\"Bump sigs.k8s.io/custom-metrics-apiserver from 1.23.0 to 1.24.0\\nBumps [sigs.k8s.io/custom-metrics-apiserver](https://github.com/kubernetes-sigs/custom-metrics-apiserver) from 1.23.0 to 1.24.0.\\n- [Release notes](https://github.com/kubernetes-sigs/custom-metrics-apiserver/releases)\\n- [Changelog](https://github.com/kubernetes-sigs/custom-metrics-apiserver/blob/master/RELEASE.md)\\n- [Commits](https://github.com/kubernetes-sigs/custom-metrics-apiserver/compare/v1.23.0...v1.24.0)\\n\\n---\\nupdated-dependencies:\\n- dependency-name: sigs.k8s.io/custom-metrics-apiserver\\n dependency-type: direct:production\\n update-type: version-update:semver-minor\\n...\\n\\nSigned-off-by: dependabot[bot] <[email protected]>\",\"sha\":\"ae8f4633aeeffe565f65b51d835c1d16194bae84\"},\"repository_url\":\"https://github.com/DataDog/repo\",\"repository\":{\"path\":\"/DataDog/repo\",\"scheme\":\"https\",\"name\":\"DataDog/repo\",\"host\":\"github.com\",\"id\":\"github.com/DataDog/repo\"},\"branch\":\"dependabot/go_modules/sigs.k8s.io/custom-metrics-apiserver-1.24.0\"},\"ci\":{\"pipeline\":{\"name\":\"test_and_build\",\"id\":\"49e7fd76-3f02-4713-920a-9fe5815acb69\",\"url\":\"https://app.circleci.com/pipelines/workflows/49e7fd76-3f02-4713-920a-9fe5815acb69\"},\"provider\":{\"instance\":\"circleci\",\"name\":\"circleci\"},\"job\":{\"name\":\"docker_tests\",\"id\":\"fe1c7d1e-fa06-4f78-a770-2124d9df6450\",\"url\":\"https://app.circleci.com/jobs/gh/DataDog/repo/747605\"},\"status\":\"success\"},\"circleci\":{\"result\":\"success\"},\"start\":1666342753845000000},\"ci_level\":\"job\",\"tags\":[\"source:apm\",\"source:apm\"]}},{\"id\":\"AgAAAYP5xpmz5QcY9gAAAAAAAAAYAAAAAEFZUDV4cG16QUFDUzJrMkpfUWdXS0l4SQAAACQAAAAAMDE4M2Y5YzYtOWE3MC00NjRkLTk0ZGEtMzJhMTU3NWM4N2Y1\",\"type\":\"cipipeline\",\"attributes\":{\"attributes\":{\"duration\":127003000000,\"git\":{\"commit\":{\"committer\":{\"date\":\"2022-10-21T08:29:12Z\",\"name\":\"Joe\",\"email\":\"[email protected]\",\"date_timestamp\":1666340952000},\"author\":{\"date\":\"2022-10-21T08:29:12Z\",\"name\":\"Joe\",\"email\":\"[email protected]\",\"date_timestamp\":1666340952000},\"message\":\"[CWS] pre-alloc in `bitmaskCombinations`\",\"sha\":\"77413ba45e45cf69704bcb98cd90363453545c0b\"},\"repository_url\":\"https://github.com/DataDog/repo\",\"repository\":{\"path\":\"/DataDog/repo\",\"scheme\":\"https\",\"name\":\"DataDog/repo\",\"host\":\"github.com\",\"id\":\"github.com/DataDog/repo\"},\"branch\":\"paulcacheux/pre-alloc-v2\"},\"ci\":{\"pipeline\":{\"name\":\"test_and_build\",\"id\":\"6600c0f6-5457-4a1a-92a5-7930156ec18f\",\"url\":\"https://app.circleci.com/pipelines/workflows/6600c0f6-5457-4a1a-92a5-7930156ec18f\"},\"provider\":{\"instance\":\"circleci\",\"name\":\"circleci\"},\"job\":{\"name\":\"docker_tests\",\"id\":\"cf9b9254-ece7-4e94-aefe-d6365cbc0c33\",\"url\":\"https://app.circleci.com/jobs/gh/DataDog/repo/747597\"},\"status\":\"success\"},\"circleci\":{\"result\":\"success\"},\"start\":1666342758808000000},\"ci_level\":\"job\",\"tags\":[\"source:apm\",\"source:apm\"]}},{\"id\":\"AgAAAYP5xfKQbBhYyAAAAAAAAAAYAAAAAEFZUDV4ZktRQUFDUklKUjJKZDlQdTMyLQAAACQAAAAAMDE4M2Y5YzYtMjE1OC00NTlkLThlNDMtNGE4ZjVmNGM2ZTM4\",\"type\":\"cipipeline\",\"attributes\":{\"attributes\":{\"duration\":91076000000,\"git\":{\"commit\":{\"committer\":{\"date\":\"2022-10-21T08:53:37Z\",\"name\":\"GitHub\",\"email\":\"[email protected]\",\"date_timestamp\":1666342417000},\"author\":{\"date\":\"2022-10-21T08:53:37Z\",\"name\":\"dependabot[bot]\",\"email\":\"49699333+dependabot[bot]@users.noreply.github.com\",\"date_timestamp\":1666342417000},\"message\":\"Bump sigs.k8s.io/custom-metrics-apiserver from 1.23.0 to 1.24.0\\nBumps [sigs.k8s.io/custom-metrics-apiserver](https://github.com/kubernetes-sigs/custom-metrics-apiserver) from 1.23.0 to 1.24.0.\\n- [Release notes](https://github.com/kubernetes-sigs/custom-metrics-apiserver/releases)\\n- [Changelog](https://github.com/kubernetes-sigs/custom-metrics-apiserver/blob/master/RELEASE.md)\\n- [Commits](https://github.com/kubernetes-sigs/custom-metrics-apiserver/compare/v1.23.0...v1.24.0)\\n\\n---\\nupdated-dependencies:\\n- dependency-name: sigs.k8s.io/custom-metrics-apiserver\\n dependency-type: direct:production\\n update-type: version-update:semver-minor\\n...\\n\\nSigned-off-by: dependabot[bot] <[email protected]>\",\"sha\":\"ae8f4633aeeffe565f65b51d835c1d16194bae84\"},\"repository_url\":\"https://github.com/DataDog/repo\",\"repository\":{\"path\":\"/DataDog/repo\",\"scheme\":\"https\",\"name\":\"DataDog/repo\",\"host\":\"github.com\",\"id\":\"github.com/DataDog/repo\"},\"branch\":\"dependabot/go_modules/sigs.k8s.io/custom-metrics-apiserver-1.24.0\"},\"ci\":{\"pipeline\":{\"name\":\"test_and_build\",\"id\":\"49e7fd76-3f02-4713-920a-9fe5815acb69\",\"url\":\"https://app.circleci.com/pipelines/workflows/49e7fd76-3f02-4713-920a-9fe5815acb69\"},\"provider\":{\"instance\":\"circleci\",\"name\":\"circleci\"},\"job\":{\"name\":\"licenses_linting\",\"id\":\"f72c6c96-c726-4af6-bc76-6177b23465a4\",\"url\":\"https://app.circleci.com/jobs/gh/DataDog/repo/747593\"},\"status\":\"error\"},\"circleci\":{\"result\":\"failed\"},\"start\":1666342751948000000},\"ci_level\":\"job\",\"tags\":[\"source:apm\",\"source:apm\"]}},{\"id\":\"AgAAAYP5xcd7ZGdYyAAAAAAAAAAYAAAAAEFZUDV4Y2Q3QUFCSXFuNnhnMTZwMTR4SQAAACQAAAAAMDE4M2Y5YzUtZGIwOC00YTBhLWFmZWEtM2VjZDA3ZTU4N2My\",\"type\":\"cipipeline\",\"attributes\":{\"attributes\":{\"duration\":78632000000,\"git\":{\"commit\":{\"committer\":{\"date\":\"2022-10-21T08:29:12Z\",\"name\":\"Joe\",\"email\":\"[email protected]\",\"date_timestamp\":1666340952000},\"author\":{\"date\":\"2022-10-21T08:29:12Z\",\"name\":\"Joe\",\"email\":\"[email protected]\",\"date_timestamp\":1666340952000},\"message\":\"[CWS] pre-alloc in `bitmaskCombinations`\",\"sha\":\"77413ba45e45cf69704bcb98cd90363453545c0b\"},\"repository_url\":\"https://github.com/DataDog/repo\",\"repository\":{\"path\":\"/DataDog/repo\",\"scheme\":\"https\",\"name\":\"DataDog/repo\",\"host\":\"github.com\",\"id\":\"github.com/DataDog/repo\"},\"branch\":\"paulcacheux/pre-alloc-v2\"},\"ci\":{\"pipeline\":{\"name\":\"test_and_build\",\"id\":\"6600c0f6-5457-4a1a-92a5-7930156ec18f\",\"url\":\"https://app.circleci.com/pipelines/workflows/6600c0f6-5457-4a1a-92a5-7930156ec18f\"},\"provider\":{\"instance\":\"circleci\",\"name\":\"circleci\"},\"job\":{\"name\":\"licenses_linting\",\"id\":\"dd9dadb2-d371-41de-9ccb-5c3eda84d7b6\",\"url\":\"https://app.circleci.com/jobs/gh/DataDog/repo/747601\"},\"status\":\"success\"},\"circleci\":{\"result\":\"success\"},\"start\":1666342753363000000},\"ci_level\":\"job\",\"tags\":[\"source:apm\",\"source:apm\"]}}],\"meta\":{\"page\":{\"after\":\"eyJhZnRlciI6IkFnQUFBWVA1eGNkN1pHZFl5QUFBQUFBQUFBQVlBQUFBQUVGWlVEVjRZMlEzUVVGQ1NYRnVObmhuTVRad01UUjRTUUFBQUNRQUFBQUFNREU0TTJZNVl6VXRaR0l3T0MwMFlUQmhMV0ZtWldFdE0yVmpaREEzWlRVNE4yTXkifQ\"}},\"links\":{\"next\":\"https://api.datadoghq.com/api/v2/ci/pipelines/events?filter%5Bfrom%5D=2022-10-21T08%3A33%3A14.191Z&filter%5Bquery%5D=%40ci.provider.instance%3Acircleci&filter%5Bto%5D=2022-10-21T09%3A03%3A14.191Z&page%5Bcursor%5D=eyJhZnRlciI6IkFnQUFBWVA1eGNkN1pHZFl5QUFBQUFBQUFBQVlBQUFBQUVGWlVEVjRZMlEzUVVGQ1NYRnVObmhuTVRad01UUjRTUUFBQUNRQUFBQUFNREU0TTJZNVl6VXRaR0l3T0MwMFlUQmhMV0ZtWldFdE0yVmpaREEzWlRVNE4yTXkifQ&page%5Blimit%5D=5\"}}\n"
49+
"size": 12,
50+
"text": "{\"data\":[]}\n"
5151
},
5252
"cookies": [],
5353
"headers": [
@@ -56,14 +56,14 @@
5656
"value": "application/json"
5757
}
5858
],
59-
"headersSize": 643,
59+
"headersSize": 618,
6060
"httpVersion": "HTTP/1.1",
6161
"redirectURL": "",
6262
"status": 200,
6363
"statusText": "OK"
6464
},
65-
"startedDateTime": "2022-10-21T09:03:14.205Z",
66-
"time": 611
65+
"startedDateTime": "2022-11-28T11:57:44.955Z",
66+
"time": 141
6767
}
6868
],
6969
"pages": [],

examples/v2/ci-visibility-pipelines/AggregateCIAppPipelineEvents.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ const params: v2.CIVisibilityPipelinesApiAggregateCIAppPipelineEventsRequest = {
1818
],
1919
filter: {
2020
from: "now-15m",
21-
query:
22-
"@ci.provider.name:github AND @ci.provider.instance:github-actions",
21+
query: "@ci.provider.name:(gitlab OR github)",
2322
to: "now",
2423
},
2524
groupBy: [

examples/v2/ci-visibility-pipelines/ListCIAppPipelineEvents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const configuration = client.createConfiguration();
88
const apiInstance = new v2.CIVisibilityPipelinesApi(configuration);
99

1010
const params: v2.CIVisibilityPipelinesApiListCIAppPipelineEventsRequest = {
11-
filterQuery: "@ci.provider.instance:circleci",
11+
filterQuery: "@ci.provider.name:circleci",
1212
filterFrom: new Date(new Date().getTime() + -30 * 60 * 1000),
1313
filterTo: new Date(),
1414
pageLimit: 5,

features/v2/ci_visibility_pipelines.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Feature: CI Visibility Pipelines
1717
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
1818
Scenario: Aggregate pipelines events returns "OK" response
1919
Given new "AggregateCIAppPipelineEvents" request
20-
And body with value {"compute": [{"aggregation": "pc90", "metric": "@duration", "type": "total"}], "filter": {"from": "now-15m", "query": "@ci.provider.name:github AND @ci.provider.instance:github-actions", "to": "now"}, "group_by": [{ "facet": "@ci.status", "limit": 10, "total": false}], "options": {"timezone": "GMT"}, "page": {"limit": 25}}
20+
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"}, "page": {"limit": 25}}
2121
When the request is sent
2222
Then the response status is 200 OK
2323

@@ -30,7 +30,7 @@ Feature: CI Visibility Pipelines
3030
@team:Datadog/ci-app-backend @team:Datadog/integrations-tools-and-libraries
3131
Scenario: Get a list of pipelines events returns "OK" response
3232
Given new "ListCIAppPipelineEvents" request
33-
And request contains "filter[query]" parameter with value "@ci.provider.instance:circleci"
33+
And request contains "filter[query]" parameter with value "@ci.provider.name:circleci"
3434
And request contains "filter[from]" parameter with value "{{ timeISO('now - 30m') }}"
3535
And request contains "filter[to]" parameter with value "{{ timeISO('now') }}"
3636
And request contains "page[limit]" parameter with value 5

0 commit comments

Comments
 (0)