-
Notifications
You must be signed in to change notification settings - Fork 2
/
stages_schema.yml
131 lines (131 loc) · 3.52 KB
/
stages_schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
"$ref": "#/definitions/Root"
definitions:
Root:
type: object
additionalProperties: false
properties:
stages:
type: array
items:
"$ref": "#/definitions/Stage"
required:
- stage
Stage:
type: object
additionalProperties: false
properties:
stage:
type: string
timeout_s:
type: integer
paths:
type: array
items:
"$ref": "#/definitions/Path"
required:
- stage
- timeout_s
- paths
title: stage
Path:
type: object
additionalProperties: false
properties:
check:
type: object
"$ref": "#/definitions/Check"
actions:
type: array
items:
"$ref": "#/definitions/Action"
nextStage:
type: string
required:
- check
- actions
- nextStage
title: path
Action:
type: object
additionalProperties: false
properties:
keyboard_key:
"$ref": "#/definitions/Keyboard"
keyboard_text:
"$ref": "#/definitions/KeyboardText"
mouse_move:
"$ref": "#/definitions/MouseMove"
mouse_click:
"$ref": "#/definitions/MouseClick"
reboot:
type: null
description: "Requests the VM to reboot."
title: action
KeyboardKey:
type: object
additionalProperties: false
properties:
value:
type: string
duration_s:
type: number
description: "The pause in seconds after each action. <key_down> <pause for duration_s> <key_up> <pause for duration_s>"
required:
- value
- duration_s
title: keyboard_key
KeyboardText:
type: object
additionalProperties: false
properties:
value:
type: string
description: "The key presses to send send."
duration_s:
type: number
description: "The pause in seconds after each action. <key1_down> <pause for duration_s> <key1_up> <pause for duration_s> <key2_down> <pause for duration_s> <key2_up> <pause for duration_s>..."
required:
- value
- duration_s
MouseMove:
type: object
additionalProperties: false
properties:
x_rel:
type: number
y_rel:
type: number
duration_s:
type: number
required:
- x_rel
- y_rel
- duration_s
title: mouse_move
MouseClick:
type: object
additionalProperties: false
properties:
value:
type: string
duration_s:
type: number
required:
- value
- duration_s
title: mouse_click
Check:
type: object
additionalProperties: false
properties:
file:
type: string
mse_leq:
type: number
ssim_geq:
type: number
required:
- file
- mse_leq
- ssim_geq
title: check