diff options
author | Markus Koetter <koetter@cispa.de> | 2021-09-16 19:53:24 +0200 |
---|---|---|
committer | Markus Kötter <koetter@cispa.de> | 2023-06-29 17:14:17 +0200 |
commit | 232fcb3d9ee79ffd814497128aa8d5023878fb3c (patch) | |
tree | 05ba794efd98cd4e516c19cc7171e9b38b094491 /tests/test_config.py | |
parent | 3e24032af1cafe89a55e7af01fe961816016ad71 (diff) |
config - implement Match final
Diffstat (limited to 'tests/test_config.py')
-rw-r--r-- | tests/test_config.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_config.py b/tests/test_config.py index fcb120b6..89b48472 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1030,3 +1030,14 @@ class TestComplexMatching: # !canonical in a config that is canonicalized - does NOT match result = load_config("match-canonical-yes").lookup("www") assert result["user"] == "hidden" + + +class TestFinalMatching(object): + def test_final(self): + result = load_config("match-final").lookup("finally") + assert result["proxyjump"] == "jump" + assert result["port"] == "1001" + + def test_negated(self): + result = load_config("match-final").lookup("jump") + assert result["port"] == "1003" |