From Fedora Project Wiki

Description

This test case ensures that the authselect tool and authselect-libs function correctly in managing system authentication settings.

Setup

  1. Ensure you have a Fedora system.
  2. Install the authselect and authselect-libs packages: sudo dnf install authselect authselect-libs.
  3. Backup the current authentication settings: sudo authselect current > authselect_backup.txt.

How to test

  1. Open a terminal.
  2. View current authentication setup: sudo authselect current.
  3. List available profiles: sudo authselect list.
  4. Select a different profile, for instance, 'sssd': sudo authselect select sssd.
  5. Verify the change by viewing the current authentication setup again: sudo authselect current.
  6. To ensure libraries function, perform operations or run tools that depend on authselect-libs.
  7. Restore the original authentication settings using the backup file: `sudo authselect select $(cat authselect_backup.txt

Expected Results

  1. The authselect current command should display the current profile without errors.
  2. The authselect list command should list available profiles.
  3. After selecting a new profile, authselect current should display the newly selected profile.
  4. Any operations or tools that depend on authselect-libs should run without errors related to authentication settings.
  5. After restoring, the authentication setup should be reverted to the original state, matching the backup.

Optional

For deeper testing:

  1. Test switching between multiple authentication profiles.
  2. Modify a profile and check if changes are accurately reflected.
  3. Ensure integration with other services, like SSSD or winbind, works when those respective profiles are selected.