From 53295b2cbfb1f0857c5795bc3ef2d71d4996fe30 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 14 Jul 2017 19:57:36 +0200 Subject: [PATCH] Add timeout to EAPI eos_system tests (#26822) Getting random failures, let's bump timeout in all of them --- .../targets/eos_system/tests/eapi/set_domain_list.yaml | 10 ++++++++++ .../targets/eos_system/tests/eapi/set_domain_name.yaml | 4 ++++ .../eos_system/tests/eapi/set_lookup_source.yaml | 6 ++++++ .../eos_system/tests/eapi/set_name_servers.yaml | 5 +++++ 4 files changed, 25 insertions(+) diff --git a/test/integration/targets/eos_system/tests/eapi/set_domain_list.yaml b/test/integration/targets/eos_system/tests/eapi/set_domain_list.yaml index 80020c3435..22a1d971a7 100644 --- a/test/integration/targets/eos_system/tests/eapi/set_domain_list.yaml +++ b/test/integration/targets/eos_system/tests/eapi/set_domain_list.yaml @@ -6,6 +6,7 @@ lines: - no ip domain-list ansible.com - no ip domain-list redhat.com + timeout: 30 match: none provider: "{{ eapi }}" @@ -14,6 +15,7 @@ domain_list: - ansible.com - redhat.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -28,6 +30,7 @@ domain_list: - ansible.com - redhat.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -39,6 +42,7 @@ eos_system: domain_list: - ansible.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -51,6 +55,7 @@ eos_system: domain_list: - ansible.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -63,6 +68,7 @@ domain_list: - ansible.com - redhat.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -76,6 +82,7 @@ domain_list: - ansible.com - redhat.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -88,6 +95,7 @@ domain_list: - ansible.com - eng.ansible.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -103,6 +111,7 @@ domain_list: - ansible.com - eng.ansible.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -116,6 +125,7 @@ - no ip domain-list ansible.com - no ip domain-list redhat.com - no ip domain-list eng.ansible.com + timeout: 30 match: none provider: "{{ eapi }}" diff --git a/test/integration/targets/eos_system/tests/eapi/set_domain_name.yaml b/test/integration/targets/eos_system/tests/eapi/set_domain_name.yaml index fedd674e4d..dc9a20f25c 100644 --- a/test/integration/targets/eos_system/tests/eapi/set_domain_name.yaml +++ b/test/integration/targets/eos_system/tests/eapi/set_domain_name.yaml @@ -4,12 +4,14 @@ - name: setup eos_config: lines: no ip domain-name + timeout: 30 match: none provider: "{{ eapi }}" - name: configure domain_name eos_system: domain_name: eng.ansible.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -20,6 +22,7 @@ - name: verify domain_name eos_system: domain_name: eng.ansible.com + timeout: 30 provider: "{{ eapi }}" register: result @@ -30,6 +33,7 @@ - name: teardown eos_config: lines: no ip domain-name + timeout: 30 match: none provider: "{{ eapi }}" diff --git a/test/integration/targets/eos_system/tests/eapi/set_lookup_source.yaml b/test/integration/targets/eos_system/tests/eapi/set_lookup_source.yaml index 57399004df..7b543019ad 100644 --- a/test/integration/targets/eos_system/tests/eapi/set_lookup_source.yaml +++ b/test/integration/targets/eos_system/tests/eapi/set_lookup_source.yaml @@ -6,12 +6,14 @@ lines: - no ip domain lookup source-interface - vrf definition ansible + timeout: 30 match: none provider: "{{ eapi }}" - name: configure lookup_source eos_system: lookup_source: Management1 + timeout: 30 provider: "{{ eapi }}" register: result @@ -23,6 +25,7 @@ - name: verify lookup_source eos_system: lookup_source: Management1 + timeout: 30 provider: "{{ eapi }}" register: result @@ -35,6 +38,7 @@ lookup_source: - interface: Management1 vrf: ansible + timeout: 30 provider: "{{ eapi }}" register: result @@ -50,6 +54,7 @@ lookup_source: - interface: Management1 vrf: ansible + timeout: 30 provider: "{{ eapi }}" register: result @@ -62,6 +67,7 @@ lines: - no ip domain lookup source-interface - no vrf definition ansible + timeout: 30 match: none provider: "{{ eapi }}" diff --git a/test/integration/targets/eos_system/tests/eapi/set_name_servers.yaml b/test/integration/targets/eos_system/tests/eapi/set_name_servers.yaml index 19822591c5..3452a65bb5 100644 --- a/test/integration/targets/eos_system/tests/eapi/set_name_servers.yaml +++ b/test/integration/targets/eos_system/tests/eapi/set_name_servers.yaml @@ -6,6 +6,7 @@ lines: - no ip name-server - vrf definition ansible + timeout: 30 match: none provider: "{{ eapi }}" @@ -15,6 +16,7 @@ - 1.1.1.1 - 2.2.2.2 - 3.3.3.3 + timeout: 30 provider: "{{ eapi }}" register: result @@ -32,6 +34,7 @@ - 1.1.1.1 - 2.2.2.2 - 3.3.3.3 + timeout: 30 provider: "{{ eapi }}" register: result @@ -73,6 +76,7 @@ name_servers: - 1.1.1.1 - 2.2.2.2 + timeout: 30 provider: "{{ eapi }}" register: result @@ -87,6 +91,7 @@ lines: - no ip domain lookup source-interface - no vrf definition ansible + timeout: 30 match: none provider: "{{ eapi }}"