mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Integration tests requirements (#26545)
* Removed pexpect and jmespath requirement, install it in task directly * Removed passlib dependency
This commit is contained in:
parent
294c0f91c0
commit
0d48732e7e
4 changed files with 17 additions and 3 deletions
|
@ -15,6 +15,10 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
- name: Install test requirements
|
||||||
|
pip:
|
||||||
|
name: pexpect
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: record the test_command file
|
- name: record the test_command file
|
||||||
set_fact: test_command_file={{output_dir | expanduser}}/test_command.py
|
set_fact: test_command_file={{output_dir | expanduser}}/test_command.py
|
||||||
|
|
4
test/integration/targets/filters/filters.yml
Normal file
4
test/integration/targets/filters/filters.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- hosts: testhost
|
||||||
|
gather_facts: yes
|
||||||
|
roles:
|
||||||
|
- { role: filters }
|
9
test/integration/targets/filters/runme.sh
Executable file
9
test/integration/targets/filters/runme.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
# Requirements have to be installed prior to running ansible-playbook
|
||||||
|
# because plugins and requirements are loaded before the task runs
|
||||||
|
pip install jmespath
|
||||||
|
|
||||||
|
ANSIBLE_ROLES_PATH=../ ansible-playbook filters.yml -i ../../inventory -e @../../integration_config.yml "$@"
|
|
@ -1,9 +1,6 @@
|
||||||
cryptography
|
cryptography
|
||||||
jinja2
|
jinja2
|
||||||
jmespath
|
|
||||||
junit-xml
|
junit-xml
|
||||||
ordereddict ; python_version < '2.7'
|
ordereddict ; python_version < '2.7'
|
||||||
paramiko
|
paramiko
|
||||||
passlib
|
|
||||||
pexpect
|
|
||||||
pyyaml
|
pyyaml
|
||||||
|
|
Loading…
Reference in a new issue