#8690 Add a tool to control interactive programs on remote hosts in IPA tests
Closed: fixed by sorlov. Opened by sorlov.

Use pexpect python module to control interactive installers and other command-line tools on remote hosts from integration tests. Add a wrapper to simplify usage of pexpect in common scenarios.

Use new approach to run ktutil which currently fails on systems with old version for readline library. Also adapt existing tests which run installers in interactive mode so that they not only send answers but also check that all questions are as expected.


master:

  • 7363c4b ipatests: add a tests-oriented wrapper for pexpect module
  • 1b25270 ipatests: use pexpect to invoke ktutil
  • caeed7e ipatests: use pexpect to control inetractive session of ipa-adtrust-install

ipa-4-9:

  • 29377901f7bc74baceda1bf42617dd69dacf10a2 ipatests: add a tests-oriented wrapper for pexpect module
  • 1c15447e1345a3c93932e70dea1177f6a42fb2d4 ipatests: use pexpect to invoke ktutil
  • 34d72d16ee3ac4e3979eed5be7ddf31997a485b8 ipatests: use pexpect to control inetractive session of ipa-adtrust-install

ipa-4-8:

  • a2d75437a2b44913e1e660e55d0465dbaa5846ba ipatests: add a tests-oriented wrapper for pexpect module
  • a66ae54d8a32439b0073e0b2a2e51ed7efba9f52 ipatests: use pexpect to invoke ktutil
  • fadf30ab038e3817850490a84becb86d1d236156 ipatests: use pexpect to control inetractive session of ipa-adtrust-install

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

Metadata