#9957 ipatests: Add downstream bash ipa-getkeytab/ipa-rmkeytab CLI test suite
Closed: fixed by frenaud. Opened by jayg2309.

Add ipa-getkeytab and ipa-rmkeytab CLI test cases for user principals to ipatests/test_cmdline/test_ipagetkeytab.py to improve upstream test coverage and enable earlier detection of failures in upstream CI.

The existing test coverage in test_ipagetkeytab.py focuses on service principals. These new test cases extend coverage to user principals, exercising the following areas:

Quiet mode, access control, and credential cache handling
--server / -s with valid and invalid hostnames
--principal / -p with unknown, invalid-realm, bare, and realm-qualified user principals
--keytab / -k creation, enctype content, and invalid file paths
-e single enctype filtering with kinit validation
--password / -P key rotation
-D / -w bind DN error cases (empty DN, wrong password, missing password)
ipa-rmkeytab removal by principal, by realm, and invalid keytab path handling

Test cases that duplicate existing upstream coverage are skipped with comments referencing the original test locations.


master:

  • ead16bfb2570f9aec10f2ed70a0588f1b71ece07 ipatests: Add user-principal ipa-getkeytab and ipa-rmkeytab cmdline tests

ipa-4-12:

  • 0458c05e3439ba49876a6fcae1632e64c089d229 ipatests: Add user-principal ipa-getkeytab and ipa-rmkeytab cmdline tests

ipa-4-13:

  • 9a8553fc297987b006b28ade2098d613f9b5360f ipatests: Add user-principal ipa-getkeytab and ipa-rmkeytab cmdline tests

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

Metadata