ansible/test/units
Sam Doran 44d7c1e23e [stable-2.7] Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776)
* Catch SSH authentication errors and don't retry multiple times to prevent account lock out

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Subclass AnsibleAuthenticationFailure from AnsibleConnectionFailure

Use comparison rather than range() because it's much more efficient.

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Add tests

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Make paramiko_ssh connection plugin behave the same way

Signed-off-by: Sam Doran <sdoran@redhat.com>

* Add changelog

Signed-off-by: Sam Doran <sdoran@redhat.com>.
(cherry picked from commit 9d4c0dc111)

Co-authored-by: Sam Doran <sdoran@redhat.com>
Signed-off-by: Sam Doran <sdoran@redhat.com>
2019-01-24 10:38:08 -08:00
..
cli Fix unit tests which modify the source tree. (#45763) 2018-10-09 18:25:24 -07:00
config Fix another corner case of too many warnings for world readable current working directory 2018-08-23 20:23:59 -07:00
contrib Update vmware_inventory (#26308) 2017-07-18 07:20:23 -04:00
errors test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
executor Fix unittests for always adding basic to the AnsiBallZ zips 2018-08-24 15:37:13 -07:00
inventory_test_data/group_vars
mock AnsiballZ improvements 2018-07-26 20:07:25 -07:00
module_utils set ansible_os_family from name variable in os-release for clearlinux… (#49906) 2019-01-09 14:32:06 -08:00
modules [stable-2.7] FTD HTTP Api plugin bug fixes (#47747) (#48982) 2018-11-22 07:24:55 -08:00
parsing [stable-2.7] Support nested JSON decoding in AnsibleJSONDecoder (#45924) 2018-10-09 10:55:16 -07:00
playbook [stable-2.7] Do not use mutable defaults in FieldAttribute, instead allow supplying a callable for defaults of mutable types. Fixes #46824 (#46833). 2018-10-12 10:38:38 -07:00
plugins [stable-2.7] Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 2019-01-24 10:38:08 -08:00
template templar: ensure that exceptions are handled, fix 'AttributeError' (#48792) 2018-12-03 18:40:42 -08:00
utils [aws unit test utils] only create a recordings directory when the env var is set (#45752) 2018-09-19 13:28:00 -07:00
vars Don't use copy.deepcopy in high workload areas, use naive_deepcopy (#44337) 2018-08-20 15:08:29 -05:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
ansible.cfg Fix ansible-test config management. 2017-10-04 12:52:36 -07:00
conftest.py Run unit tests in parallel. (#45812) 2018-10-09 18:25:24 -07:00
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 2017-06-14 11:08:34 -04:00