From 399d13d593b9df1555e73c603d64d06015558da5 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Mon, 9 Jul 2018 10:12:48 -0400 Subject: [PATCH] Update ios tests (#42509) * 192.168.0.1/24 conflicts with management IP * Images don't have the hostnames we expect --- test/integration/targets/ios_config/tests/cli/diff.yaml | 4 ++++ .../targets/ios_smoke/tests/cli/common_utils.yaml | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/integration/targets/ios_config/tests/cli/diff.yaml b/test/integration/targets/ios_config/tests/cli/diff.yaml index 9121f55fba2..dbdd033a894 100644 --- a/test/integration/targets/ios_config/tests/cli/diff.yaml +++ b/test/integration/targets/ios_config/tests/cli/diff.yaml @@ -1,6 +1,10 @@ --- - debug: msg="START cli/diff.yaml on connection={{ ansible_connection }}" +- name: Ensure hostname is preset + ios_system: + hostname: "{{ shorter_hostname }}" + - name: ios_config diff against retrieved config ios_config: diff_against: intended diff --git a/test/integration/targets/ios_smoke/tests/cli/common_utils.yaml b/test/integration/targets/ios_smoke/tests/cli/common_utils.yaml index e53dff31cc0..6b1f6b4e9de 100644 --- a/test/integration/targets/ios_smoke/tests/cli/common_utils.yaml +++ b/test/integration/targets/ios_smoke/tests/cli/common_utils.yaml @@ -30,7 +30,7 @@ - name: Configure interface ipv4 address ios_l3_interface: name: "{{ test_interface }}" - ipv4: 192.168.0.1/24 + ipv4: 192.168.20.1/24 state: present provider: "{{ cli }}" register: result @@ -39,12 +39,12 @@ that: - 'result.changed == true' - '"interface {{ test_interface }}" in result.commands' - - '"ip address 192.168.0.1 255.255.255.0" in result.commands' + - '"ip address 192.168.20.1 255.255.255.0" in result.commands' - name: test invalid subnet ios_l3_interface: name: "{{ test_interface }}" - ipv4: 192.168.0.1/45 + ipv4: 192.168.20.1/45 state: present provider: "{{ cli }}" register: result