1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Set speed to 1000 on ios_interface tests (#32153)

csr and ios have only 1000 as value in common, using 10 or 100 will
cause CI failures.
This commit is contained in:
Ricardo Carrillo Cruz 2017-10-25 18:17:32 +02:00 committed by GitHub
parent ab84718a01
commit 7938e9f73e

View file

@ -27,14 +27,14 @@
ios_interface: ios_interface:
name: "{{ test_interface }}" name: "{{ test_interface }}"
description: test-interface-1 description: test-interface-1
speed: 10 speed: 1000
duplex: full duplex: full
mtu: 256 mtu: 256
state: present state: present
authorize: yes authorize: yes
register: result register: result
- name: Confgure interface - name: Configure interface
ios_interface: ios_interface:
name: "{{ test_interface }}" name: "{{ test_interface }}"
description: test-interface-initial description: test-interface-initial
@ -45,7 +45,7 @@
- assert: - assert:
that: that:
- 'result.changed == true' - 'result.changed == true'
- '"interface GigabitEthernet0/2" in result.commands' - '"interface {{ test_interface }}" in result.commands'
- '"description test-interface-initial" in result.commands' - '"description test-interface-initial" in result.commands'
- name: Confgure interface (idempotent) - name: Confgure interface (idempotent)
@ -64,7 +64,6 @@
ios_interface: ios_interface:
name: "{{ test_interface }}" name: "{{ test_interface }}"
description: test-interface description: test-interface
speed: 100
mtu: 512 mtu: 512
state: present state: present
authorize: yes authorize: yes
@ -75,14 +74,12 @@
- 'result.changed == true' - 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands' - '"interface {{ test_interface }}" in result.commands'
- '"description test-interface" in result.commands' - '"description test-interface" in result.commands'
- '"speed 100" in result.commands'
- '"mtu 512" in result.commands' - '"mtu 512" in result.commands'
- name: Change interface parameters - name: Change interface parameters
ios_interface: ios_interface:
name: "{{ test_interface }}" name: "{{ test_interface }}"
description: test-interface-1 description: test-interface-1
speed: 10
duplex: half duplex: half
mtu: 256 mtu: 256
state: present state: present
@ -94,7 +91,6 @@
- 'result.changed == true' - 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands' - '"interface {{ test_interface }}" in result.commands'
- '"description test-interface-1" in result.commands' - '"description test-interface-1" in result.commands'
- '"speed 10" in result.commands'
- '"duplex half" in result.commands' - '"duplex half" in result.commands'
- '"mtu 256" in result.commands' - '"mtu 256" in result.commands'
@ -128,7 +124,7 @@
ios_interface: ios_interface:
name: "{{ test_interface2 }}" name: "{{ test_interface2 }}"
description: test-interface-initial description: test-interface-initial
speed: 100 speed: 1000
duplex: half duplex: half
mtu: 516 mtu: 516
state: present state: present
@ -141,7 +137,7 @@
- "{ name: {{ test_interface }}, mtu: 256, description: test-interface-1 }" - "{ name: {{ test_interface }}, mtu: 256, description: test-interface-1 }"
- "{ name: {{ test_interface2 }}, mtu: 516, description: test-interface-2 }" - "{ name: {{ test_interface2 }}, mtu: 516, description: test-interface-2 }"
duplex: full duplex: full
speed: 100 speed: 1000
state: present state: present
authorize: yes authorize: yes
register: result register: result
@ -150,12 +146,10 @@
that: that:
- 'result.changed == true' - 'result.changed == true'
- '"interface {{ test_interface }}" in result.commands' - '"interface {{ test_interface }}" in result.commands'
- '"speed 100" in result.commands'
- '"description test-interface-1" in result.commands' - '"description test-interface-1" in result.commands'
- '"duplex full" in result.commands' - '"duplex full" in result.commands'
- '"mtu 256" in result.commands' - '"mtu 256" in result.commands'
- '"interface {{ test_interface2 }}" in result.commands' - '"interface {{ test_interface2 }}" in result.commands'
- '"speed 100" in result.commands'
- '"description test-interface-2" in result.commands' - '"description test-interface-2" in result.commands'
- '"duplex full" in result.commands' - '"duplex full" in result.commands'
- '"mtu 516" in result.commands' - '"mtu 516" in result.commands'
@ -166,7 +160,7 @@
- "{ name: {{ test_interface }}, mtu: 256, description: test-interface-1 }" - "{ name: {{ test_interface }}, mtu: 256, description: test-interface-1 }"
- "{ name: {{ test_interface2 }}, mtu: 516, description: test-interface-2 }" - "{ name: {{ test_interface2 }}, mtu: 516, description: test-interface-2 }"
duplex: full duplex: full
speed: 100 speed: 1000
state: present state: present
authorize: yes authorize: yes
register: result register: result