From f0a0d2aac9e2bdcb8b91c4856d1befc2e7e47a92 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Mon, 6 May 2019 15:25:05 -0400 Subject: [PATCH] Don't validate ip address for mgmt interface It is possible the EOS appliance doesn't have an IP address on the management1 interface, instead just check we have found that interface. Signed-off-by: Paul Belanger --- test/integration/targets/eos_facts/tests/cli/default_facts.yaml | 2 +- test/integration/targets/eos_facts/tests/cli/not_hardware.yaml | 2 +- .../integration/targets/eos_facts/tests/eapi/default_facts.yaml | 2 +- test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/targets/eos_facts/tests/cli/default_facts.yaml b/test/integration/targets/eos_facts/tests/cli/default_facts.yaml index 3f5879a0c5eb14..b99437fb731494 100644 --- a/test/integration/targets/eos_facts/tests/cli/default_facts.yaml +++ b/test/integration/targets/eos_facts/tests/cli/default_facts.yaml @@ -23,7 +23,7 @@ # Items from those subsets are present - "result.ansible_facts.ansible_net_filesystems is defined" #hw - "result.ansible_facts.ansible_net_memtotal_mb > 10" #hw - - "result.ansible_facts.ansible_net_interfaces.Management1.ipv4.masklen > 1" # interfaces + - "result.ansible_facts.ansible_net_interfaces.Management1" # interfaces # ... and not present - "result.ansible_facts.ansible_net_config is not defined" # config diff --git a/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml b/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml index b65caa5d97542b..f528ce77c11b9f 100644 --- a/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml +++ b/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml @@ -23,7 +23,7 @@ - "'hardware' not in result.ansible_facts.ansible_net_gather_subset" # Items from those subsets are present - - "result.ansible_facts.ansible_net_interfaces.Management1.ipv4.masklen > 1" # interfaces + - "result.ansible_facts.ansible_net_interfaces.Management1" # interfaces # ... and not present - "result.ansible_facts.ansible_net_filesystems is not defined" 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 0f7467aae6874f..baa1216227cfa2 100644 --- a/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml +++ b/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml @@ -27,7 +27,7 @@ # Items from those subsets are present - "result.ansible_facts.ansible_net_filesystems is defined" #hw - "result.ansible_facts.ansible_net_memtotal_mb > 10" #hw - - "result.ansible_facts.ansible_net_interfaces.Management1.ipv4.masklen > 1" # interfaces + - "result.ansible_facts.ansible_net_interfaces.Management1" # interfaces # ... and not present - "result.ansible_facts.ansible_net_config is not defined" # config 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 30db5d93033015..37a901319e8d2f 100644 --- a/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml +++ b/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml @@ -27,7 +27,7 @@ - "'hardware' not in result.ansible_facts.ansible_net_gather_subset" # Items from those subsets are present - - "result.ansible_facts.ansible_net_interfaces.Management1.ipv4.masklen > 1" # interfaces + - "result.ansible_facts.ansible_net_interfaces.Management1" # interfaces # ... and not present - "result.ansible_facts.ansible_net_filesystems is not defined"