Skip to content
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

Push V3 branch to the main branch. #43

Merged
merged 41 commits into from
Jun 28, 2024
Merged

Push V3 branch to the main branch. #43

merged 41 commits into from
Jun 28, 2024

Conversation

GeorgePantelakis
Copy link
Collaborator

No description provided.

Pavel Yadlouski and others added 30 commits August 30, 2022 15:18
This commit contains following changes:
1. existing tests for p11_uri in sssd.conf are rewritten with use of
   console login instead of `su`.
2. Tests for 'with-smartcard-requied' profile are added
3. Test 'test_su_login_p11_uri_user_mismatch' is added (implemented
   via console login)
All the tests are using GUI module from SCAutolib to interact with system under test.
Tests are divided int two files. The first one tests GDM with both smart card and password login.
The second one tests lock screen from GNOME shell and lock-on-removal feature.
Tests in both files cover various SSSD parameters.
Unsufficient expects in the tests led to false
positive results. Expects fixing this faulty
behavior are added.
Co-authored-by: Marek Havrila <[email protected]>
This test was never working because the allowed sudo commands
needed to be added to IPA server. With this commit we fix this
issue by creating a new fixture that allows all commands with
sudo for the tested user.
Conftest takes care of loading user and card objects. It has to be
updated due to changes in SCAutolib, mainly:
- Card object is no longer bind to user object - it's independent
- Some attributes (as PIN) were moved from user to card objects
- SCAutolib supports multiple card objects and consequently
  correct CA certs need to be placed to CA database base on loaded
  card object
I realized that if there is multiple physical cards,
it is necessary to add multiple root CA certs to CA
db file.
SCAutolib-V3 is in development. It has changed
since last commit and SC-tests needs to be
updated to stay compatible. Backward compatibility
fix is introduced.
I made an error in previous commits and some changes did not get to V3 in previous PR. Adding them now.
mahavrila and others added 11 commits December 22, 2023 13:02
First automated tests used 'su' as a mean of testing smart card authentication.
However, these tests were usually supposed to test login (not su), but support
for any direct or indirect testing of login was not implemented yet. Testing
logins in TTY and also in GUI is already supported. It's time to check test
coverage and cover TCs that still use 'su' also with TTY and GUI logins.

Co-authored-by: George Pantelakis <[email protected]>
The test was removed for several reasons:
1) The test was never really working. The only reason it was passing was
   because of sssd caching.
2) The test in order to work needs a lot of extra parameters in sssd
   configuration and there is neither the knowledge nor the time to
   invest in learning it.
3) The LDAP mapping is not really used in our days and we believe that
   the case the test is testing is very rare.
1) Sanity/test_smart_card_detection.py::test_pam_services_config: added
   new line at the end on /etc/pam.d/pam_cert_service
2) Sanity/test_sssd_conf.py::test_matchrule_defined_for_other_user: fix
   the way it replaces certmap/shadowutils section
In later versions of Fedora the "Activities" title of the menu has been
removed.  Changing tests to use "tosearch" to look for the search field
shown on login.

Also adding .*code-workspace to gitignore.
1) added timeout to all assert_text calls.
2) Changed order between GUI and Authselect class calling in context
   manager so the HTML file will include Authselect logs. This happens
   because HTML file initialization happens in GUI __init__ func.
3) fixed minor issues in test_insert_card_prompt.
For the changes of passwd to Shadow Utils in RHEL-10, CentOS 10 and
fedora 40 there is no changing password message printed so the test
fails.
Copy link
Collaborator

@Jakuje Jakuje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let it fly!

@GeorgePantelakis GeorgePantelakis merged commit efde470 into main Jun 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants