Retrieve a Test Suite
Get a single test suite by its unique ID or fully qualified name.
Get by ID
UUID of the test suite to retrieve.
Comma-separated list of fields to include: owners, tests.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
Get by Fully Qualified Name
Use GET /v1/dataQuality/testSuites/name/{fqn} to retrieve by fully qualified name.
Fully qualified name of the test suite.
Comma-separated list of fields to include: owners, tests.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
GET /v1/dataQuality/testSuites/{id}
from metadata.sdk import configure
from metadata.sdk.entities import TestSuites
configure(
host="https://your-company.getcollate.io/api",
jwt_token="your-jwt-token"
)
# Get by ID
ts = TestSuites.retrieve("e86a9a11-852f-4bac-b5a7-993b2bbbb572")
print(f"{ts.displayName} (executable: {ts.executable})")
# Get by ID with fields
ts = TestSuites.retrieve(
"e86a9a11-852f-4bac-b5a7-993b2bbbb572",
fields=["owners", "tests"]
)
# Get by fully qualified name
ts = TestSuites.retrieve_by_name("b5fcae09-02c2-4c0b-8c4a-5b52d650e592")
{
"id": "e86a9a11-852f-4bac-b5a7-993b2bbbb572",
"name": "b5fcae09-02c2-4c0b-8c4a-5b52d650e592",
"displayName": "Data Contract - dim_address_comprehensive_contract",
"fullyQualifiedName": "b5fcae09-02c2-4c0b-8c4a-5b52d650e592",
"version": 0.1,
"updatedAt": 1769982757893,
"updatedBy": "admin",
"deleted": false,
"owners": [],
"executable": true
}
Returns
Returns a test suite object with all requested fields populated.
Response
Unique identifier for the test suite (UUID format).
Fully qualified name of the test suite.
Human-readable display name.
Description of the test suite.
Whether this is an executable or logical test suite.
Version number for the entity.
List of owners. Only included when fields contains owners.
List of test case references. Only included when fields contains tests.
Error Handling
| Code | Error Type | Description |
|---|
401 | UNAUTHORIZED | Invalid or missing authentication token |
403 | FORBIDDEN | User lacks permission to view this test suite |
404 | NOT_FOUND | Test suite with given ID or FQN does not exist |