Skip to content

Commit 4aac6f7

Browse files
Merge pull request #335 from openshift-cherrypick-robot/cherry-pick-331-to-18.0-fr3
[18.0-fr3] [tempest re-run] Fix behavior for workflows
2 parents 6028f18 + b7311b3 commit 4aac6f7

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

api/bases/test.openstack.org_tempests.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,13 +1758,11 @@ spec:
17581758
of tobiko tests).
17591759
type: boolean
17601760
rerunFailedTests:
1761-
default: false
17621761
description: |-
17631762
Activate tempest re-run feature. When activated, tempest will perform
17641763
another run of the tests that failed during the first execution.
17651764
type: boolean
17661765
rerunOverrideStatus:
1767-
default: false
17681766
description: |-
17691767
Allow override of exit status with the tempest re-run feature.
17701768
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
@@ -251,18 +251,16 @@ type WorkflowTempestSpec struct {
251251

252252
// +kubebuilder:validation:Optional
253253
// +operator-sdk:csv:customresourcedefinitions:type=spec
254-
// +kubebuilder:default:=false
255254
// Activate tempest re-run feature. When activated, tempest will perform
256255
// another run of the tests that failed during the first execution.
257-
RerunFailedTests bool `json:"rerunFailedTests"`
256+
RerunFailedTests *bool `json:"rerunFailedTests,omitempty"`
258257

259258
// +kubebuilder:validation:Optional
260259
// +operator-sdk:csv:customresourcedefinitions:type=spec
261-
// +kubebuilder:default:=false
262260
// Allow override of exit status with the tempest re-run feature.
263261
// When activated, the original return value of the tempest run will be
264262
// overridden with a result of the tempest run on the set of failed tests.
265-
RerunOverrideStatus bool `json:"rerunOverrideStatus"`
263+
RerunOverrideStatus *bool `json:"rerunOverrideStatus,omitempty"`
266264

267265
// +kubebuilder:validation:Optional
268266
// +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
@@ -1758,13 +1758,11 @@ spec:
17581758
of tobiko tests).
17591759
type: boolean
17601760
rerunFailedTests:
1761-
default: false
17621761
description: |-
17631762
Activate tempest re-run feature. When activated, tempest will perform
17641763
another run of the tests that failed during the first execution.
17651764
type: boolean
17661765
rerunOverrideStatus:
1767-
default: false
17681766
description: |-
17691767
Allow override of exit status with the tempest re-run feature.
17701768
When activated, the original return value of the tempest run will be

0 commit comments

Comments
 (0)