ansible/test/integration/targets
Robin Roth afca957396 Fix UnboundLocalError remote_head in git (#19057)
* Fix UnboundLocalError remote_head in git

Fixes #5505

The use of remote_head was a leftover of #4562.
remote_head is not necessary, since the repo is unchanged anyway and
after is set correctly.

Further changes:
* Set changed=True and msg once local_mods are detected and reset.
* Remove need_fetch that is always True (due to previous if) to improve
clarity
* Don't exit early for local_mods but run submodules update and
switch_version

* Add test for git with local modifications
2016-12-14 08:36:15 -08: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 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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
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 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 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 Split integration tests out from Makefile. (#17976) 2016-10-12 14:57:53 -07: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 Split integration tests out from Makefile. (#17976) 2016-10-12 14:57:53 -07:00
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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
dellos6_config Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08: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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08: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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
dellos10_facts Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
eos_config Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
eos_eapi Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
eos_facts Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
eos_template Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08: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 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 Fix UnboundLocalError remote_head in git (#19057) 2016-12-14 08:36:15 -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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
ios_config Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
ios_facts Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
ios_template Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
iosxr_command Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
iosxr_config Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
iosxr_facts Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
iosxr_template Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
iterators Initial ansible-test implementation. (#18556) 2016-11-29 21:21:53 -08:00
junos_command Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
junos_config Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
junos_netconf Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
junos_template Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
nxos_config Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
nxos_facts Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
nxos_nxapi Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
nxos_template Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
ops_command Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
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 Migrate Network Tests into ansible/ansible (#18233) 2016-10-28 19:50:29 +01:00
prepare_http_tests Migrate Linux CI roles to test targets. (#17997) 2016-10-13 09:09:25 -07:00
prepare_nxos_tests/tasks Migrate Network Tests into ansible/ansible (#18233) 2016-10-28 19:50:29 +01: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_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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
setup_postgresql_db Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -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 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 Fix cosmetic problems in YAML source 2016-11-11 14:50:57 -08:00
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