From ec59181a285c65b7befad6b0b4814beab2d8efe8 Mon Sep 17 00:00:00 2001 From: Ganesh Nalawade Date: Thu, 29 Mar 2018 18:59:14 +0530 Subject: [PATCH] Fix eos_facts eapi integration test failures (#37919) (cherry picked from commit af777c0f895fb37db0e28fbcea9ddaaa66e451e1) --- .../targets/eos_facts/tests/eapi/default_facts.yaml | 11 +++++++++++ .../targets/eos_facts/tests/eapi/not_hardware.yaml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml b/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml index fbf987a6bd7..28927466719 100644 --- a/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml +++ b/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml @@ -1,6 +1,11 @@ --- - debug: msg="START eapi/default_facts.yaml" +- name: Make sure LLDP is running (setup) + eos_config: + lines: lldp run + authorize: yes + provider: "{{ eapi }}" - name: test getting default facts eos_facts: @@ -28,4 +33,10 @@ # ... and not present - "result.ansible_facts.ansible_net_config is not defined" # config +- name: Make sure LLDP is running (setup) + eos_config: + lines: lldp run + authorize: yes + provider: "{{ eapi }}" + - debug: msg="END eapi/default.yaml" diff --git a/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml b/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml index 9267f638463..46b54a63547 100644 --- a/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml +++ b/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml @@ -1,6 +1,11 @@ --- - debug: msg="START eapi/not_hardware_facts.yaml" +- name: Make sure LLDP is running (setup) + eos_config: + lines: lldp run + authorize: yes + provider: "{{ eapi }}" - name: test not hardware eos_facts: @@ -27,4 +32,10 @@ # ... and not present - "result.ansible_facts.ansible_net_filesystems is not defined" +- name: Make sure LLDP is running (teardown) + eos_config: + lines: no lldp run + authorize: yes + provider: "{{ eapi }}" + - debug: msg="END eapi/not_hardware_facts.yaml"