-
Notifications
You must be signed in to change notification settings - Fork 290
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
Added test case to validate error event #410
Conversation
1aeb6ef
to
0266e04
Compare
test/e2e/notifier/error/error.go
Outdated
isAllowed := utils.AllowedEventKindsMap[utils.EventKind{ | ||
Resource: resource, | ||
Namespace: "all", | ||
EventType: config.ErrorEvent}] || | ||
utils.AllowedEventKindsMap[utils.EventKind{ | ||
Resource: resource, | ||
Namespace: test.Namespace, | ||
EventType: config.ErrorEvent}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Divya063 Let's use utils.CheckOperationAllowed()
method we recently added to check if event allowed. Please rebase with the latest develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PrasadG193 Sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PrasadG193 Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Divya063 did you miss committing the changes? I don't see this resolved
Fixes part of Add test coverage for error events #340