32 lines
1.2 KiB
YAML
32 lines
1.2 KiB
YAML
parameters:
|
|
- $ref: ../components/parameters.yml#/LabId
|
|
post:
|
|
operationId: CheckLab
|
|
summary: Run the checker of the template against the nodes of a ready lab.
|
|
description: |-
|
|
The checker of the template connects from the host side of the lab
|
|
management bridge to the nodes (SSH or the RouterOS API) and evaluates
|
|
the criteria of the variant that the seed selected. It only reads the
|
|
node state and never changes it, so a repeated call is harmless; the
|
|
result is not stored by `labd`. The call is synchronous and bounded by
|
|
the check timeout of the provisioner.
|
|
|
|
The result is checker state for the backend only: the backend scores the
|
|
lab answer with it and never forwards it to the candidate.
|
|
|
|
A lab that is not `ready` answers 409 `state_conflict`. When the
|
|
checker cannot reach a node or the template has no working checker, the
|
|
provisioner answers 503 `lab_unavailable`: nothing was evaluated, and the
|
|
outcome is never a failed check.
|
|
tags:
|
|
- checks
|
|
responses:
|
|
"200":
|
|
description: The checker evaluated every criterion.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../components/schemas.yml#/LabCheckResult
|
|
default:
|
|
$ref: ../components/responses.yml#/Problem
|