-
Notifications
You must be signed in to change notification settings - Fork 4
Unit tests to cover most of mig/shared/base.py #366
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
Conversation
client_id_dir function for starters.
fill_distinguished_name, fill_user, canonical_user and generate_https_urls as well.
Uses FakeConfiguration, but should probably inline parameters and perhaps even swith to a _before_each structure.
… in corner cases of the implementation.
accordingly. Cover auth_type_description.
…ather than `self.dummy_conf` attribute.
18f5af4 to
29ea7cf
Compare
|
This looks good to me - I would however suggest renaming the PR. The current title reads like a generic facility which isn't quite auccrate - somethin like: "Fundamental test coverage of mig/shared/basic". The in the description: |
albu-diku
left a comment
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.
I have approved these changes as the code itself looks good - but I have made some suggestions about the PR title and description that I think would clarify what is here in case it is referred to in future: #366 (comment)
I think it may also be preferable to squash the work here down to a single commit at the point of landing it for clarity.
Thanks for the review. Yes, the title had indeed been left behind from the original commit. Updated now. |
Addressed the first bit above, and good point about simplifying on merge. I'll give squash merge a try. |
Unit tests wrapping existing self-tests and most of the helper functions.
While building the test suite I discovered some corner cases that we currently don't support all that well. The corresponding tests are therefore left disabled but marked with TODO for follow-up.