ansible/test/integration/roles
Will Thames eb2a3a91a8 task_result _check_key should handle empty results (#16766)
When a task result has an empty results list, the
list should be ignored when determining the results
of `_check_key`. Here the empty list is treated the
same as a non-existent list.

This fixes a bug that manifests itself with squashed
items - namely the task result contains the correct
value for the key, but an empty results list. The
empty results list was treated as zero failures
when deciding which handler to call - so the task
show as a success in the output, but is deemed to
have failed when deciding whether to continue.

This also demonstrates a mismatch between task
result processing and play iteration.

A test is also added for this case, but it would not
have caught the bug - because the bug is really in
the display, and not the success/failure of the
task (visually the test is more accurate).

Fixes ansible/ansible-modules-core#4214
2016-08-04 17:13:33 -05:00
..
ec2_elb_instance_setup Fixes for tests that assumed yum as package manager for systems that 2015-12-20 08:06:26 -08:00
ec2_provision_instances Adding an integration test for the ec2_elb module 2014-04-28 20:37:08 -05:00
prepare_http_tests Switch test_lookups to badssl/local testing. (#16466) 2016-06-27 18:58:13 -07:00
prepare_rax_tests/defaults Make the wait_timeout for rax tests a configurable default 2015-06-29 12:09:16 -05:00
prepare_tests/tasks Moving creating of testing work dir out of dep role and into Makefile 2016-03-03 15:26:08 -05:00
prepare_win_tests Allow prepare_win_tests role to run multiple times, before each role that depends on it. 2015-05-31 23:15:28 -04:00
setup_ec2 Fixing up shell quoting issues 2014-07-22 10:09:11 -05:00
setup_mysql_db Run tests on ubuntu1604 and opensuseleap (#15936) 2016-05-31 14:47:36 -07:00
setup_postgresql_db Run tests on ubuntu1604 and opensuseleap (#15936) 2016-05-31 14:47:36 -07:00
test_add_host/tasks fix for dynamic (add_host) hosts not available in hostvars 2015-11-16 10:53:10 -08:00
test_always_run add check_mode option for tasks (#16056) 2016-07-22 20:40:14 -04:00
test_apache2_module use userdir module as example instead of alias (#15540) 2016-05-04 00:09:26 +02:00
test_apt tests: fix tests on Debian 8 2016-05-04 00:11:19 +02:00
test_apt_repository use git-core ppa instead of menulibre 2016-07-03 15:18:08 +02:00
test_assemble Revert "Add prefixing and suffixing fuctionality to assemble module" (#16084) 2016-06-01 09:17:10 -04:00
test_async Updating integration tests for async testing 2016-07-07 13:48:11 -05:00
test_authorized_key Add test for multi-options in authorized_key (#16375) 2016-06-20 21:12:45 -04:00
test_azure assert password or ssh key provided on new image creation 2015-07-09 13:44:09 -04:00
test_bad_parsing fixed typo 2015-07-27 22:54:57 -04:00
test_become Elevate privileges when checking for file existence 2015-11-11 23:42:35 +10:00
test_binary Better names for the test_binary tests 2015-02-02 19:33:05 -08:00
test_binary_modules/tasks Increase async time limit on tests to 10 seconds. (#16921) 2016-08-02 13:30:26 -07:00
test_changed_when Rename tests to test, use old directory name. 2014-02-20 19:11:15 -05:00
test_check_mode add check_mode option for tasks (#16056) 2016-07-22 20:40:14 -04:00
test_cloudflare_dns Add integration tests for the cloudflare_dns module 2016-03-25 21:22:29 +01:00
test_command_shell Fixing up some output stuff 2015-07-14 00:23:17 -04:00
test_conditionals Document and test 'is undefined' rather than 'is not defined' 2015-07-25 14:05:27 +02:00
test_consul_acl/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_consul_inventory/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_consul_kv/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_consul_service/tasks Update consul integration test with http checks 2015-08-19 00:38:36 +02:00
test_consul_session/tasks Initial commit of Ansible support for the Consul clustering framework (http://consul.io). 2015-01-24 01:09:03 +00:00
test_copy Assert things against the recursive copy result to make sure it did something 2016-02-23 16:29:08 -05:00
test_cs_account cloudstack: more integration tests 2015-09-22 16:17:21 +02:00
test_cs_affinitygroup cloudstack: fix tests unhashable type: 'dict' 2015-08-19 21:39:58 +02:00
test_cs_cluster cloudstack: new integration tests test_cluster 2016-03-15 21:41:08 +01:00
test_cs_common/defaults cloudstack: integration tests 2015-05-03 16:06:30 +02:00
test_cs_configuration cloudstack: new integration tests test_cs_configuration 2016-03-15 21:39:09 +01:00
test_cs_domain cloudstack: add more integration tests 2015-08-23 22:48:32 +02:00
test_cs_firewall cloudstack: add tests for cs_firewall 2015-05-19 09:39:50 +02:00
test_cs_instance cloudstack: test_cs_instance: more integration tests 2015-12-20 22:37:48 +01:00
test_cs_instance_facts cloudstack: new integration tests test_cs_instance_facts 2016-03-15 21:40:45 +01:00
test_cs_instancegroup cloudstack: fix tests unhashable type: 'dict' 2015-08-19 21:39:58 +02:00
test_cs_iso cloudstack: add more integration tests 2015-08-23 22:48:32 +02:00
test_cs_loadbalancer_rule cloudstack: add tests for cs_loadbalancer_rule and _member 2015-10-17 14:01:02 +02:00
test_cs_pod cloudstack: new integration tests test_cs_pod 2016-03-15 21:41:08 +01:00
test_cs_portforward cloudstack: add tests for cs_portforward 2015-05-19 10:11:55 +02:00
test_cs_project cloudstack: add more integration tests 2015-08-23 22:48:32 +02:00
test_cs_resourcelimit cloudstack: new integration tests test_cs_resourcelimit 2016-03-15 21:41:08 +01:00
test_cs_securitygroup cloudstack: fix tests unhashable type: 'dict' 2015-08-19 21:39:58 +02:00
test_cs_securitygroup_rule cloudstack: integration tests 2015-05-03 16:06:30 +02:00
test_cs_sshkeypair cloudstack: fix tests unhashable type: 'dict' 2015-08-19 21:39:58 +02:00
test_cs_user cloudstack: more integration tests 2015-09-22 16:17:21 +02:00
test_cs_vmsnapshot cloudstack: add more integration tests 2015-08-23 22:48:32 +02:00
test_cs_volume cloudstack: cs_volume: add tests for volume resize 2015-12-20 22:33:53 +01:00
test_docker Fixes for tests that assumed yum as package manager for systems that 2015-12-20 08:06:26 -08:00
test_ec2 [test_ec2*] cloud integration test updates 2014-03-13 11:28:02 -04:00
test_ec2_ami [test_ec2*] cloud integration test updates 2014-03-13 11:28:02 -04:00
test_ec2_asg/tasks Properly empties ASG before terminating it, and waits for ASG to be deleted. 2015-01-27 15:39:26 -05:00
test_ec2_eip Re-enable the ec2_eip test 2014-08-05 09:20:23 -05:00
test_ec2_elb Adding an ec2_elb test to re-add an instance that had been removed 2014-04-30 13:59:24 -05:00
test_ec2_elb_lb just a few spelling error changes 2015-04-28 09:36:42 -04:00
test_ec2_facts [test_ec2*] cloud integration test updates 2014-03-13 11:28:02 -04:00
test_ec2_group Removing cruft leftover from the deprecation of include+with_items 2014-06-03 13:33:26 -05:00
test_ec2_key [test_ec2*] cloud integration test updates 2014-03-13 11:28:02 -04:00
test_ec2_tag [test_ec2*] cloud integration test updates 2014-03-13 11:28:02 -04:00
test_ec2_vol [test_ec2*] cloud integration test updates 2014-03-13 11:28:02 -04:00
test_ec2_vpc [test_ec2*] cloud integration test updates 2014-03-13 11:28:02 -04:00
test_embedded_module Fix bug in plugin path caching 2014-10-04 21:47:38 -05:00
test_facts_d Rename tests to test, use old directory name. 2014-02-20 19:11:15 -05:00
test_failed_when/tasks Revert "corrected failed_when test" 2016-03-10 09:08:17 -05:00
test_fetch Fix fetch action plugin to not fail if file is missing and fail_if_missing=False (the default). Add tests to test_fetch role to verify it works as expected. 2015-09-14 14:21:52 -04:00
test_file corrected several usages of deprecated bare vars 2016-02-08 13:13:15 -05:00
test_filters Removing test for map filter until we can figure out how that's supposed to work 2016-01-08 16:41:56 -05:00
test_force_handlers Mark tasks expected to fail with EXPECTED FAILURE. 2016-05-31 11:29:04 -07:00
test_gce Adds support for attaching persistent disks to GCE instances 2014-04-13 18:38:31 -07:00
test_gce_pd Adds support for creating GCE persistent disks from snapshots 2014-04-13 18:38:31 -07:00
test_gem Rename tests to test, use old directory name. 2014-02-20 19:11:15 -05:00
test_get_url Add a get_url test for www.google.com (#16212) 2016-06-13 10:59:42 -07:00
test_git Fix git shallow update (#16224) 2016-07-05 15:07:42 -04:00
test_good_parsing removed invocation from tests as it is only available on very very verbose mode 2015-10-31 13:00:53 -04:00
test_handlers tests: checks that handlers work with loops 2015-07-20 14:41:03 +02:00
test_handlers_meta Ensure handlers run when meta tasks are defined and add handler integration tests 2014-03-25 13:33:52 -04:00
test_hash_behavior fix default/main.yml to defaults/main.yml 2016-07-02 21:16:33 +09:00
test_hg test_hg fix: remove reference to "head" 2015-11-20 13:02:17 +01:00
test_ignore_errors Rename tests to test, use old directory name. 2014-02-20 19:11:15 -05:00
test_includes Multiple fixes for include statements and blocks in general 2015-08-26 02:23:22 -04:00
test_iterators sequence will now run once for start=end, added test to suite 2015-08-18 02:33:23 -04:00
test_lineinfile Fixing some small bugs related to integration tests (v2) 2015-06-01 16:42:10 -05:00
test_lookups Switch test_lookups to badssl/local testing. (#16466) 2016-06-27 18:58:13 -07:00
test_mysql_db Handle unexpected database presence 2015-11-15 10:45:24 +10:00
test_mysql_user Run tests on ubuntu1604 and opensuseleap (#15936) 2016-05-31 14:47:36 -07:00
test_mysql_variables Update test to use mysql connect_timeout option. 2016-03-16 22:31:48 -07:00
test_ping/tasks Rename tests to test, use old directory name. 2014-02-20 19:11:15 -05:00
test_pip Added tests to verify pip installation with VCS urls 2015-11-03 14:54:40 +00:00
test_postgresql New integration tests for postgresql 2014-12-01 19:10:35 -08:00
test_rax Make the wait_timeout for rax tests a configurable default 2015-06-29 12:09:16 -05:00
test_rax_cbs Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_cbs_attachments Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_cdb Fix YAML source and check it on Shippable (#15678) 2016-06-04 10:58:17 -07:00
test_rax_cdb_database Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_clb Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_clb_nodes Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_facts Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_identity Add tests for rax_identity 2015-02-11 12:59:02 -06:00
test_rax_keypair Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_meta Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_network Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_rax_scaling_group Fix YAML formatting issue for rax integration tests 2015-06-30 09:38:12 -05:00
test_script Fixing up the logic in the test_script tests removal portion 2016-03-31 15:59:19 -04:00
test_service Testing that service not enabled during check run (#16739) 2016-07-29 08:35:03 -07:00
test_special_vars added minimal testing for special template vars 2015-07-07 20:11:55 -04:00
test_stat Add a fips fact and use it for integration tests 2014-11-12 09:29:21 -08:00
test_su preliminary privlege escalation unification + pbrun 2015-03-10 18:42:36 -04:00
test_subversion test_svn fix: remove hardcoded "~/ansible_testing/svn" path 2015-11-20 13:36:55 +01:00
test_sudo Elevate privileges when checking for file existence 2015-11-11 23:42:35 +10:00
test_synchronize Cleaning up FIXMEs 2015-10-22 16:03:50 -04:00
test_task_ordering/tasks add integration test to assert included tasks run in proper order 2016-06-23 17:53:08 -07:00
test_template add check_mode option for tasks (#16056) 2016-07-22 20:40:14 -04:00
test_unarchive Updating tests for new module feature for remote_src in unarchive 2016-07-14 12:15:17 -05:00
test_uri Run tests on ubuntu1604 and opensuseleap (#15936) 2016-05-31 14:47:36 -07:00
test_var_blending When var name is the same as var content, try to template it before reporting that var is not defined. (#13629) 2016-05-01 06:42:09 -07:00
test_var_precedence Split out various vars-related things to avoid merging too early 2014-11-17 15:31:55 -06:00
test_var_precedence_dep Fixing role dependency chain creation 2016-01-22 12:54:00 -05:00
test_var_precedence_inven_override/tasks Test that we can override variables set in inventory when the vars_file name is templated 2014-09-09 15:43:10 -07:00
test_var_precedence_role1 Fix order of resolving dependent role variables from vars files 2014-10-03 13:30:47 -05:00
test_var_precedence_role2 Fix issue with vars precedence from roles 2014-09-30 15:50:46 -05:00
test_var_precedence_role3 Correct variable blending from vars_files with hostvars in them 2014-08-20 15:49:01 -05:00
test_win_copy corrected several usages of deprecated bare vars 2016-02-08 13:13:15 -05:00
test_win_feature Only run win_feature tests when the host has the ServerManager module. 2015-05-29 13:57:11 -04:00
test_win_fetch/tasks Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_file corrected several usages of deprecated bare vars 2016-02-08 13:13:15 -05:00
test_win_get_url fix windows integration tests to run under kerberos users 2016-05-17 13:40:54 -07:00
test_win_group Add integration tests for win_group module. 2015-08-22 18:49:55 -04:00
test_win_lineinfile integration tests for windows implementation of lineinfile 2015-07-29 19:50:06 -04:00
test_win_msi Download files from S3 to improve reliability. (#16891) 2016-07-31 08:48:32 -07:00
test_win_ping Add PowerShell exception handling and turn on strict mode. 2015-09-15 16:32:35 -04:00
test_win_raw/tasks Modify task executor to reuse connection inside a loop. Fix WinRM connection to set _connected properly and display when remote shell is opened/closed. Add integration test using raw + with_items. 2015-11-23 11:53:05 -05:00
test_win_regedit added further tests for win_regedit to cover the changes made 2016-06-16 06:37:49 +01:00
test_win_regmerge adding integration tests for win_regmerge module (extras) 2015-12-09 08:57:06 +00:00
test_win_script fix windows integration tests to run under kerberos users 2016-05-17 13:40:54 -07:00
test_win_service Add integration tests for win_service module. 2014-07-02 08:12:40 -04:00
test_win_setup/tasks fix setup test for renamed windows fact 2016-07-14 18:02:04 -07:00
test_win_slurp/tasks Add integration tests for fetch/slurp, make powershell fetch/slurp work as close as possible to existing fetch/slurp modules. 2014-06-19 14:25:28 -05:00
test_win_stat/tasks Fixes for WinRM/PowerShell support in v2. 2015-07-31 14:38:31 -04:00
test_win_template Fix for PowerShell unquote method when passed None. 2015-08-02 18:38:29 -04:00
test_win_user ensure test_win_user fails on bogus error 2016-04-07 18:24:12 -07:00
test_yum task_result _check_key should handle empty results (#16766) 2016-08-04 17:13:33 -05:00
test_zypper extend zypper integration tests (#15596) 2016-04-27 08:04:58 -07:00
test_zypper_repository Run tests on ubuntu1604 and opensuseleap (#15936) 2016-05-31 14:47:36 -07:00