From Fedora Project Wiki
Description
This test case ensures that the authselect
tool and authselect-libs
function correctly in managing system authentication settings.
Setup
- Ensure you have a Fedora system.
- Install the
authselect
andauthselect-libs
packages:sudo dnf install authselect authselect-libs
. - Backup the current authentication settings:
sudo authselect current > authselect_backup.txt
.
How to test
- Open a terminal.
- View current authentication setup:
sudo authselect current
. - List available profiles:
sudo authselect list
. - Select a different profile, for instance, 'sssd':
sudo authselect select sssd
. - Verify the change by viewing the current authentication setup again:
sudo authselect current
. - To ensure libraries function, perform operations or run tools that depend on
authselect-libs
. - Restore the original authentication settings using the backup file: `sudo authselect select $(cat authselect_backup.txt
Expected Results
- The
authselect current
command should display the current profile without errors. - The
authselect list
command should list available profiles. - After selecting a new profile,
authselect current
should display the newly selected profile. - Any operations or tools that depend on
authselect-libs
should run without errors related to authentication settings. - After restoring, the authentication setup should be reverted to the original state, matching the backup.
Optional
For deeper testing:
- Test switching between multiple authentication profiles.
- Modify a profile and check if changes are accurately reflected.
- Ensure integration with other services, like SSSD or winbind, works when those respective profiles are selected.