Fix idempotency issue in vyos_interface integration test (#26993)

pull/26994/merge
Ganesh Nalawade 7 years ago committed by GitHub
parent 5ffb40fcdb
commit e0cf64d64c

@ -12,11 +12,24 @@
name: eth1 name: eth1
state: absent state: absent
- name: Configure interface params - name: Set up - Create interface
vyos_interface: vyos_interface:
name: eth1 name: eth1
state: present state: present
description: test-interface description: test-interface
register: result
- assert:
that:
- 'result.changed == true'
- '"set interfaces ethernet eth1" in result.commands'
- '"set interfaces ethernet eth1 description test-interface" in result.commands'
- name: Configure interface params
vyos_interface:
name: eth1
state: present
description: test-interface-1
speed: 100 speed: 100
duplex: half duplex: half
mtu: 256 mtu: 256
@ -26,7 +39,7 @@
- assert: - assert:
that: that:
- 'result.changed == true' - 'result.changed == true'
- '"set interfaces ethernet eth1 description test-interface" in result.commands' - '"set interfaces ethernet eth1 description test-interface-1" in result.commands'
- '"set interfaces ethernet eth1 speed 100" in result.commands' - '"set interfaces ethernet eth1 speed 100" in result.commands'
- '"set interfaces ethernet eth1 duplex half" in result.commands' - '"set interfaces ethernet eth1 duplex half" in result.commands'
- '"set interfaces ethernet eth1 mtu 256" in result.commands' - '"set interfaces ethernet eth1 mtu 256" in result.commands'

Loading…
Cancel
Save