List a repository's test quarantine candidates
import requests
url = "https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-tests/quarantine/candidates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-tests/quarantine/candidates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-tests/quarantine/candidates \
--header 'Authorization: Bearer <token>'{
"default_branch": "<string>",
"settings": {
"enabled": true,
"min_flaky_rate": 0,
"min_samples": 501,
"release_after_passes": 50
},
"candidates": [
{
"test_key": "<string>",
"suite": "<string>",
"name": "<string>",
"file": "<string>",
"flaky_rate": 0.5,
"flaky": 1,
"observed": 1
}
]
}Pipelines
List a repository's test quarantine candidates
The tests of the repository’s default branch that reach its quarantine thresholds over the last 30 days and are not quarantined, most flaky first. Only the branch’s own runs count, never a pull request check. Requires pipelines.read. Read-only.
GET
/
api
/
v1
/
org
/
pipeline-repositories
/
{repository_id}
/
pipeline-tests
/
quarantine
/
candidates
List a repository's test quarantine candidates
import requests
url = "https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-tests/quarantine/candidates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-tests/quarantine/candidates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/pipeline-repositories/{repository_id}/pipeline-tests/quarantine/candidates \
--header 'Authorization: Bearer <token>'{
"default_branch": "<string>",
"settings": {
"enabled": true,
"min_flaky_rate": 0,
"min_samples": 501,
"release_after_passes": 50
},
"candidates": [
{
"test_key": "<string>",
"suite": "<string>",
"name": "<string>",
"file": "<string>",
"flaky_rate": 0.5,
"flaky": 1,
"observed": 1
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
How many candidates to list.
Required range:
1 <= x <= 100