summaryrefslogtreecommitdiffhomepage
path: root/tests/test_config.py
diff options
context:
space:
mode:
authorMarkus Kötter <koetter@cispa.de>2023-07-21 08:06:09 +0200
committerMarkus Kötter <koetter@cispa.de>2023-07-21 08:13:42 +0200
commit31e60cc3e89768259713ad67a8f282f15e84af65 (patch)
tree962b63f07fc0a11d8c06c5467af829e8b082821e /tests/test_config.py
parent232fcb3d9ee79ffd814497128aa8d5023878fb3c (diff)
tests - additional test for match-final
Diffstat (limited to 'tests/test_config.py')
-rw-r--r--tests/test_config.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_config.py b/tests/test_config.py
index 89b48472..2e49aa3d 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -1033,11 +1033,16 @@ class TestComplexMatching:
class TestFinalMatching(object):
- def test_final(self):
+ def test_finally(self):
result = load_config("match-final").lookup("finally")
assert result["proxyjump"] == "jump"
assert result["port"] == "1001"
+ def test_default_port(self):
+ result = load_config("match-final").lookup("default-port")
+ assert result["proxyjump"] == "jump"
+ assert result["port"] == "1002"
+
def test_negated(self):
result = load_config("match-final").lookup("jump")
assert result["port"] == "1003"