summaryrefslogtreecommitdiff
path: root/test/integration/targets/pause/test-pause-no-tty.yml
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2018-05-21 10:04:43 -0400
committerGitHub <noreply@github.com>2018-05-21 10:04:43 -0400
commit1c20029694b647c90612b5116bb619d806bf2aae (patch)
treec1d44e28b6940f1f503e9cfa4b19b06648474feb /test/integration/targets/pause/test-pause-no-tty.yml
parent39f9d3e4a683b1330f7d734802cf925952799dc3 (diff)
downloadansible-1c20029694b647c90612b5116bb619d806bf2aae.tar.gz
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>
Diffstat (limited to 'test/integration/targets/pause/test-pause-no-tty.yml')
-rw-r--r--test/integration/targets/pause/test-pause-no-tty.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/targets/pause/test-pause-no-tty.yml b/test/integration/targets/pause/test-pause-no-tty.yml
new file mode 100644
index 0000000000..f7a2b36cbc
--- /dev/null
+++ b/test/integration/targets/pause/test-pause-no-tty.yml
@@ -0,0 +1,7 @@
+- name: Test pause
+ hosts: testhost
+ gather_facts: no
+ become: no
+
+ tasks:
+ - pause: