@@ -20,10 +20,11 @@ type CustomExpectation struct {
2020}
2121
2222type CustomExpectationAction struct {
23- Service string `wst:"service"`
24- Timeout int `wst:"timeout"`
25- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
26- Custom CustomExpectation `wst:"custom"`
23+ Service string `wst:"service"`
24+ Timeout int `wst:"timeout"`
25+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
26+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
27+ Custom CustomExpectation `wst:"custom"`
2728}
2829
2930type OutputExpectation struct {
@@ -36,10 +37,11 @@ type OutputExpectation struct {
3637}
3738
3839type OutputExpectationAction struct {
39- Service string `wst:"service"`
40- Timeout int `wst:"timeout"`
41- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
42- Output OutputExpectation `wst:"output"`
40+ Service string `wst:"service"`
41+ Timeout int `wst:"timeout"`
42+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
43+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
44+ Output OutputExpectation `wst:"output"`
4345}
4446
4547type Headers map [string ]string
@@ -58,10 +60,11 @@ type ResponseExpectation struct {
5860}
5961
6062type ResponseExpectationAction struct {
61- Service string `wst:"service"`
62- Timeout int `wst:"timeout"`
63- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
64- Response ResponseExpectation `wst:"response"`
63+ Service string `wst:"service"`
64+ Timeout int `wst:"timeout"`
65+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
66+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
67+ Response ResponseExpectation `wst:"response"`
6568}
6669
6770type MetricRule struct {
@@ -76,10 +79,11 @@ type MetricsExpectation struct {
7679}
7780
7881type MetricsExpectationAction struct {
79- Service string `wst:"service"`
80- Timeout int `wst:"timeout"`
81- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
82- Metrics MetricsExpectation `wst:"metrics"`
82+ Service string `wst:"service"`
83+ Timeout int `wst:"timeout"`
84+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
85+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
86+ Metrics MetricsExpectation `wst:"metrics"`
8387}
8488
8589type ShellCommand struct {
@@ -95,7 +99,8 @@ type Command interface{}
9599type ExecuteAction struct {
96100 Service string `wst:"service"`
97101 Timeout int `wst:"timeout"`
98- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
102+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
103+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
99104 Id string `wst:"id,default=last"`
100105 Command Command `wst:"command,factory=createCommand"`
101106 RenderTemplate bool `wst:"render_template,default=true"`
@@ -106,7 +111,8 @@ type ExecuteAction struct {
106111type RequestAction struct {
107112 Service string `wst:"service"`
108113 Timeout int `wst:"timeout"`
109- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
114+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
115+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
110116 Id string `wst:"id,default=last"`
111117 Path string `wst:"path"`
112118 EncodePath bool `wst:"encode_path,default=true"`
@@ -117,7 +123,8 @@ type RequestAction struct {
117123type BenchAction struct {
118124 Service string `wst:"service"`
119125 Timeout int `wst:"timeout"`
120- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
126+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
127+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
121128 Id string `wst:"id,default=last"`
122129 Path string `wst:"path"`
123130 Method string `wst:"method,enum=GET|HEAD|DELETE|POST|PUT|PATCH|PURGE,default=GET"`
@@ -127,51 +134,58 @@ type BenchAction struct {
127134}
128135
129136type ParallelAction struct {
130- Actions []Action `wst:"actions,factory=createActions"`
131- Timeout int `wst:"timeout"`
132- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
137+ Actions []Action `wst:"actions,factory=createActions"`
138+ Timeout int `wst:"timeout"`
139+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
140+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
133141}
134142
135143type SequentialAction struct {
136- Actions []Action `wst:"actions,factory=createActions"`
137- Service string `wst:"service"`
138- Timeout int `wst:"timeout"`
139- Name string `wst:"name"`
140- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
144+ Actions []Action `wst:"actions,factory=createActions"`
145+ Service string `wst:"service"`
146+ Timeout int `wst:"timeout"`
147+ Name string `wst:"name"`
148+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
149+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
141150}
142151
143152type NotAction struct {
144- Action Action `wst:"action,factory=createAction"`
145- Timeout int `wst:"timeout"`
146- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
153+ Action Action `wst:"action,factory=createAction"`
154+ Timeout int `wst:"timeout"`
155+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
156+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
147157}
148158
149159type StartAction struct {
150- Service string `wst:"service"`
151- Services []string `wst:"services"`
152- Timeout int `wst:"timeout"`
153- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
160+ Service string `wst:"service"`
161+ Services []string `wst:"services"`
162+ Timeout int `wst:"timeout"`
163+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
164+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
154165}
155166
156167type ReloadAction struct {
157- Service string `wst:"service"`
158- Services []string `wst:"services"`
159- Timeout int `wst:"timeout"`
160- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
168+ Service string `wst:"service"`
169+ Services []string `wst:"services"`
170+ Timeout int `wst:"timeout"`
171+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
172+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
161173}
162174
163175type RestartAction struct {
164- Service string `wst:"service"`
165- Services []string `wst:"services"`
166- Timeout int `wst:"timeout"`
167- When string `wst:"when,enum=always|on_success|on_fail,default=on_success"`
176+ Service string `wst:"service"`
177+ Services []string `wst:"services"`
178+ Timeout int `wst:"timeout"`
179+ When string `wst:"when,enum=always|on_success|on_failure,default=on_success"`
180+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
168181}
169182
170183type StopAction struct {
171- Service string `wst:"service"`
172- Services []string `wst:"services"`
173- Timeout int `wst:"timeout"`
174- When string `wst:"when,enum=always|on_success|on_fail,default=always"`
184+ Service string `wst:"service"`
185+ Services []string `wst:"services"`
186+ Timeout int `wst:"timeout"`
187+ When string `wst:"when,enum=always|on_success|on_failure,default=always"`
188+ OnFailure string `wst:"on_failure,enum=fail|ignore|skip,default=fail"`
175189}
176190
177191type Action interface {
0 commit comments