#9980 Test failure in test_trust_functional.py::TestTrustFunctionalUser::test_su_ad_user (f45+)
Closed: fixed by rcritten. Opened by frenaud.

Issue

The test test_trust_functional.py::TestTrustFunctionalUser::test_su_ad_user is failing in rawhide (f45) as it expects and exact output but the su command includes additional messages.

Test scenario:
run su - nonposixuser@AD-XHYP.TEST -c whoami in a trust environment

Actual behavior

The output contains:

Last login: Mon Apr 27 14:39:33 UTC 2026 from 10.0.189.151 on ssh
nonposixuser@ad-xhyp.test

but the test expects only the user name, not the line with Last login: ...

Version/Release/Distribution

Seen in IDMCI - https://$ARTIFACTS_SERVER/idm-ci/freeipa_upstream_nightly/Nightly-rawhide/master/2026-04-25_19-30/rawhide/test_trust_functional/4/report.html?sort=result

Additional info:

The test needs to be adapted and be more flexible. The line Last login: ... started appearing with util-linux-2.42-7.fc45.x86_64.


Metadata Update from @frenaud:
- Issue tagged with: test-failure, tests

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/8371

master:

  • 6da412ef6e1f2d935be6896f34e5f408733a32ca ipatests: adapt the expected output message

ipa-4-12:

  • f4ae7e65532a0f56a2bb3568588328f88051f863 ipatests: adapt the expected output message

ipa-4-13:

  • 2b455469337f8be2dc2a6ca887b3933684bdbee3 ipatests: adapt the expected output message

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata