From fc074f2544792cd3903e304cf9b3ac25eaaaf2a3 Mon Sep 17 00:00:00 2001 From: Klaus Zerwes Date: Thu, 14 Dec 2023 21:30:01 +0100 Subject: [PATCH] issue #46 : test case for alias re-sorting --- test/alias-testunsorted-expect.xml | 31 ++++++++++++++++++++++++++++++ test/alias-testunsorted.xml | 30 +++++++++++++++++++++++++++++ test/alias-testunsorted.yml | 26 +++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 test/alias-testunsorted-expect.xml create mode 100644 test/alias-testunsorted.xml create mode 100644 test/alias-testunsorted.yml diff --git a/test/alias-testunsorted-expect.xml b/test/alias-testunsorted-expect.xml new file mode 100644 index 0000000..f271655 --- /dev/null +++ b/test/alias-testunsorted-expect.xml @@ -0,0 +1,31 @@ + + + + + + + + + + PRIVATE_NETWORKS + network + 1 + opn alias PRIVATE_NETWORKS + 10.0.0.0/8 +172.16.0.0/12 +192.168.0.0/16 + + + HTTP_TCP + port + 1 + tcp http(s) ports + 80 +443 +8443 + + + + + + diff --git a/test/alias-testunsorted.xml b/test/alias-testunsorted.xml new file mode 100644 index 0000000..00c1320 --- /dev/null +++ b/test/alias-testunsorted.xml @@ -0,0 +1,30 @@ + + + + + + + + + + PRIVATE_NETWORKS + network + 1 + opn alias PRIVATE_NETWORKS + 10.0.0.0/8 +172.16.0.0/12 +192.168.0.0/16 + + + HTTP_TCP + port + 1 + tcp http(s) ports + 80 +443 + + + + + + diff --git a/test/alias-testunsorted.yml b/test/alias-testunsorted.yml new file mode 100644 index 0000000..9cb6733 --- /dev/null +++ b/test/alias-testunsorted.yml @@ -0,0 +1,26 @@ +--- + +opn_alias: + - uuid: b9ca4f72-ab35-5c48-8460-d71a7ef50184 + settings: + - key: name + value: PRIVATE_NETWORKS + - key: content + list: + - 172.16.0.0/12 + - 192.168.0.0/16 + - 10.0.0.0/8 + - key: content + list: + - 192.168.0.0/16 + - 172.16.0.0/12 + - 10.0.0.0/8 + - uuid: b948ceaa-1ca9-5009-bad1-04660a926f87 + settings: + - key: name + value: HTTP_TCP + - key: content + list: + - 80 + - 443 + - 8443