Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST PR] create new tests to test RA #29512

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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