summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_facts
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/eos_facts')
-rw-r--r--test/integration/targets/eos_facts/tests/cli/all_facts.yaml2
-rw-r--r--test/integration/targets/eos_facts/tests/cli/not_hardware.yaml4
-rw-r--r--test/integration/targets/eos_facts/tests/eapi/all_facts.yaml8
-rw-r--r--test/integration/targets/eos_facts/tests/eapi/default_facts.yaml8
-rw-r--r--test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml12
5 files changed, 10 insertions, 24 deletions
diff --git a/test/integration/targets/eos_facts/tests/cli/all_facts.yaml b/test/integration/targets/eos_facts/tests/cli/all_facts.yaml
index 4a4ed164d5..05312e861a 100644
--- a/test/integration/targets/eos_facts/tests/cli/all_facts.yaml
+++ b/test/integration/targets/eos_facts/tests/cli/all_facts.yaml
@@ -9,8 +9,6 @@
become: yes
register: result
-
-
- assert:
that:
# _facts modules should never report a change
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 a2322f0cbe..b65caa5d97 100644
--- a/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml
+++ b/test/integration/targets/eos_facts/tests/cli/not_hardware.yaml
@@ -1,5 +1,5 @@
---
-- debug: msg="START cli/not_hardware_facts.yaml on connection={{ ansible_connection }}"
+- debug: msg="START cli/not_hardware.yaml on connection={{ ansible_connection }}"
- name: test not hardware
@@ -27,4 +27,4 @@
# ... and not present
- "result.ansible_facts.ansible_net_filesystems is not defined"
-- debug: msg="END cli/not_hardware_facts.yaml on connection={{ ansible_connection }}"
+- debug: msg="END cli/not_hardware.yaml on connection={{ ansible_connection }}"
diff --git a/test/integration/targets/eos_facts/tests/eapi/all_facts.yaml b/test/integration/targets/eos_facts/tests/eapi/all_facts.yaml
index 0c01a536d1..5d755e1119 100644
--- a/test/integration/targets/eos_facts/tests/eapi/all_facts.yaml
+++ b/test/integration/targets/eos_facts/tests/eapi/all_facts.yaml
@@ -4,12 +4,13 @@
- name: Make sure LLDP is running (setup)
eos_config:
lines: lldp run
- authorize: yes
+ become: yes
- name: test getting all facts
eos_facts:
gather_subset:
- all
+ become: yes
register: result
- assert:
@@ -29,9 +30,4 @@
- "result.ansible_facts.ansible_net_memfree_mb > 1"
- "result.ansible_facts.ansible_net_memtotal_mb > 1"
-- name: Make sure LLDP is running (teardown)
- eos_config:
- lines: no lldp run
- authorize: yes
-
- debug: msg="END eapi/all_facts.yaml"
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 79b5be58ba..0f7467aae6 100644
--- a/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml
+++ b/test/integration/targets/eos_facts/tests/eapi/default_facts.yaml
@@ -4,10 +4,11 @@
- name: Make sure LLDP is running (setup)
eos_config:
lines: lldp run
- authorize: yes
+ become: yes
- name: test getting default facts
eos_facts:
+ become: yes
register: result
- assert:
@@ -31,9 +32,4 @@
# ... 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
-
- 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 0b00c945c9..30db5d9303 100644
--- a/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml
+++ b/test/integration/targets/eos_facts/tests/eapi/not_hardware.yaml
@@ -1,15 +1,16 @@
---
-- debug: msg="START eapi/not_hardware_facts.yaml"
+- debug: msg="START eapi/not_hardware.yaml"
- name: Make sure LLDP is running (setup)
eos_config:
lines: lldp run
- authorize: yes
+ become: yes
- name: test not hardware
eos_facts:
gather_subset:
- "!hardware"
+ become: yes
register: result
- assert:
@@ -30,9 +31,4 @@
# ... 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
-
-- debug: msg="END eapi/not_hardware_facts.yaml"
+- debug: msg="END eapi/not_hardware.yaml"