feat(labs): describe the lab task contract and the provisioner port
This commit is contained in:
1 parent
3de226b16c
commit
9fdaa62b9b
91 files changed
+19262
-155
No files matched your search
@@ -0,0 +1,31 @@
|
||||
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
|
||||
Reference in new issue
Block a user