Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions config/_default/menus/api.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10188,6 +10188,23 @@ menu:
- ListTeams
unstable: []
order: 1
- name: Test Optimization
url: /api/latest/test-optimization/
identifier: test-optimization
generated: true
- name: Search flaky tests
url: '#search-flaky-tests'
identifier: test-optimization-search-flaky-tests
parent: test-optimization
generated: true
params:
versions:
- v2
operationids:
- SearchFlakyTests
unstable:
- v2
order: 1
- name: Workflow Automation
url: /api/latest/workflow-automation/
identifier: workflow-automation
Expand Down
3 changes: 3 additions & 0 deletions content/en/api/latest/test-optimization/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Test Optimization
---
4 changes: 4 additions & 0 deletions content/en/api/v2/test-optimization/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Test Optimization
headless: true
---
97 changes: 97 additions & 0 deletions content/en/api/v2/test-optimization/examples.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"data": {
"attributes": {
"filter": {
"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""
},
"page": {
"limit": 2
},
"sort": "-last_flaked"
},
"type": "search_flaky_tests_request"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"data": {
"attributes": {
"filter": {
"query": "*"
},
"page": {
"cursor": "Q29udGludW91cyBUZXN0aW5nLltETyBOT1QgREVMRVRFXVtPTi1ERU1BTkQgRlVOQ1RJT05BTElUSUVTXVtPVkVSUklERV0gRXh0cmFWYXJpYWJsZXM=",
"limit": 2
},
"sort": "fqn"
},
"type": "search_flaky_tests_request"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"data": {
"attributes": {
"filter": {
"query": "*"
},
"page": {
"limit": 2
},
"sort": "fqn"
},
"type": "search_flaky_tests_request"
}
}
17 changes: 17 additions & 0 deletions data/api/v2/CodeExamples.json
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,23 @@
"description": "Update permission setting for team returns \"OK\" response"
}
],
"SearchFlakyTests": [
{
"group": "test_optimization",
"suffix": "_3833010053",
"description": "Search flaky tests returns \"OK\" response with cursor pagination"
},
{
"group": "test_optimization",
"suffix": "_2665223746",
"description": "Search flaky tests returns \"OK\" response with filtered query"
},
{
"group": "test_optimization",
"suffix": "_3039631009",
"description": "Search flaky tests returns \"OK\" response with specific cursor"
}
],
"CreateUser": [
{
"group": "users",
Expand Down
Loading
Loading