mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix junos integration test fixes as per connection refactor (#33050)
This commit is contained in:
parent
2995439fbf
commit
ce04f6e961
2 changed files with 9 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue