ansible/test/integration/targets
Dag Wieers 7c71c678fa Fix regression in search path behaviour
This PR fixes a few issues:

- Missing role parent directory for relative paths
- Fix integration tests (add missing stage)
- Redesign integration tests
- Incorrect order with tasks-lookups
- Duplicate paths are listed
- Repetitive tasks/tasks or files/files were possible

==== using copy with test.txt
Before:
```
   491 1481281038.29393: search_path:
        /home/dag/home-made/ansible.testing/roles/test134/files/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/test.txt
        /home/dag/home-made/ansible.testing/files/test.txt
        /home/dag/home-made/ansible.testing/test.txt
```

After:
```
 32505 1481280963.22418: search_path:
        /home/dag/home-made/ansible.testing/roles/test134/files/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/test.txt
        /home/dag/home-made/ansible.testing/files/test.txt
        /home/dag/home-made/ansible.testing/test.txt
```

==== Using copy with files/test.txt

Before:
```
 31523 1481280499.63052: search_path:
        /home/dag/home-made/ansible.testing/roles/test134/files/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/files/test.txt
        /home/dag/home-made/ansible.testing/files/files/test.txt
        /home/dag/home-made/ansible.testing/files/test.txt
```

After:
```
 31110 1481280299.38778: search_path:
        /home/dag/home-made/ansible.testing/roles/test134/files/test.txt
        /home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt
        /home/dag/home-made/ansible.testing/files/test.txt
```

==== Using template with files/test.txt.j2
Before:
```
 30074 1481280064.15191: search_path:
        /home/dag/home-made/ansible.testing/roles/test134/templates/files/test.txt.j2
        /home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt.j2
        /home/dag/home-made/ansible.testing/roles/test134/tasks/templates/files/test.txt.j2
        /home/dag/home-made/ansible.testing/roles/test134/tasks/tasks/files/test.txt.j2
        /home/dag/home-made/ansible.testing/templates/files/test.txt.j2
        /home/dag/home-made/ansible.testing/files/test.txt.j2
```

After:
```
 29201 1481279823.52752: search_path:
        /home/dag/home-made/ansible.testing/roles/test134/templates/files/test.txt.j2
        /home/dag/home-made/ansible.testing/roles/test134/files/test.txt.j2
        /home/dag/home-made/ansible.testing/roles/test134/tasks/templates/files/test.txt.j2
        /home/dag/home-made/ansible.testing/roles/test134/tasks/files/test.txt.j2
        /home/dag/home-made/ansible.testing/templates/files/test.txt.j2
        /home/dag/home-made/ansible.testing/files/test.txt.j2
```

This fixes #19048
2016-12-14 10:33:14 -05:00
..
add_host Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
ansible Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
apache2_module Test apache2 force (#18500) 2016-12-12 14:19:47 -08:00
apt Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
apt_repository Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
args Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
asa_acl
asa_command
asa_config
assemble Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
async Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
async_extra_data Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
authorized_key Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
become Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
binary Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
binary_modules
binary_modules_posix Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
binary_modules_winrm Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
blocks Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
changed_when Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
check_mode Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
command_shell Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
conditionals Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection
connection_chroot Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_docker Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_jail Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_libvirt_lxc Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_local Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_lxc Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_lxd Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_paramiko_ssh Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_posix
connection_ssh Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
connection_winrm Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
copy Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
delegate_to Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
dellos6_command
dellos6_config
dellos6_facts
dellos9_command
dellos9_config
dellos9_facts
dellos10_command
dellos10_config
dellos10_facts
dnf Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
docker Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
embedded_module Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
environment Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
eos_command
eos_config
eos_eapi
eos_facts
eos_template
facts_d Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
failed_when Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
fetch Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
file Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
filters Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
gathering_facts Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
gem Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
get_url Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
git Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
group_by Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
handlers Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
hash Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
hg Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
hosts_field Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
ignore_errors Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
include_vars Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
includes Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
ios_command
ios_config
ios_facts
ios_template
iosxr_command
iosxr_config
iosxr_facts
iosxr_template
iterators Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
junos_command
junos_config
junos_netconf
junos_template
lineinfile Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
lookup_paths Fix regression in search path behaviour 2016-12-14 10:33:14 -05:00
lookup_properties Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
lookups Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
loops Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
mount Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
mysql_db Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
mysql_user Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
mysql_variables Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
no_log Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
nxos_command
nxos_config
nxos_facts
nxos_nxapi
nxos_template
ops_command
parsing Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
ping Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
pip Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
postgresql minor spelling changes 2016-12-13 13:51:13 -05:00
prepare_eos_tests/tasks
prepare_http_tests
prepare_nxos_tests/tasks
prepare_tests/tasks
prepare_win_tests
pull_limit_inventory Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
pull_no_127 Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
pull_run Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
script Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
service Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
setup_mysql_db
setup_postgresql_db
special_vars Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
stat Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
subversion Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
synchronize Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
tags Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
task_ordering Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
template minor spelling changes 2016-12-13 13:51:13 -05:00
templating_settings Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
test_infra Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
unarchive Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
unicode Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
until Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
uri Fixes for uri under python3 and local (non-httptester) testing 2016-12-13 15:46:07 -08:00
var_blending Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
var_precedence Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
vault Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
vyos_command vyos: Don't run show commands that are over ANSIBLE_VYOS_TERMINAL_LENGTH (#18682) 2016-11-30 17:08:52 +00:00
vyos_config
win_async_wrapper Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_command Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_copy Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_feature Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_fetch Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_file Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_get_url Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_group Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_lineinfile Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_msi Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_package Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_ping Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_raw Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_regedit Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_regmerge minor spelling changes 2016-12-13 13:51:13 -05:00
win_script Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_service Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_setup Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_shell Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_slurp Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_stat Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_template Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_user Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
yum Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
zypper Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
zypper_repository Add test for auto_import_keys in zypper_repository (#17898) 2016-12-09 09:47:56 -05:00