Add setup roles for passlib and pexpect for use with pause and vars_prompt tests (#43613)

* Add passlib to RHEL test instance

This looks like the only tests instance that is missing this libary. It is needed for vars_prompt tests.

* Create setup roles for pexect and passlib

Switch to using aliases rather than installing directly in the test scripts

(cherry picked from commit 96c2375692)
pull/49623/head
Sam Doran 6 years ago committed by Toshio Kuratomi
parent af03dd0463
commit afb2e9d029

@ -1 +1,2 @@
setup/always/setup_pexpect
shippable/posix/group3

@ -25,5 +25,4 @@ ansible-playbook pause-3.yml -i ../../inventory > /dev/null \
ansible-playbook test-pause.yml -i ../../inventory "$@"
# Interactively test pause
pip install pexpect
python test-pause.py -i ../../inventory "$@"

@ -0,0 +1,4 @@
- name: Install passlib
pip:
name: passlib
state: present

@ -0,0 +1,4 @@
- name: Install pexpect
pip:
name: pexpect
state: present

@ -1 +1,3 @@
setup/always/setup_passlib
setup/always/setup_pexpect
shippable/posix/group2

@ -2,14 +2,5 @@
set -eux
# Install passlib on RHEL and FreeBSD
dist=$(python -c 'import platform; print(platform.dist()[0])')
system=$(python -c 'import platform; print(platform.system())')
if [[ "$dist" == "redhat" || "$system" == "FreeBSD" ]]; then
pip install passlib
fi
# Interactively test vars_prompt
pip install pexpect
python test-vars_prompt.py -i ../../inventory "$@"

Loading…
Cancel
Save