mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
proxy: add additional tests for trailing slash
This commit is contained in:
parent
e1d2501a94
commit
19053c8f06
2 changed files with 5 additions and 0 deletions
|
@ -288,6 +288,9 @@ func TestRouteMatcherFuncFromPolicy(t *testing.T) {
|
|||
{"https://www.example.com", "", "", "",
|
||||
"https://www.example.com", true,
|
||||
"should match when host is the same as source host"},
|
||||
{"https://www.example.com/", "", "", "",
|
||||
"https://www.example.com", true,
|
||||
"should match when host is the same as source host with trailing slash"},
|
||||
{"https://www.example.com", "", "", "",
|
||||
"https://www.google.com", false,
|
||||
"should not match when host is different from source host"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue