iosxr integration testfix (#32344)
* Replace GigabitEthernet0/0/0/5 for GigabitEthernet0/0/0/2 in iosxr_interface intent tests (#32116) There's no 5 interface present in CI nodes. (cherry picked from commitf079a33563
) * Replace Gigabit0/0/0/2 for Gigabit0/0/0/1 on iosxr_interface.intent (#32120) (cherry picked from commita9d8157e81
) * Add ansible_ssh_port to iosxr_user auth tests (#32117) The CI nodes listen on port 8022, we need to plumb that to avoid test failures. (cherry picked from commit676d446cfc
)
This commit is contained in:
parent
262d6b6dcc
commit
497c73d06e
2 changed files with 9 additions and 9 deletions
|
@ -3,15 +3,15 @@
|
|||
|
||||
- name: Setup (interface is up)
|
||||
iosxr_interface:
|
||||
name: GigabitEthernet0/0/0/5
|
||||
description: test_interface_5
|
||||
name: GigabitEthernet0/0/0/1
|
||||
description: test_interface_1
|
||||
enabled: True
|
||||
state: present
|
||||
register: result
|
||||
|
||||
- name: Check intent arguments
|
||||
iosxr_interface:
|
||||
name: GigabitEthernet0/0/0/5
|
||||
name: GigabitEthernet0/0/0/1
|
||||
state: up
|
||||
delay: 20
|
||||
register: result
|
||||
|
@ -22,7 +22,7 @@
|
|||
|
||||
- name: Check intent arguments (failed condition)
|
||||
iosxr_interface:
|
||||
name: GigabitEthernet0/0/0/5
|
||||
name: GigabitEthernet0/0/0/1
|
||||
state: down
|
||||
ignore_errors: yes
|
||||
register: result
|
||||
|
@ -34,7 +34,7 @@
|
|||
|
||||
- name: Config + intent
|
||||
iosxr_interface:
|
||||
name: GigabitEthernet0/0/0/5
|
||||
name: GigabitEthernet0/0/0/1
|
||||
enabled: False
|
||||
state: down
|
||||
delay: 20
|
||||
|
@ -46,7 +46,7 @@
|
|||
|
||||
- name: Config + intent (fail)
|
||||
iosxr_interface:
|
||||
name: GigabitEthernet0/0/0/5
|
||||
name: GigabitEthernet0/0/0/1
|
||||
enabled: False
|
||||
state: up
|
||||
ignore_errors: yes
|
||||
|
@ -60,7 +60,7 @@
|
|||
- name: Aggregate config + intent (pass)
|
||||
iosxr_interface:
|
||||
aggregate:
|
||||
- name: GigabitEthernet0/0/0/5
|
||||
- name: GigabitEthernet0/0/0/1
|
||||
enabled: True
|
||||
state: up
|
||||
delay: 20
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
|
||||
- name: test login
|
||||
expect:
|
||||
command: "ssh auth_user@{{ ansible_ssh_host }} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no show version"
|
||||
command: "ssh auth_user@{{ ansible_ssh_host }} -p {{ ansible_ssh_port }} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no show version"
|
||||
responses:
|
||||
(?i)password: "pass123"
|
||||
|
||||
- name: test login with invalid password (should fail)
|
||||
expect:
|
||||
command: "ssh auth_user@{{ ansible_ssh_host }} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no show version"
|
||||
command: "ssh auth_user@{{ ansible_ssh_host }} -p {{ ansible_ssh_port }} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no show version"
|
||||
responses:
|
||||
(?i)password: "badpass"
|
||||
ignore_errors: yes
|
||||
|
|
Loading…
Reference in a new issue