ansible/test/integration/targets
Adrian Likins ae3d7fb29e Fix vault reading from stdin (avoid realpath() on non-links) (#23583)
* Fix vault reading from stdin (avoid realpath() on non-links)

os.path.realpath() is used to find the target of file paths that
are symlinks so vault operations happen directly on the target.

However, in addition to resolving symlinks, realpath() also returns
a full path. when reading from stdin, vault cli uses '-' as a special
file path so VaultEditor() will replace with stdin.
realpath() was expanding '-' with the CWD to something like
'/home/user/playbooks/-' causing errors like:

        ERROR! [Errno 2] No such file or directory: u'/home/user/ansible/-'

Fix is to specialcase '-' to not use realpath()

Fixes #23567

* to_text decrypt output when writing to stdout
2017-04-18 13:09:02 -04: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 Add workaround for evasive in apache2_module (#22649) 2017-04-04 14:12:06 -04: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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
asa_command Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
asa_config Check for removal not allowed errors (#19251) 2017-01-25 13:05:44 +00:00
assemble Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
async Fix infrequent PEP 8 issues. 2017-01-27 14:06:21 -08:00
async_extra_data Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
authorized_key authorized_key: support --diff (#19277) 2017-01-03 09:32:32 -05: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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
binary_modules_posix Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
binary_modules_winrm Complete rewrite of Windows exec wrapper (#21510) 2017-02-17 00:09:56 -08:00
blocks Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
callback_retry_task_name Fix 'task name is not templated in retry callback' (add task_name property to TaskResult) (#21214) 2017-02-24 12:33:24 -05: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 wait_for_connection: Wait for system to become reachable (#20011) 2017-03-01 11:00:49 -08:00
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 Add pipeline-ish method using dd for file transfer over SSH (#18642) 2017-01-19 12:31:14 -05:00
connection_winrm Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
copy Fix for recursive copy slowness 2017-04-07 12:41:42 -04:00
delegate_to Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
dellos6_command Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
dellos6_config Use inventory_hostname_short (#20054) 2017-01-09 17:21:04 +00:00
dellos6_facts Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
dellos9_command Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
dellos9_config Use inventory_hostname_short (#20054) 2017-01-09 17:21:04 +00:00
dellos9_facts Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
dellos10_command Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
dellos10_config Use inventory_hostname_short (#20054) 2017-01-09 17:21:04 +00:00
dellos10_facts Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
deploy_helper Fix deploy_helper integration tests. 2017-04-03 16:59:40 -07:00
dnf Installroot OS version check fix (#20180) 2017-01-12 18:02:35 -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 added test emulating #23180 use case 2017-04-12 18:34:29 -04:00
eos_banner Do not assert session name on idempotent eos banner (#23402) 2017-04-07 15:44:06 +02:00
eos_command Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
eos_config fixes issue with config parents on eos modules (#21923) 2017-02-25 16:40:13 -05:00
eos_eapi fixes eos_eapi to error on wrong transport (#21993) 2017-02-27 09:20:08 -05:00
eos_facts updates eos_facts integration test cases (#21988) 2017-02-27 07:43:00 -05:00
eos_system Test system (#22420) 2017-03-08 12:21:45 -07:00
eos_template Use inventory_hostname_short (#20054) 2017-01-09 17:21:04 +00:00
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 Add missing needs/root alias to file test. (#22800) 2017-03-20 14:11:16 -07:00
filters Fix hash filter for non-ascii strings and Python3 2017-02-15 10:50:10 -08:00
gathering_facts Fix and enable more tests for osx and freebsd. (#20482) 2017-01-19 17:10:33 -08:00
gem Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
get_url Urls client cert auth (#18141) 2017-04-07 09:54:37 -07:00
git git: git reset with branch 2017-04-04 10:45:04 -07:00
group_by Add missing group_vars to group_by test. 2017-04-04 10:14:10 -07:00
groupby_filter Improve jinja2 test coverage. (#20533) 2017-01-20 16:38:52 -08:00
handlers tests: add handler listen test cases 2017-01-03 15:00:00 -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_banner Fix asserts on ios_banner tests (#23315) 2017-04-05 20:00:10 +02:00
ios_command Enable more ios tests on Shippable. 2017-01-20 13:26:59 -08:00
ios_config Enable more ios tests on Shippable. 2017-01-20 13:26:59 -08:00
ios_facts enable ios_facts tests again (#23310) 2017-04-05 17:50:32 +01:00
ios_system Test system (#22420) 2017-03-08 12:21:45 -07:00
ios_template Enable more ios tests on Shippable. 2017-01-20 13:26:59 -08:00
iosxr_command iosxr tests to work with 2.3 (#21998) 2017-02-27 14:37:06 +00:00
iosxr_config result.commands (not .updates) (#22139) 2017-03-01 13:10:40 +00:00
iosxr_facts iosxr tests: Initial work for 2.3 (#20883) 2017-01-31 19:10:14 +00:00
iosxr_system Test system (#22420) 2017-03-08 12:21:45 -07:00
iosxr_template Set block indentation to 1 on iosxr templates (#21105) 2017-02-07 21:13:20 +01:00
iterators Fix 'sequence' lookup shortcut syntax and documentation (#22989) 2017-03-29 19:11:19 -04:00
junos_command update junos_command integration tests (#22213) 2017-03-02 16:46:23 -06:00
junos_config roll up of fixes and updates for junos modules (#22543) 2017-03-12 11:45:00 -05:00
junos_netconf roll up of fixes and updates for junos modules (#22543) 2017-03-12 11:45:00 -05:00
junos_template fixes candidate var type in junos shared lib (#22551) 2017-03-13 07:27:45 -04:00
known_hosts known_hosts: support --diff (#20349) 2017-02-08 09:56:03 -05:00
lineinfile Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
locale_gen Fix locale_gen to compare native strings rather than mixing byte and text strings 2017-01-04 10:11:33 -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 Make password lookup treat /dev/null as a special case 2017-02-15 12:15:09 -08:00
loops Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
module_utils Module utils default path (#20913) 2017-02-02 17:48:53 -08:00
mount Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
mysql_db Disable failing MySQL tests on FreeBSD. (#22798) 2017-03-20 09:52:56 -07:00
mysql_user Disable failing MySQL tests on FreeBSD. (#22798) 2017-03-20 09:52:56 -07:00
mysql_variables Disable failing MySQL tests on FreeBSD. (#22798) 2017-03-20 09:52:56 -07:00
net_command WIP: net_command: Initial tests for VyOS (#20147) 2017-01-17 11:06:34 +00:00
no_log Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
nxos_command Add missing aliases files on nxos integration targets (#23070) 2017-03-29 13:28:43 +02:00
nxos_config Add missing aliases files on nxos integration targets (#23070) 2017-03-29 13:28:43 +02:00
nxos_evpn_global Add missing aliases files on nxos integration targets (#23070) 2017-03-29 13:28:43 +02:00
nxos_facts Fix nxos_facts for nxapi transport (#23302) 2017-04-05 11:47:37 -04:00
nxos_feature Add missing aliases files on nxos integration targets (#23070) 2017-03-29 13:28:43 +02:00
nxos_interface Add aliases file to nxos_interface integration target (#23069) 2017-03-29 12:50:16 +02:00
nxos_mtu Attempt to clear up nxos_mtu tests and documentation (#23361) 2017-04-06 12:26:17 -04:00
nxos_nxapi Add missing aliases files on nxos integration targets (#23070) 2017-03-29 13:28:43 +02:00
nxos_system Add missing aliases files on nxos integration targets (#23070) 2017-03-29 13:28:43 +02:00
nxos_template Add missing aliases files on nxos integration targets (#23070) 2017-03-29 13:28:43 +02:00
ops_command Make tests run on fresh install (#19566) 2017-01-03 10:53:16 -05:00
parsing New module: cnos_vlan and various utility files (#21107) 2017-02-16 08:11:39 +00: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 add a intg test for issue #19835 (#21487) 2017-02-15 15:28:29 -05:00
prepare_eos_tests/tasks Migrate Network Tests into ansible/ansible (#18233) 2016-10-28 19:50:29 +01:00
prepare_http_tests Urls client cert auth (#18141) 2017-04-07 09:54:37 -07:00
prepare_ios_tests integration/targets/ios_* work to support IOS (#20414) 2017-01-20 20:18:12 +00:00
prepare_iosxr_tests iosxr tests: Initial work for 2.3 (#20883) 2017-01-31 19:10:14 +00:00
prepare_nxos_tests/tasks updates prepare_nxos_tests to use nxos_nxapi module (#22150) 2017-03-01 19:36:03 +00:00
prepare_tests/tasks Migrate Linux CI roles to test targets. (#17997) 2016-10-13 09:09:25 -07:00
prepare_win_tests Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
pull Rewrite ansible-pull tests to use local repo. (#22821) 2017-03-21 00:30:02 -07:00
script Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
sefcontext Added tests for sefcontext module 2016-12-22 13:29:13 -08:00
service Associate systemd module with service test. (#22847) 2017-03-24 13:29:18 -07:00
setup_mysql_db Enable MySQL tests on FreeBSD. 2017-02-14 12:39:48 -08:00
setup_postgresql_db Run postgresql tests on FreeBSD. (#20676) 2017-01-25 18:45:28 -08:00
slurp Test the slurp module 2017-02-15 11:14:03 -08:00
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 Windows: Use the correct newline sequence for the platform (#21846) 2017-03-23 19:47:10 -07:00
template_jinja2_latest Improve jinja2 test coverage. (#20533) 2017-01-20 16:38:52 -08: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 Urls client cert auth (#18141) 2017-04-07 09:54:37 -07: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 Fix vault reading from stdin (avoid realpath() on non-links) (#23583) 2017-04-18 13:09:02 -04: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 Vyos config fixes (#21862) 2017-02-25 21:14:40 -05:00
wait_for_connection wait_for_connection: Wait for system to become reachable (#20011) 2017-03-01 11:00:49 -08:00
win_async_wrapper make windows async ... async (#22624) 2017-03-14 16:37:55 -07:00
win_chocolatey Do not run win_chocolatey in CI tests. 2017-03-17 08:57:44 -07:00
win_command Fix broken Shippable 2017-01-31 16:47:16 -08:00
win_copy win_copy: added remote and content options (#21546) 2017-03-01 22:35:03 -08:00
win_feature Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_fetch Remove win_fetch from CI due to instability. 2017-01-24 17:33:11 -08:00
win_file Added fix for win_file with broken symlinks (#19146) 2017-02-08 18:49:49 -08:00
win_find Fix integration aliases. 2017-04-03 17:49:35 -07:00
win_firewall_rule win_firewall_rule doesn't fail when profile is "any" or remoteip is IPv4 and the task runs more than once. (#22555) 2017-03-23 20:01:26 -07:00
win_get_url Test www.redhat.com instead of docs.ansible.com. 2017-02-21 20:24:22 -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_path new module: win_path (#20073) 2017-01-17 20:21:04 -08:00
win_ping Complete rewrite of Windows exec wrapper (#21510) 2017-02-17 00:09:56 -08:00
win_raw force Windows to always use preamble-free UTF8 input encoding (#22934) 2017-03-24 00:02:39 -07:00
win_reg_stat win_reg_stat change the module parameters for standardisation (#22732) 2017-03-23 15:15:28 -07:00
win_regedit Adds integration test steps to win_regedit test to cover Extras 2090 (#15641) 2017-02-27 13:05:00 +00:00
win_region Added win_region module (#19147) 2017-02-20 11:50:27 +00:00
win_regmerge minor spelling changes 2016-12-13 13:51:13 -05:00
win_scheduled_task win_scheduled_tasks: Improve example test framework (#22833) 2017-03-23 19:42:12 -07:00
win_script fix Windows env handling (#22927) 2017-03-23 17:48:15 -07:00
win_service win_service Added -Force option and minor cleanup (#22598) 2017-03-14 18:53:31 -07:00
win_setup Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_shell force Windows to always use preamble-free UTF8 input encoding (#22934) 2017-03-24 00:02:39 -07:00
win_shortcut Fix integration aliases. 2017-04-03 17:49:35 -07:00
win_slurp Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
win_stat win_stat change return islink to islnk to match stat (#23196) 2017-04-03 11:38:34 -07:00
win_template Windows: Use the correct newline sequence for the platform (#21846) 2017-03-23 19:47:10 -07:00
win_user Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
yum Installroot OS version check fix (#20180) 2017-01-12 18:02:35 -08:00
zypper Disable zypper tests for CI due to timeouts. 2017-04-06 08:48:31 -07:00
zypper_repository Add test for auto_import_keys in zypper_repository (#17898) 2016-12-09 09:47:56 -05:00