summaryrefslogtreecommitdiff
path: root/test/integration/targets/pause/test-pause.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/pause/test-pause.py')
-rwxr-xr-xtest/integration/targets/pause/test-pause.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/integration/targets/pause/test-pause.py b/test/integration/targets/pause/test-pause.py
index ab771fa0..3703470d 100755
--- a/test/integration/targets/pause/test-pause.py
+++ b/test/integration/targets/pause/test-pause.py
@@ -168,9 +168,7 @@ pause_test = pexpect.spawn(
pause_test.logfile = log_buffer
pause_test.expect(r'Pausing for \d+ seconds')
pause_test.expect(r"\(ctrl\+C then 'C' = continue early, ctrl\+C then 'A' = abort\)")
-pause_test.send('\n') # test newline does not stop the prompt - waiting for a timeout or ctrl+C
pause_test.send('\x03')
-pause_test.expect("Press 'C' to continue the play or 'A' to abort")
pause_test.send('C')
pause_test.expect('Task after pause')
pause_test.expect(pexpect.EOF)
@@ -189,7 +187,6 @@ pause_test.logfile = log_buffer
pause_test.expect(r'Pausing for \d+ seconds')
pause_test.expect(r"\(ctrl\+C then 'C' = continue early, ctrl\+C then 'A' = abort\)")
pause_test.send('\x03')
-pause_test.expect("Press 'C' to continue the play or 'A' to abort")
pause_test.send('A')
pause_test.expect('user requested abort!')
pause_test.expect(pexpect.EOF)
@@ -228,7 +225,6 @@ pause_test.expect(r'Pausing for \d+ seconds')
pause_test.expect(r"\(ctrl\+C then 'C' = continue early, ctrl\+C then 'A' = abort\)")
pause_test.expect(r"Waiting for two seconds:")
pause_test.send('\x03')
-pause_test.expect("Press 'C' to continue the play or 'A' to abort")
pause_test.send('C')
pause_test.expect('Task after pause')
pause_test.expect(pexpect.EOF)
@@ -248,7 +244,6 @@ pause_test.expect(r'Pausing for \d+ seconds')
pause_test.expect(r"\(ctrl\+C then 'C' = continue early, ctrl\+C then 'A' = abort\)")
pause_test.expect(r"Waiting for two seconds:")
pause_test.send('\x03')
-pause_test.expect("Press 'C' to continue the play or 'A' to abort")
pause_test.send('A')
pause_test.expect('user requested abort!')
pause_test.expect(pexpect.EOF)
@@ -280,24 +275,6 @@ pause_test.send('\r')
pause_test.expect(pexpect.EOF)
pause_test.close()
-# Test input is not returned if a timeout is given
-
-playbook = 'pause-6.yml'
-
-pause_test = pexpect.spawn(
- 'ansible-playbook',
- args=[playbook] + args,
- timeout=10,
- env=os.environ
-)
-
-pause_test.logfile = log_buffer
-pause_test.expect(r'Wait for three seconds:')
-pause_test.send('ignored user input')
-pause_test.expect('Task after pause')
-pause_test.expect(pexpect.EOF)
-pause_test.close()
-
# Test that enter presses may not continue the play when a timeout is set.