Skip to content

Commit 5b8b4e1

Browse files
Merge pull request #331 from sdatko/tempest-rerun-2
[tempest re-run] Fix behavior for workflows
2 parents e632356 + 67b64af commit 5b8b4e1

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

api/bases/test.openstack.org_tempests.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,13 +1776,11 @@ spec:
17761776
of tobiko tests).
17771777
type: boolean
17781778
rerunFailedTests:
1779-
default: false
17801779
description: |-
17811780
Activate tempest re-run feature. When activated, tempest will perform
17821781
another run of the tests that failed during the first execution.
17831782
type: boolean
17841783
rerunOverrideStatus:
1785-
default: false
17861784
description: |-
17871785
Allow override of exit status with the tempest re-run feature.
17881786
When activated, the original return value of the tempest run will be

api/v1beta1/tempest_types_workflow.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,18 +255,16 @@ type WorkflowTempestSpec struct {
255255

256256
// +kubebuilder:validation:Optional
257257
// +operator-sdk:csv:customresourcedefinitions:type=spec
258-
// +kubebuilder:default:=false
259258
// Activate tempest re-run feature. When activated, tempest will perform
260259
// another run of the tests that failed during the first execution.
261-
RerunFailedTests bool `json:"rerunFailedTests"`
260+
RerunFailedTests *bool `json:"rerunFailedTests,omitempty"`
262261

263262
// +kubebuilder:validation:Optional
264263
// +operator-sdk:csv:customresourcedefinitions:type=spec
265-
// +kubebuilder:default:=false
266264
// Allow override of exit status with the tempest re-run feature.
267265
// When activated, the original return value of the tempest run will be
268266
// overridden with a result of the tempest run on the set of failed tests.
269-
RerunOverrideStatus bool `json:"rerunOverrideStatus"`
267+
RerunOverrideStatus *bool `json:"rerunOverrideStatus,omitempty"`
270268

271269
// +kubebuilder:validation:Optional
272270
// +operator-sdk:csv:customresourcedefinitions:type=spec

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/test.openstack.org_tempests.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,13 +1776,11 @@ spec:
17761776
of tobiko tests).
17771777
type: boolean
17781778
rerunFailedTests:
1779-
default: false
17801779
description: |-
17811780
Activate tempest re-run feature. When activated, tempest will perform
17821781
another run of the tests that failed during the first execution.
17831782
type: boolean
17841783
rerunOverrideStatus:
1785-
default: false
17861784
description: |-
17871785
Allow override of exit status with the tempest re-run feature.
17881786
When activated, the original return value of the tempest run will be

0 commit comments

Comments
 (0)