Skip to content

Commit

Permalink
fix: ensure State always remains failed if any conditions fail
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed Nov 10, 2023
1 parent d574854 commit 711485f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/v1alpha1/validationresult_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ func TestHash(t *testing.T) {
UID: "1",
},
Spec: ValidationResultSpec{
Plugin: "AWS",
Plugin: "AWS",
ExpectedResults: 1,
},
Status: ValidationResultStatus{
State: ValidationSucceeded,
Expand All @@ -39,7 +40,7 @@ func TestHash(t *testing.T) {
},
},
},
expectedHash: "Ldcfr8OZ6D/LRuLfasCrKg==",
expectedHash: "Jp+QKNlngLsgv2kTlKhR3w==",
},
}
for _, c := range cs {
Expand Down

0 comments on commit 711485f

Please sign in to comment.