-
Notifications
You must be signed in to change notification settings - Fork 270
TESTS: Add tests to cover access control access_filter (AD/LDAP) #7880
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
TESTS: Add tests to cover access control access_filter (AD/LDAP) #7880
Conversation
|
Due to my lack of knowledge I am struggling with the filters. I created the entire scaffolding but I really need help from either @danlavu or @pbrezina test_access_filter__single_ldap_attribute_permits_user_login
test_access_filter__group_attributes_permits_user_login
test_access_filter__ldap_query_with_wildcard_permits_user_login
test_access_filter__ldap_query_with_and_or_not_permits_user_login
test_access_filter__ldap_attributes_approximately_greater_and_less_than_permits_user_login
Miscellaneous
|
77fb57b to
93d36bd
Compare
4b1ee68 to
8b7d42f
Compare
8b7d42f to
3a603ed
Compare
3a603ed to
ddc08d4
Compare
2619ae6 to
99c0d0e
Compare
|
Some of the mypy coding failures are related to SSSD/sssd-test-framework#161, so once it is merged it should get rid of the warnings. |
|
So, for Here is and here is Based on a quick research:
|
99c0d0e to
981f776
Compare
cc7cce6 to
a6e3545
Compare
|
CI failures are not related to this PR. |
thalman
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
thalman
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.
Generally I prefer approach with reusing object instead of copying username around
user1 = provider.user("user1").add()
...
assert client.auth.ssh.password(user1.name, "Secret123"), f"`{user1.name}` should be able to login!"
But if you consider your approach more readable I'm fine with that. ACK
|
It looks to me that CI errors are not in the test |
|
@danlavu I don't know which labels should be set when it comes to back porting or not, can you please handle that? |
|
@andreboscatto, sorry for the delay, done. |
|
@andreboscatto, please rebase. |
Added 5 test cases to cover AD and LDAP access_filter conditions using the new testing framework
a081eff to
b3b1f3a
Compare
|
There was a conflict in sssd-2-9-4. Please open explicit backport PR if needed. |
Added 5 test cases to cover AD and LDAP access_filter conditions using the new testing framework