summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelogs/fragments/fw_rules_sit.yml3
-rw-r--r--tests/integration/targets/vyos_firewall_rules/vars/v1_4.yaml47
2 files changed, 22 insertions, 28 deletions
diff --git a/changelogs/fragments/fw_rules_sit.yml b/changelogs/fragments/fw_rules_sit.yml
new file mode 100644
index 00000000..52e23de2
--- /dev/null
+++ b/changelogs/fragments/fw_rules_sit.yml
@@ -0,0 +1,3 @@
+---
+trivial:
+ - vyos_firewall_rules - Fix SIT for firewall_rules diff feature
diff --git a/tests/integration/targets/vyos_firewall_rules/vars/v1_4.yaml b/tests/integration/targets/vyos_firewall_rules/vars/v1_4.yaml
index 20ee461b..0df32545 100644
--- a/tests/integration/targets/vyos_firewall_rules/vars/v1_4.yaml
+++ b/tests/integration/targets/vyos_firewall_rules/vars/v1_4.yaml
@@ -160,13 +160,10 @@ replaced_diff_01:
source:
address: 192.0.2.0
state: "{{ state_dict }}"
- diff: |-
- [firewall ipv4 name INBOUND rule 101]
- - action \"accept\"
- + action \"reject\"
-
-
- [edit]
+ diff: "[firewall ipv4 name INBOUND rule 101]\n\
+ - action \"accept\"\n\
+ + action \"reject\"\n\n\n\
+ [edit]"
replaced_diff_02:
config:
@@ -207,15 +204,12 @@ replaced_diff_02:
source:
address: 192.0.2.0
state: "{{ state_dict }}"
- diff: |-
- [firewall ipv4 name INBOUND rule 102]
- - action \"reject\"
- + action \"accept\"
- - protocol \"tcp\"
- + protocol \"udp\"
-
-
- [edit]
+ diff: "[firewall ipv4 name INBOUND rule 102]\n\
+ - action \"reject\"\n\
+ + action \"accept\"\n\
+ - protocol \"tcp\"\n\
+ + protocol \"udp\"\n\n\n\
+ [edit]"
replaced_diff_03:
config:
@@ -256,15 +250,12 @@ replaced_diff_03:
source:
address: 192.0.2.0
state: "{{ state_dict }}"
- diff: |-
- [firewall ipv4 name INBOUND rule 102]
- - protocol \"udp\"
- + protocol \"tcp\"
- [firewall ipv6 name UPLINK rule 1]
- - action \"accept\"
- + action \"reject\"
- - protocol \"tcp\"
- + protocol \"udp\"
-
-
- [edit]
+ diff: "[firewall ipv4 name INBOUND rule 102]\n\
+ - protocol \"udp\"\n\
+ + protocol \"tcp\"\n\
+ [firewall ipv6 name UPLINK rule 1]\n\
+ - action \"accept\"\n\
+ + action \"reject\"\n\
+ - protocol \"tcp\"\n\
+ + protocol \"udp\"\n\n\n\
+ [edit]"