diff options
author | Ganesh Nalawade <ganesh634@gmail.com> | 2017-11-19 11:52:04 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-19 11:52:04 +0530 |
commit | ce04f6e961961a32b0c98ec8b06a4297bd0e3fb4 (patch) | |
tree | f0599abf31b11baf3782e5433ef15c72b2bbf159 /test | |
parent | 2995439fbfa2bb0f260adced9baca064dcce9eb0 (diff) | |
download | ansible-ce04f6e961961a32b0c98ec8b06a4297bd0e3fb4.tar.gz |
Fix junos integration test fixes as per connection refactor (#33050)
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/targets/junos_netconf/tests/cli/changeport.yaml | 9 | ||||
-rw-r--r-- | test/integration/targets/junos_netconf/tests/cli/netconf.yaml | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/test/integration/targets/junos_netconf/tests/cli/changeport.yaml b/test/integration/targets/junos_netconf/tests/cli/changeport.yaml index 3c9496fd09..0d8ad9f02d 100644 --- a/test/integration/targets/junos_netconf/tests/cli/changeport.yaml +++ b/test/integration/targets/junos_netconf/tests/cli/changeport.yaml @@ -36,6 +36,10 @@ provider: "{{ netconf }}" port: 8022 +- name: wait for persistent socket to timeout + pause: + seconds: 120 + # This protects against the port override above not being honoured and a bug setting the port - name: Ensure we can NOT communicate over default port junos_command: @@ -47,13 +51,16 @@ - assert: that: - "result.failed == true" - - "'unable to open shell' in result.msg" - name: Set back netconf to default port junos_netconf: state: present register: result +- name: wait for persistent socket to timeout + pause: + seconds: 120 + - name: Ensure we can communicate over netconf 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 92c0a4f430..fbc0fe3bb6 100644 --- a/test/integration/targets/junos_netconf/tests/cli/netconf.yaml +++ b/test/integration/targets/junos_netconf/tests/cli/netconf.yaml @@ -45,7 +45,7 @@ - name: wait for persistent socket to timeout pause: - seconds: 150 + seconds: 120 - name: Ensure we can NOT talk via netconf junos_command: @@ -57,7 +57,6 @@ - assert: that: - "result.failed == true" - - "'unable to open shell' in result.msg" - name: re-enable netconf junos_netconf: |