-
Notifications
You must be signed in to change notification settings - Fork 48
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
feat: Added a fixture for integration tests to check selinux denials #312
base: master
Are you sure you want to change the base?
Conversation
84671c5
to
2e35f96
Compare
2e35f96
to
9457a1a
Compare
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.
This will make all test fail even if some other RHEL package has SELinux misconfigured and gets run. Which I guess is good, but it could poison our results for some time until it gets fixed.
Would it make sense to only check lines that might be related to our tools (e.g. insights-client, gpg, python, ...?)
While the idea is good, I think this ought to be done rather in pytest-client-tools:
|
Thanks for feedback, I agree that we should put it in pytest_client_tools. Eventually we would add such checks in rhc repo as well. So would you suggest keeping this fixture in pytest_client_tools/plugin.py ? |
Yes I planned to do so. |
9457a1a
to
e464b8d
Compare
Not as a fixture, no. There are already hooks that track certain parts of the tests execution flow, and the SELinux checks would need to be added there:
In pytest-client-tools there are already the bits to handle per-test stuff, so this should not be complicated to add. |
No description provided.