Skip to content

Commit

Permalink
update: unit test after msg formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
teodor-yanev committed Sep 12, 2024
1 parent 3cf1883 commit 1f09e7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/api/protobuf/go/minder/v1/rule_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ func TestRuleType_WithDefaultShortFailureMessage(t *testing.T) {
},
{
name: "empty EvaluationFailureMessage",
r: &minderv1.RuleType{},
want: &minderv1.RuleType{ShortFailureMessage: "Rule evaluation failed"},
r: &minderv1.RuleType{Name: "TestRule"},
want: &minderv1.RuleType{ShortFailureMessage: "Rule TestRule evaluation failed", Name: "TestRule"},
},
{
name: "non-empty EvaluationFailureMessage",
r: &minderv1.RuleType{ShortFailureMessage: "Custom message"},
want: &minderv1.RuleType{ShortFailureMessage: "Custom message"},
r: &minderv1.RuleType{ShortFailureMessage: "Custom message", Name: "TestRule"},
want: &minderv1.RuleType{ShortFailureMessage: "Custom message", Name: "TestRule"},
},
}
for _, tt := range tests {
Expand Down

0 comments on commit 1f09e7f

Please sign in to comment.