Get an application's test quarantine
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-tests/quarantine"
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/applications/{application_id}/pipeline-tests/quarantine', 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/applications/{application_id}/pipeline-tests/quarantine \
--header 'Authorization: Bearer <token>'{
"settings": {
"enabled": true,
"min_flaky_rate": 0,
"min_samples": 501,
"release_after_passes": 50
},
"quarantines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_key": "<string>",
"suite": "<string>",
"name": "<string>",
"file": "<string>",
"reason": "<string>",
"source": "manual",
"flaky_rate": 0.5,
"samples": 1,
"created_by_email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"consecutive_passes": 1,
"released_at": "2023-11-07T05:31:56Z",
"released_by_email": "<string>",
"release_reason": "manual",
"release_note": "<string>"
}
],
"recently_released": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_key": "<string>",
"suite": "<string>",
"name": "<string>",
"file": "<string>",
"reason": "<string>",
"source": "manual",
"flaky_rate": 0.5,
"samples": 1,
"created_by_email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"consecutive_passes": 1,
"released_at": "2023-11-07T05:31:56Z",
"released_by_email": "<string>",
"release_reason": "manual",
"release_note": "<string>"
}
]
}Pipelines
Get an application's test quarantine
The repository’s flaky test quarantine: whether it is on and its thresholds, the tests quarantined now, and the ones released in the last 30 days. A quarantined test still runs and is reported; a failing run step whose only failed tests are quarantined settles as a success. Requires pipelines.read. Read-only.
GET
/
api
/
v1
/
org
/
applications
/
{application_id}
/
pipeline-tests
/
quarantine
Get an application's test quarantine
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/pipeline-tests/quarantine"
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/applications/{application_id}/pipeline-tests/quarantine', 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/applications/{application_id}/pipeline-tests/quarantine \
--header 'Authorization: Bearer <token>'{
"settings": {
"enabled": true,
"min_flaky_rate": 0,
"min_samples": 501,
"release_after_passes": 50
},
"quarantines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_key": "<string>",
"suite": "<string>",
"name": "<string>",
"file": "<string>",
"reason": "<string>",
"source": "manual",
"flaky_rate": 0.5,
"samples": 1,
"created_by_email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"consecutive_passes": 1,
"released_at": "2023-11-07T05:31:56Z",
"released_by_email": "<string>",
"release_reason": "manual",
"release_note": "<string>"
}
],
"recently_released": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"test_key": "<string>",
"suite": "<string>",
"name": "<string>",
"file": "<string>",
"reason": "<string>",
"source": "manual",
"flaky_rate": 0.5,
"samples": 1,
"created_by_email": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"consecutive_passes": 1,
"released_at": "2023-11-07T05:31:56Z",
"released_by_email": "<string>",
"release_reason": "manual",
"release_note": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.