authorize: more tests

This commit is contained in:
Caleb Doxsey 2020-04-17 07:59:24 -06:00 committed by Caleb Doxsey
parent 19053c8f06
commit a1424a54d0

View file

@ -54,6 +54,8 @@ test_allowed_route_source {
allowed_route("http://example.com", {"source": "http://example.com"})
allowed_route("http://example.com", {"source": "https://example.com"})
allowed_route("http://example.com/", {"source": "https://example.com"})
allowed_route("http://example.com", {"source": "https://example.com/"})
allowed_route("http://example.com/", {"source": "https://example.com/"})
not allowed_route("http://example.org", {"source": "example.com"})
}