summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_ospf_interfaces
diff options
context:
space:
mode:
authorKate Case <kcase@redhat.com>2023-03-28 09:32:38 -0400
committerGitHub <noreply@github.com>2023-03-28 09:32:38 -0400
commit2653fa8d08af498677604927399451415b25884e (patch)
tree51695189c6cebf3308a3d063b6df42c41fed2832 /tests/integration/targets/vyos_ospf_interfaces
parentd181df0cc702cbafb8a9cd640b2eeb6cc3b9a962 (diff)
downloadvyos.vyos-2653fa8d08af498677604927399451415b25884e.tar.gz
vyos.vyos-2653fa8d08af498677604927399451415b25884e.zip
Always clear config before setting base config in tests. (#306)
* Always clear config before setting base config in tests. * Clear bond before removing
Diffstat (limited to 'tests/integration/targets/vyos_ospf_interfaces')
-rw-r--r--tests/integration/targets/vyos_ospf_interfaces/tests/cli/_populate.yaml4
-rw-r--r--tests/integration/targets/vyos_ospf_interfaces/tests/cli/deleted.yaml2
-rw-r--r--tests/integration/targets/vyos_ospf_interfaces/tests/cli/gathered.yaml2
-rw-r--r--tests/integration/targets/vyos_ospf_interfaces/tests/cli/overridden.yaml2
-rw-r--r--tests/integration/targets/vyos_ospf_interfaces/tests/cli/replaced.yaml2
5 files changed, 3 insertions, 9 deletions
diff --git a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/_populate.yaml b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/_populate.yaml
index c4749d3..e30e9fb 100644
--- a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/_populate.yaml
+++ b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/_populate.yaml
@@ -1,5 +1,7 @@
---
-- name: setup
+- ansible.builtin.include_tasks: _remove_config.yaml
+
+- name: Setup
vyos.vyos.vyos_config:
lines:
- set interfaces ethernet eth0 ip ospf cost 50
diff --git a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/deleted.yaml b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/deleted.yaml
index 4efca68..679a39b 100644
--- a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/deleted.yaml
+++ b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/deleted.yaml
@@ -3,8 +3,6 @@
msg: START vyos_ospf_interfaces deleted integration tests on connection={{
ansible_connection }}
-- include_tasks: _remove_config.yaml
-
- include_tasks: _populate.yaml
- block:
diff --git a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/gathered.yaml b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/gathered.yaml
index 21b6e5a..84c22cb 100644
--- a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/gathered.yaml
+++ b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/gathered.yaml
@@ -3,8 +3,6 @@
msg: START vyos_ospf_interfaces gathered integration tests on connection={{
ansible_connection }}
-- include_tasks: _remove_config.yaml
-
- include_tasks: _populate.yaml
- block:
diff --git a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/overridden.yaml b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/overridden.yaml
index dae9a6e..2652c40 100644
--- a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/overridden.yaml
+++ b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/overridden.yaml
@@ -4,8 +4,6 @@
START vyos_ospf_interfaces overridden integration tests on connection={{
ansible_connection }}
-- include_tasks: _remove_config.yaml
-
- include_tasks: _populate.yaml
- block:
diff --git a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/replaced.yaml b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/replaced.yaml
index 89c8c76..9efcdea 100644
--- a/tests/integration/targets/vyos_ospf_interfaces/tests/cli/replaced.yaml
+++ b/tests/integration/targets/vyos_ospf_interfaces/tests/cli/replaced.yaml
@@ -3,8 +3,6 @@
msg: START vyos_ospf_interfaces replaced integration tests on connection={{
ansible_connection }}
-- include_tasks: _remove_config.yaml
-
- include_tasks: _populate.yaml
- block: