summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorGanesh Nalawade <ganesh634@gmail.com>2017-11-09 22:43:49 +0530
committerGitHub <noreply@github.com>2017-11-09 22:43:49 +0530
commit37b053727971a8cf80d45c648667cc46f8e212bf (patch)
treebe20e54141e4282831d4e19c09b6665315a38237 /test/integration
parent316e7939d65d85e6c52ba3ee75fbe7eb7d676c6c (diff)
downloadansible-37b053727971a8cf80d45c648667cc46f8e212bf.tar.gz
Fix ios_config file prompt issue (#32744)
Fixes #23263 Add a carriage return (\r) at end on copy config command which results in prompt on cli terminal
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/targets/ios_config/tests/cli/save.yaml27
1 files changed, 25 insertions, 2 deletions
diff --git a/test/integration/targets/ios_config/tests/cli/save.yaml b/test/integration/targets/ios_config/tests/cli/save.yaml
index a521a8888d..e74c11f634 100644
--- a/test/integration/targets/ios_config/tests/cli/save.yaml
+++ b/test/integration/targets/ios_config/tests/cli/save.yaml
@@ -34,10 +34,33 @@
# FIXME https://github.com/ansible/ansible-modules-core/issues/5008
ignore_errors: true
+- name: delete config (setup)
+ ios_config:
+ replace: line
+ lines:
+ - "ip http server"
+ save_when: modified
+ authorize: yes
+ register: result
+
+- name: save should always run
+ ios_config:
+ replace: line
+ lines:
+ - "ip http server"
+ save_when: modified
+ authorize: yes
+ register: result
+
- assert:
that:
- "result.changed == true"
-# FIXME https://github.com/ansible/ansible-modules-core/issues/5008
- ignore_errors: true
+
+- name: teardown
+ ios_config:
+ lines:
+ - "no ip http server"
+ authorize: yes
+ register: result
- debug: msg="END cli/save.yaml"