From 7938e9f73e66f565afa98bb570eb813d78c939a1 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Wed, 25 Oct 2017 18:17:32 +0200 Subject: [PATCH] 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. --- .../targets/ios_interface/tests/cli/basic.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/test/integration/targets/ios_interface/tests/cli/basic.yaml b/test/integration/targets/ios_interface/tests/cli/basic.yaml index 369fa92f520..a604e971b08 100644 --- a/test/integration/targets/ios_interface/tests/cli/basic.yaml +++ b/test/integration/targets/ios_interface/tests/cli/basic.yaml @@ -27,14 +27,14 @@ ios_interface: name: "{{ test_interface }}" description: test-interface-1 - speed: 10 + speed: 1000 duplex: full mtu: 256 state: present authorize: yes register: result -- name: Confgure interface +- name: Configure interface ios_interface: name: "{{ test_interface }}" description: test-interface-initial @@ -45,7 +45,7 @@ - assert: that: - 'result.changed == true' - - '"interface GigabitEthernet0/2" in result.commands' + - '"interface {{ test_interface }}" in result.commands' - '"description test-interface-initial" in result.commands' - name: Confgure interface (idempotent) @@ -64,7 +64,6 @@ ios_interface: name: "{{ test_interface }}" description: test-interface - speed: 100 mtu: 512 state: present authorize: yes @@ -75,14 +74,12 @@ - 'result.changed == true' - '"interface {{ test_interface }}" in result.commands' - '"description test-interface" in result.commands' - - '"speed 100" in result.commands' - '"mtu 512" in result.commands' - name: Change interface parameters ios_interface: name: "{{ test_interface }}" description: test-interface-1 - speed: 10 duplex: half mtu: 256 state: present @@ -94,7 +91,6 @@ - 'result.changed == true' - '"interface {{ test_interface }}" in result.commands' - '"description test-interface-1" in result.commands' - - '"speed 10" in result.commands' - '"duplex half" in result.commands' - '"mtu 256" in result.commands' @@ -128,7 +124,7 @@ ios_interface: name: "{{ test_interface2 }}" description: test-interface-initial - speed: 100 + speed: 1000 duplex: half mtu: 516 state: present @@ -141,7 +137,7 @@ - "{ name: {{ test_interface }}, mtu: 256, description: test-interface-1 }" - "{ name: {{ test_interface2 }}, mtu: 516, description: test-interface-2 }" duplex: full - speed: 100 + speed: 1000 state: present authorize: yes register: result @@ -150,12 +146,10 @@ that: - 'result.changed == true' - '"interface {{ test_interface }}" in result.commands' - - '"speed 100" in result.commands' - '"description test-interface-1" in result.commands' - '"duplex full" in result.commands' - '"mtu 256" in result.commands' - '"interface {{ test_interface2 }}" in result.commands' - - '"speed 100" in result.commands' - '"description test-interface-2" in result.commands' - '"duplex full" in result.commands' - '"mtu 516" in result.commands' @@ -166,7 +160,7 @@ - "{ name: {{ test_interface }}, mtu: 256, description: test-interface-1 }" - "{ name: {{ test_interface2 }}, mtu: 516, description: test-interface-2 }" duplex: full - speed: 100 + speed: 1000 state: present authorize: yes register: result