-
Notifications
You must be signed in to change notification settings - Fork 270
adding subid test #8225
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
base: master
Are you sure you want to change the base?
adding subid test #8225
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.
Code Review
This pull request adds a new system test for subid configuration in IPA. My review focuses on the new test case, where I've found several copy-paste errors in the assertions that would cause the test to fail or report incorrect information. I've provided suggestions to fix the incorrect function calls and assertion messages.
d731c99 to
64194c5
Compare
|
This requires two other PRs.
|
jakub-vavra-cz
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.
LGTM
src/tests/system/tests/test_ipa.py
Outdated
| ), f"Subordinate UID start range {uid.range_start} does not match: {subid.uid_start}!" | ||
| assert ( | ||
| subid.uid_size == uid.range_size | ||
| ), f"Subordinate UID start range {uid.range_size} does not match: {subid.uid_size}!" |
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.
Copy-paste error.
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.
It's correct, but I think it's from the confusing variable names and attributes.
subid from ipa has four attributes
- subid.uid_size
- subid.uid_range
- subid.gid_size
- subid.gid_range
tools.getsubids, returns two
- range_size
- range_start
subid.uid_size == object.range_size
subid.uid_start == object.range_start
subid.gid_size == group_object.range_size
subid.gid_start == group_object.range_start
The variables have been changed, let me know if it's still confusing.
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.
The text itself - "Subordinate UID start range" - was a copy&paste error.
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.
Text says "UID start range" but prints "{uid.range_size}".
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.
My mistake, fixed.
src/tests/system/tests/test_ipa.py
Outdated
| ), f"Subordinate GID start range {gid.range_start} does not match: {subid.gid_start}!" | ||
| assert ( | ||
| subid.gid_size == gid.range_size | ||
| ), f"Subordinate GID start range {gid.range_size} does not match: {subid.gid_size}!" |
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.
Copy-paste error.
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.
Fixed.
d09a147 to
2724d2c
Compare
|
@danlavu, |
8b19216 to
ce3167e
Compare
|
Note: |
|
@jakub-vavra-cz, are you fine with the latest version? |
|
I set 'Blocked' until patch "do not add this commit" removed. |
|
SSSD/sssd-test-framework#221 was merged. |
No description provided.