Conversation
There was a problem hiding this comment.
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.
|
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.
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.
The text itself - "Subordinate UID start range" - was a copy&paste error.
There was a problem hiding this comment.
Text says "UID start range" but prints "{uid.range_size}".
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}!" |
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. |
2fe4b25 to
42995ba
Compare
No description provided.