Web app for checking tmt tests and plans
- Create a virtual environment
- Install the requirements
- Use the
start_api.sh
script to start the api
To run the tests, use the pytest command
API for checking tmt tests and plans metadata
The API version is defined by prefix in url, e.g.
/v0.1/status
/
- returns ID of the created Celery task with additional metadata in JSON and callback url for/status
endpoint, returns the same in HTML format ifformat
is set tohtml
-
test-url
- URL of the repo test is located in - accepts astring
-
test-ref
- Ref of the repository the test is located in - accepts astring
, defaults to default branch of the repo -
test-path
- Points to directory wherefmf
tree is stored -
test-name
- Name of the test - accepts astring
-
plan-url
- URL of the repo plan is located in - accepts astring
-
plan-ref
- Ref of the repository the plan is located in - accepts astring
, defaults to default branch of the repo -
plan-path
- Points to directory wherefmf
tree is stored -
plan-name
- Name of the plan - accepts astring
-
format
- Format of the output - accepts astring
, default isjson
, other options arexml
,html
(serves as a basic human-readable output format) -
id
- Unique ID of the tmt object
-
/status
- returns a status of the tmt object being processed by the backendtask_id
- ID of the task - accepts astring
/status/html
- returns a status of the tmt object being processed by the backend in a simple HTML formattingtask_id
- ID of the task - accepts astring
/health
- returns a health status of the service
If we want to display metadata for both tests and plans, we can combine the test-*
and plan-*
options together, they are not mutually exclusive.
test-url
and test-name
, or plan-url
and plan-name
are required.