summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_firewall_interfaces
diff options
context:
space:
mode:
authorSagar Paul <sagpaul@redhat.com>2021-06-22 23:55:12 +0530
committerGitHub <noreply@github.com>2021-06-22 18:25:12 +0000
commita8e806d61fc1e4fd88592bee7e501fbe259cca99 (patch)
treece0a89c73c8e14c173c37dd9e720e94ad2576441 /tests/integration/targets/vyos_firewall_interfaces
parenteb46eb529a8bcfaeb5a7e736550d7cfb612b02d7 (diff)
downloadvyos.vyos-a8e806d61fc1e4fd88592bee7e501fbe259cca99.tar.gz
vyos.vyos-a8e806d61fc1e4fd88592bee7e501fbe259cca99.zip
Spelling glitch fix on doc (#168)
Spelling glitch fix on doc Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'tests/integration/targets/vyos_firewall_interfaces')
-rw-r--r--tests/integration/targets/vyos_firewall_interfaces/tests/cli/gathered.yaml7
-rw-r--r--tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged.yaml20
-rw-r--r--tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged_edit.yaml16
3 files changed, 17 insertions, 26 deletions
diff --git a/tests/integration/targets/vyos_firewall_interfaces/tests/cli/gathered.yaml b/tests/integration/targets/vyos_firewall_interfaces/tests/cli/gathered.yaml
index fd8dd74..2593a67 100644
--- a/tests/integration/targets/vyos_firewall_interfaces/tests/cli/gathered.yaml
+++ b/tests/integration/targets/vyos_firewall_interfaces/tests/cli/gathered.yaml
@@ -1,6 +1,7 @@
---
- debug:
- msg: START vyos_firewall_interfaces gathered integration tests on connection={{
+ msg:
+ START vyos_firewall_interfaces gathered integration tests on connection={{
ansible_connection }}
- include_tasks: _remove_config.yaml
@@ -12,8 +13,7 @@
- include_tasks: _populate.yaml
- block:
-
- - name: Merge the provided configuration with the exisiting running configuration
+ - name: Merge the provided configuration with the existing running configuration
register: result
vyos.vyos.vyos_firewall_interfaces: &id001
config:
@@ -34,7 +34,6 @@
that:
- result['changed'] == false
always:
-
- include_tasks: _remove_config.yaml
- include_tasks: _remove_firewall_config.yaml
diff --git a/tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged.yaml b/tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged.yaml
index 0c28eab..10c8f01 100644
--- a/tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged.yaml
+++ b/tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged.yaml
@@ -1,6 +1,7 @@
---
- debug:
- msg: START vyos_firewall_interfaces merged integration tests on connection={{
+ msg:
+ START vyos_firewall_interfaces merged integration tests on connection={{
ansible_connection }}
- include_tasks: _populate_rule_sets.yaml
@@ -8,18 +9,14 @@
- include_tasks: _remove_config.yaml
- block:
-
- - name: Merge the provided configuration with the exisiting running configuration
+ - name: Merge the provided configuration with the existing running configuration
register: result
vyos.vyos.vyos_firewall_interfaces: &id001
config:
-
- name: eth1
access_rules:
-
- afi: ipv4
rules:
-
- direction: in
name: INBOUND
@@ -31,16 +28,13 @@
- afi: ipv6
rules:
-
- direction: local
name: V6-LOCAL
- name: eth2
access_rules:
-
- afi: ipv4
rules:
-
- direction: in
name: INBOUND
@@ -52,14 +46,14 @@
- afi: ipv6
rules:
-
- direction: local
name: V6-LOCAL
state: merged
- name: Assert that before dicts were correctly generated
assert:
- that: "{{ merged['before'] | symmetric_difference(result['before']) |length\
+ that:
+ "{{ merged['before'] | symmetric_difference(result['before']) |length\
\ == 0 }}"
- name: Assert that correct set of commands were generated
@@ -74,7 +68,8 @@
- "{{ merged['after'] | symmetric_difference(result['after']) |length\
\ == 0 }}"
- - name: Merge the provided configuration with the existing running configuration
+ - name:
+ Merge the provided configuration with the existing running configuration
(IDEMPOTENT)
register: result
vyos.vyos.vyos_firewall_interfaces: *id001
@@ -90,7 +85,6 @@
- "{{ merged['after'] | symmetric_difference(result['before']) |length\
\ == 0 }}"
always:
-
- include_tasks: _remove_config.yaml
- include_tasks: _remove_firewall_config.yaml
diff --git a/tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged_edit.yaml b/tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged_edit.yaml
index 873f4c4..1a53cab 100644
--- a/tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged_edit.yaml
+++ b/tests/integration/targets/vyos_firewall_interfaces/tests/cli/merged_edit.yaml
@@ -1,6 +1,7 @@
---
- debug:
- msg: START vyos_firewall_interfaces merged integration tests on connection={{
+ msg:
+ START vyos_firewall_interfaces merged integration tests on connection={{
ansible_connection }}
- include_tasks: _remove_config.yaml
@@ -12,18 +13,14 @@
- include_tasks: _populate.yaml
- block:
-
- - name: Merge the provided configuration with the exisiting running configuration
+ - name: Merge the provided configuration with the existing running configuration
register: result
vyos.vyos.vyos_firewall_interfaces: &id001
config:
-
- name: eth1
access_rules:
-
- afi: ipv4
rules:
-
- direction: in
name: OUTBOUND
@@ -33,7 +30,8 @@
- name: Assert that before dicts were correctly generated
assert:
- that: "{{ populate | symmetric_difference(result['before']) |length == 0\
+ that:
+ "{{ populate | symmetric_difference(result['before']) |length == 0\
\ }}"
- name: Assert that correct set of commands were generated
@@ -48,7 +46,8 @@
- "{{ merged_edit['after'] | symmetric_difference(result['after']) |length\
\ == 0 }}"
- - name: Merge the provided configuration with the existing running configuration
+ - name:
+ Merge the provided configuration with the existing running configuration
(IDEMPOTENT)
register: result
vyos.vyos.vyos_firewall_interfaces: *id001
@@ -64,7 +63,6 @@
- "{{ merged_edit['after'] | symmetric_difference(result['before']) |length\
\ == 0 }}"
always:
-
- include_tasks: _remove_config.yaml
- include_tasks: _remove_firewall_config.yaml