-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* drop `ResultData`, it's no longer needed and `Result` can handle all the work; * add `guest` key as proposed in [1]; * add schema for validation of (custom) `results.yaml`; * `execute` step saves `results.yaml` as a list of results rather than a mapping, to make allow one test being executed multiple times. See [2]. [1] #1614 (comment) [2] #1614
- Loading branch information
Showing
7 changed files
with
235 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
|
||
# | ||
# JSON Schema definition for tmt `results.yaml` file | ||
# | ||
# https://tmt.readthedocs.io/en/stable/spec/plans.html#execute | ||
# | ||
|
||
$id: /schemas/results | ||
$schema: https://json-schema.org/draft-07/schema | ||
|
||
type: array | ||
items: | ||
type: object | ||
additionalProperties: false | ||
|
||
properties: | ||
guest: | ||
type: object | ||
additionalProperties: false | ||
|
||
properties: | ||
name: | ||
type: string | ||
|
||
role: | ||
$ref: "/schemas/common#/definitions/role" | ||
|
||
required: [] | ||
minProperties: 1 | ||
|
||
name: | ||
type: string | ||
|
||
result: | ||
$ref: "/schemas/common#/definitions/result_outcome" | ||
|
||
note: | ||
type: string | ||
|
||
duration: | ||
$ref: "/schemas/common#/definitions/duration" | ||
|
||
ids: | ||
type: object | ||
patternProperties: | ||
^.*$: | ||
type: string | ||
|
||
log: | ||
type: array | ||
items: | ||
type: string | ||
|
||
required: | ||
- name | ||
- result |
Oops, something went wrong.