community.general/lib/ansible
Sam Doran 1c20029694
Fix ctrl+c in pause module and add tests (#40134)
* Fix all cases with pause and ctrl+c
 - naked:
	- pause:
 - with prompt
	- pause: prompt=hi
 - time wait
	- pause: seconds=60
 - time wait with prompt
	- pause: seconds=60 prompt=hi


Fixes #35372

* Use curses to control stdout
* Use curses to clear lines on interactive input
* Validate input for echo parameter and fail nicely if invalid
* Add integration tests for pause module using pexpect
* Use try except when trying to determine erase sequence to account for lack of TTY in containers in tests
* Improve output validation for regular paus test
* Accept two digit precision for pause length in test
* Check for seconds when seconds is specificed, minutes when minutes is specified
* Add test for no TTY mode

Co-authored by: Toshio Kuratomi <a.badger@gmail.com>
Co-authored by: Brian Coca <brian.coca+git@gmail.com>
2018-05-21 10:04:43 -04:00
..
cli Enabled unsafe and vault in JSON (#38759) 2018-05-09 14:01:51 -04:00
compat
config HTTP(S) API connection plugin (#39224) 2018-05-17 18:47:15 -04:00
errors give hint to users when a file is not found 2018-04-10 17:19:03 -04:00
executor Pull persistent connection parameters via get_option (#39367) 2018-05-16 14:59:01 +02:00
galaxy Allow the galaxy client to fetch from a url in role version data (#39396) 2018-04-30 15:47:43 -05:00
inventory Don't display host pattern warning for empty groups (fixes #35255) (#39927) 2018-05-09 14:13:48 -05:00
module_utils Integration tests for Infoblox 2.5 modules (#40344) 2018-05-21 17:04:20 +05:30
modules Add the ability to specify an install_dir to the gem module (#38195) 2018-05-21 09:55:43 -04:00
parsing vault: check dir existence before creating a file (#40010) 2018-05-11 19:29:44 +02:00
playbook Deprecate private for include_role (#39821) 2018-05-08 10:31:56 -05:00
plugins Fix ctrl+c in pause module and add tests (#40134) 2018-05-21 10:04:43 -04:00
template Fix when template paths contain non-ascii chars and using the path in ansible_managed 2018-04-30 16:47:27 -07:00
utils Add Na_ontap_broadcast_domain module. (#39753) 2018-05-18 17:17:01 -07:00
vars minimize loading files/plugins 2018-04-10 17:22:31 -04:00
__init__.py
constants.py centralize doc/config plugin lists (#38775) 2018-04-16 09:29:49 -04:00
release.py