summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoromnom62 <75066712+omnom62@users.noreply.github.com>2026-08-27 22:48:45 +1000
committerGitHub <noreply@github.com>2026-08-27 15:48:45 +0300
commit61d27bc11d3f64ad4ad66ec42ff5ae83ccd30732 (patch)
tree71d401beb2591ce18dd23ccaea729ad0e17dee47 /tests
parent860b54cbf0f6a13b43a487f41467ab2c4d60d647 (diff)
downloadvyos.vyos-61d27bc11d3f64ad4ad66ec42ff5ae83ccd30732.tar.gz
vyos.vyos-61d27bc11d3f64ad4ad66ec42ff5ae83ccd30732.zip
T9249: Multi-line asserts for integration testing in vyos_firewall_rules (#499)
Fix multi-line asserts for integration testing in vyos_firewall_rules
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/targets/vyos_firewall_rules/vars/v1_4.yaml47
1 files changed, 19 insertions, 28 deletions
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]"