-
Notifications
You must be signed in to change notification settings - Fork 16
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
maint(pam/integration-tests): Cleanup tests code reducing duplicates and add some docs #567
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #567 +/- ##
==========================================
- Coverage 84.53% 84.14% -0.39%
==========================================
Files 79 80 +1
Lines 7036 7072 +36
Branches 75 75
==========================================
+ Hits 5948 5951 +3
- Misses 759 792 +33
Partials 329 329 ☔ View full report in Codecov by Sentry. |
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.
Looks good, just a small question...
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.
Thanks for the changes. Nice work!
53413fb
to
d46eb62
Compare
We've lots of similar code that is hard to maintain in the VHS tests, so factorize it and use the same helpers in all the tests to manage the VHS setup and launch.
These are not related to the cli tests anymore
It's not something that we need to build by default, being used only by tests or for manual testing, so move it out from pam folder since it doesn't need to access to any pam-private stuff either
We've two types of clients: - The PAM Application Test Client that is used to start a PAM transaction And now we refer to it as the PAM Runner. - The PAM Exec Child Client that is the app implementing the PAM module API through DBus. So hopefully clarify this
…bility Adding new options or settings to a test makes it hard to read, so split the test cases to be in multi-line mode
d46eb62
to
efa8336
Compare
We had almost equal tests definitions for integration tests using VHS, and since we're just about to add some more, it's time to try to factorize the code so that we don't end up having 3 times the same code being repeated, with all the maintenance issues we know.
So: