proxy: add additional tests for trailing slash

This commit is contained in:
Caleb Doxsey 2020-04-17 07:57:26 -06:00 committed by Caleb Doxsey
parent e1d2501a94
commit 19053c8f06
2 changed files with 5 additions and 0 deletions

View file

@ -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"},