Skip to content

Commit

Permalink
issue #49 : test case
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Dec 15, 2023
1 parent 8fab62c commit bf86181
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
40 changes: 40 additions & 0 deletions test/alias-testissue49-expect.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<opnsense>
<filter>
</filter>
<OPNsense>
<Firewall>
<Alias>
<aliases>
<alias uuid="46d8f07d-7063-5331-ae6d-a67eb4a04a66">
<enabled>1</enabled>
<name>AA_375_1_SERVICE</name>
<type>port</type>
<proto/>
<interface/>
<counters>0</counters>
<updatefreq/>
<content>443
12061
12063
7004
18443
8084
21
4060
4061
8602
7000
8808
5432
5060:5062
8801:8803
8779</content>
<categories/>
<description>AA_375_1_SERVICE</description>
</alias>
</aliases>
</Alias>
</Firewall>
</OPNsense>
</opnsense>
40 changes: 40 additions & 0 deletions test/alias-testissue49.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version='1.0' encoding='UTF-8'?>
<opnsense>
<filter>
</filter>
<OPNsense>
<Firewall>
<Alias>
<aliases>
<alias uuid="46d8f07d-7063-5331-ae6d-a67eb4a04a66">
<enabled>1</enabled>
<name>AA_375_1_SERVICE</name>
<type>port</type>
<proto/>
<interface/>
<counters>0</counters>
<updatefreq/>
<content>443
12061
12063
7004
18443
8084
21
4060
4061
8602
7000
8808
5432
5060:5062
8801:8803
8779</content>
<categories/>
<description>AA_375_1_SERVICE</description>
</alias>
</aliases>
</Alias>
</Firewall>
</OPNsense>
</opnsense>
23 changes: 23 additions & 0 deletions test/alias-testissue49.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---

opn_alias:
- uuid: 46d8f07d-7063-5331-ae6d-a67eb4a04a66
settings:
- key: content
list:
- 443
- 12061
- 12063
- 7004
- 18443
- 8084
- 21
- 4060
- 4061
- 8602
- 7000
- 8808
- 5432
- "5060:5062"
#- 8801:8803
- 8779

0 comments on commit bf86181

Please sign in to comment.