summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/targets/vyos_interfaces')
-rw-r--r--tests/integration/targets/vyos_interfaces/tests/cli/gathered.yaml12
-rw-r--r--tests/integration/targets/vyos_interfaces/tests/cli/parsed.yaml10
-rw-r--r--tests/integration/targets/vyos_interfaces/tests/cli/rendered.yaml11
3 files changed, 4 insertions, 29 deletions
diff --git a/tests/integration/targets/vyos_interfaces/tests/cli/gathered.yaml b/tests/integration/targets/vyos_interfaces/tests/cli/gathered.yaml
index 62485b9..ac9892c 100644
--- a/tests/integration/targets/vyos_interfaces/tests/cli/gathered.yaml
+++ b/tests/integration/targets/vyos_interfaces/tests/cli/gathered.yaml
@@ -9,9 +9,9 @@
- block:
- - name: Merge the provided configuration with the exisiting running configuration
+ - name: Gather the provided configuration with the exisiting running configuration
register: result
- vyos.vyos.vyos_interfaces: &id001
+ vyos.vyos.vyos_interfaces:
config:
state: gathered
@@ -21,14 +21,6 @@
- "{{ populate | symmetric_difference(result['gathered']) |length == 0\
\ }}"
- - name: Gather the existing running configuration (IDEMPOTENT)
- register: result
- vyos.vyos.vyos_interfaces: *id001
-
- - name: Assert that the previous task was idempotent
- assert:
- that:
- - result['changed'] == false
always:
- include_tasks: _remove_config.yaml
diff --git a/tests/integration/targets/vyos_interfaces/tests/cli/parsed.yaml b/tests/integration/targets/vyos_interfaces/tests/cli/parsed.yaml
index 8b4b4c1..9c46fc1 100644
--- a/tests/integration/targets/vyos_interfaces/tests/cli/parsed.yaml
+++ b/tests/integration/targets/vyos_interfaces/tests/cli/parsed.yaml
@@ -19,7 +19,7 @@
- name: Provide the running configuration for parsing (config to be parsed)
register: result
- vyos.vyos.vyos_interfaces: &id001
+ vyos.vyos.vyos_interfaces:
running_config: "{{ lookup('file', '_parsed_config.cfg') }}"
state: parsed
- debug:
@@ -29,14 +29,6 @@
that: "{{ ansible_facts['network_resources']['interfaces'] | symmetric_difference(result['parsed'])\
\ |length == 0 }}"
- - name: Gather the existing running configuration (IDEMPOTENT)
- register: result
- vyos.vyos.vyos_interfaces: *id001
-
- - name: Assert that the previous task was idempotent
- assert:
- that:
- - result['changed'] == false
always:
- include_tasks: _remove_config.yaml
diff --git a/tests/integration/targets/vyos_interfaces/tests/cli/rendered.yaml b/tests/integration/targets/vyos_interfaces/tests/cli/rendered.yaml
index 85b5021..5030d71 100644
--- a/tests/integration/targets/vyos_interfaces/tests/cli/rendered.yaml
+++ b/tests/integration/targets/vyos_interfaces/tests/cli/rendered.yaml
@@ -11,7 +11,7 @@
- name: Structure provided configuration into device specific commands
register: result
- vyos.vyos.vyos_interfaces: &id001
+ vyos.vyos.vyos_interfaces:
config:
- name: eth0
enabled: true
@@ -42,15 +42,6 @@
that:
- "{{ rendered['commands'] | symmetric_difference(result['rendered'])\
\ |length == 0 }}"
-
- - name: Structure provided configuration into device specific commands (IDEMPOTENT)
- register: result
- vyos.vyos.vyos_interfaces: *id001
-
- - name: Assert that the previous task was idempotent
- assert:
- that:
- - result['changed'] == false
always:
- include_tasks: _remove_config.yaml