diff options
author | Ganesh Nalawade <ganesh634@gmail.com> | 2017-12-14 13:48:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-14 13:48:09 +0530 |
commit | 53abf45cec6daaa83e971cc949a1b34fdcb93a3b (patch) | |
tree | c7f8d38d968c2e4fca2607972d4f52e39750b7be /test/integration/targets/junos_netconf | |
parent | 6f77a32b13c50c60ecfbabdbbf855d30550ab171 (diff) | |
download | ansible-53abf45cec6daaa83e971cc949a1b34fdcb93a3b.tar.gz |
Add delay in junos integration test after netconf is enabled (#33899)
junos integration test fails intermittently after task enables netconf
on the remote host and the second task tries to create a persistent
connection. Add a delay after the first task to ensure netconf is up
running on remote host.
Diffstat (limited to 'test/integration/targets/junos_netconf')
-rw-r--r-- | test/integration/targets/junos_netconf/tests/cli/changeport.yaml | 5 | ||||
-rw-r--r-- | test/integration/targets/junos_netconf/tests/cli/netconf.yaml | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/integration/targets/junos_netconf/tests/cli/changeport.yaml b/test/integration/targets/junos_netconf/tests/cli/changeport.yaml index 0d8ad9f02d..52c5c2ebb7 100644 --- a/test/integration/targets/junos_netconf/tests/cli/changeport.yaml +++ b/test/integration/targets/junos_netconf/tests/cli/changeport.yaml @@ -7,7 +7,6 @@ state: present register: result - ################################### - name: Change port junos_netconf: @@ -29,6 +28,10 @@ that: - "result.changed == false" +- name: wait for netconf server to come up + pause: + seconds: 10 + - name: Ensure we can communicate over 8022 junos_command: rpcs: diff --git a/test/integration/targets/junos_netconf/tests/cli/netconf.yaml b/test/integration/targets/junos_netconf/tests/cli/netconf.yaml index fbc0fe3bb6..e22834d2b0 100644 --- a/test/integration/targets/junos_netconf/tests/cli/netconf.yaml +++ b/test/integration/targets/junos_netconf/tests/cli/netconf.yaml @@ -18,6 +18,10 @@ ################################### +- name: wait for netconf server to come up + pause: + seconds: 10 + - name: Ensure we can communicate over netconf junos_command: rpcs: get-software-information |