@@ -67,6 +67,10 @@ def test_inspection_error(self):
67
67
ex = self ._execute_workflow ("examples.orquesta-fail-inspection" )
68
68
ex = self ._wait_for_completion (ex )
69
69
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
70
+ # delete the traceback key here since it provides no value to the
71
+ # testing
72
+ for i in ex .result ["errors" ]:
73
+ i .pop ("traceback" )
70
74
self .assertDictEqual (ex .result , {"errors" : expected_errors , "output" : None })
71
75
72
76
def test_input_error (self ):
@@ -84,6 +88,8 @@ def test_input_error(self):
84
88
ex = self ._execute_workflow ("examples.orquesta-fail-input-rendering" )
85
89
ex = self ._wait_for_completion (ex )
86
90
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
91
+ for i in ex .result ["errors" ]:
92
+ i .pop ("traceback" )
87
93
self .assertDictEqual (ex .result , {"errors" : expected_errors , "output" : None })
88
94
89
95
def test_vars_error (self ):
@@ -101,6 +107,9 @@ def test_vars_error(self):
101
107
ex = self ._execute_workflow ("examples.orquesta-fail-vars-rendering" )
102
108
ex = self ._wait_for_completion (ex )
103
109
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
110
+ for i in ex .result ["errors" ]:
111
+ i .pop ("traceback" )
112
+
104
113
self .assertDictEqual (ex .result , {"errors" : expected_errors , "output" : None })
105
114
106
115
def test_start_task_error (self ):
@@ -128,6 +137,9 @@ def test_start_task_error(self):
128
137
129
138
ex = self ._execute_workflow ("examples.orquesta-fail-start-task" )
130
139
ex = self ._wait_for_completion (ex )
140
+ for i in ex .result ["errors" ]:
141
+ i .pop ("traceback" )
142
+
131
143
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
132
144
self .assertDictEqual (ex .result , {"errors" : expected_errors , "output" : None })
133
145
@@ -149,6 +161,9 @@ def test_task_transition_error(self):
149
161
150
162
ex = self ._execute_workflow ("examples.orquesta-fail-task-transition" )
151
163
ex = self ._wait_for_completion (ex )
164
+ for i in ex .result ["errors" ]:
165
+ i .pop ("traceback" )
166
+
152
167
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
153
168
self .assertDictEqual (
154
169
ex .result , {"errors" : expected_errors , "output" : expected_output }
@@ -172,6 +187,8 @@ def test_task_publish_error(self):
172
187
173
188
ex = self ._execute_workflow ("examples.orquesta-fail-task-publish" )
174
189
ex = self ._wait_for_completion (ex )
190
+ for i in ex .result ["errors" ]:
191
+ i .pop ("traceback" )
175
192
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
176
193
self .assertDictEqual (
177
194
ex .result , {"errors" : expected_errors , "output" : expected_output }
@@ -191,6 +208,8 @@ def test_output_error(self):
191
208
192
209
ex = self ._execute_workflow ("examples.orquesta-fail-output-rendering" )
193
210
ex = self ._wait_for_completion (ex )
211
+ for i in ex .result ["errors" ]:
212
+ i .pop ("traceback" )
194
213
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
195
214
self .assertDictEqual (ex .result , {"errors" : expected_errors , "output" : None })
196
215
@@ -228,6 +247,9 @@ def test_task_content_errors(self):
228
247
229
248
ex = self ._execute_workflow ("examples.orquesta-fail-inspection-task-contents" )
230
249
ex = self ._wait_for_completion (ex )
250
+ for i in ex .result ["errors" ]:
251
+ i .pop ("traceback" )
252
+
231
253
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
232
254
self .assertDictEqual (ex .result , {"errors" : expected_errors , "output" : None })
233
255
@@ -264,6 +286,8 @@ def test_remediate_then_fail(self):
264
286
265
287
self ._wait_for_task (ex , "task1" , ac_const .LIVEACTION_STATUS_FAILED )
266
288
self ._wait_for_task (ex , "log" , ac_const .LIVEACTION_STATUS_SUCCEEDED )
289
+ for i in ex .result ["errors" ]:
290
+ i .pop ("traceback" )
267
291
268
292
# Assert workflow status and result.
269
293
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
@@ -301,6 +325,8 @@ def test_fail_manually(self):
301
325
# Assert task status.
302
326
self ._wait_for_task (ex , "task1" , ac_const .LIVEACTION_STATUS_FAILED )
303
327
self ._wait_for_task (ex , "task3" , ac_const .LIVEACTION_STATUS_SUCCEEDED )
328
+ for i in ex .result ["errors" ]:
329
+ i .pop ("traceback" )
304
330
305
331
# Assert workflow status and result.
306
332
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
@@ -334,6 +360,8 @@ def test_fail_continue(self):
334
360
335
361
# Assert task status.
336
362
self ._wait_for_task (ex , "task1" , ac_const .LIVEACTION_STATUS_FAILED )
363
+ for i in ex .result ["errors" ]:
364
+ i .pop ("traceback" )
337
365
338
366
# Assert workflow status and result.
339
367
self .assertEqual (ex .status , ac_const .LIVEACTION_STATUS_FAILED )
0 commit comments