Skip to content

Commit

Permalink
create new tests to test RA
Browse files Browse the repository at this point in the history
  • Loading branch information
sosiouxme committed Jan 31, 2025
1 parent 953f818 commit 8849ed7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,15 @@ func (*auditLogAnalyzer) ConstructComputedIntervals(ctx context.Context, startin
func (w *auditLogAnalyzer) EvaluateTestsFromConstructedIntervals(ctx context.Context, finalIntervals monitorapi.Intervals) ([]*junitapi.JUnitTestCase, error) {
ret := []*junitapi.JUnitTestCase{}

ret = append(ret, &junitapi.JUnitTestCase{
Name: "a failed test that has never been seen before",
FailureOutput: &junitapi.FailureOutput{
Message: "stuff failed",
Output: "stuff definitely failed fo sho",
},
})
ret = append(ret, &junitapi.JUnitTestCase{Name: "a passed test that has never been seen before"})

fiveHundredsTestName := "[Jira:kube-apiserver] kube-apiserver should not have internal failures"
apiserver500s := finalIntervals.Filter(func(eventInterval monitorapi.Interval) bool {
return eventInterval.Message.Reason == monitorapi.ReasonKubeAPIServer500s
Expand Down

0 comments on commit 8849ed7

Please sign in to comment.