-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
[Enter feedback here]
Deleted test runs appear in the Runs - list API, and there is no documented way to filter these out,
I have found the status is set to 255 when a run is deleted, however this is an assumption and basing API interaction on an un-documented behavior is problematic.
Please would it be possible to update the documentation with an approved method to filter on deleted test runs.
Sources:
Runs Delete:
https://learn.microsoft.com/en-us/rest/api/azure/devops/test/runs/delete?view=azure-devops-rest-7.1&tabs=HTTP
Current workaround:
runs = []
for run in all_runs:
if not run.state == "255":
runs.append(run)
return runs
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 8b071947-4c0f-d01e-a968-82b2e4f4f186
- Version Independent ID: 8333333f-014c-9b91-c63e-9ed45d16b06a
- Content: Runs - Delete - REST API (Azure DevOps Test)
- Content Source: docs-ref-autogen/7.1/test/Runs/Delete.yml
- Service: azure-devops
- Sub-service: azure-devops-ref
- GitHub Login: @wnjenkin
- Microsoft Alias: whjenkin
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels