The test test_integration/test_idp.py::TestIDPKeycloak::test_auth_sudo_idp is failing on fedora 42, see for instance this run.
test_integration/test_idp.py::TestIDPKeycloak::test_auth_sudo_idp
Test scenario: configure IPA with an external IDP provider configure a sudo rule allowing keycloak user to run the "yum" command run 'su -c "sudo yum list yum" keycloakuser'
The test is failing in the last step, but the failure happens because "yum list yum" does not find any package, not because of a sudorule issue:
INFO ipatests.pytest_ipa.integration.host.Host.replica0.IPAOpenSSHTransport:transport.py:391 RUN su -c "sudo yum list yum" keycloakuser DEBUG ipatests.pytest_ipa.integration.host.Host.replica0.cmd133:transport.py:513 RUN su -c "sudo yum list yum" keycloakuser DEBUG ipatests.pytest_ipa.integration.host.Host.replica0.cmd133:transport.py:557 Updating and loading repositories: DEBUG ipatests.pytest_ipa.integration.host.Host.replica0.cmd133:transport.py:557 Repositories loaded. DEBUG ipatests.pytest_ipa.integration.host.Host.replica0.cmd133:transport.py:557 No matching packages to list DEBUG ipatests.pytest_ipa.integration.host.Host.replica0.cmd133:transport.py:217 Exit code: 1 ERROR ipatests.pytest_ipa.integration.host.Host.replica0.cmd133:host.py:201 stderr: Updating and loading repositories: Repositories loaded. No matching packages to list
This happens because there is no yum package on fedora 42.
The test should be fixed by calling "yum list" with a different package, for instance sssd-client as this package is mandatory on IPA nodes.
Metadata Update from @frenaud: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/7749
master:
Metadata Update from @sumenon: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
ipa-4-12: