-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix: Ignore disabled clients in monitors when enabled #64
base: main
Are you sure you want to change the base?
Conversation
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.
Please add some tests to ensure that the bugs cannot be introduced in future again.
I have added tests for the ServiceAccountWithSensitiveRole monitor, but should probably take this opportunity to add tests for the other four monitors as well. So, please hold off on merging for now. |
Added test cases for all monitors now. Should probably go back and rewrite some of the older test cases with the techniques I learned now, but if I do that, we will never merge this 😁. |
Some of the monitors did not respect the
--ignore-disabled-clients
switch. This PR fixes that issue and closes #46 (or, to be exact, its more general case, as that issue only refers to one of the three affected monitors).