Commit 578b9501 authored by sand's avatar sand

httpd integration test for .htaccess restrictions

parent 1ab7c127
AuthType SSO
SSOService service.example.com/
Require user testuser
......@@ -164,6 +164,20 @@ class HttpdIntegrationTest(unittest.TestCase):
"status": 302,
"http_host": "testhost.example.com",
"location": "https://login.example.com/?s=testhost.example.com%2Fother-service%2F&d=https%3A%2F%2Ftesthost.example.com%2Fother-service%2Findex.html"}),
("protected-htaccess -> redirect",
{"url": "/protected-htaccess/index.html",
"status": 302,
"location": "https://login.example.com/?s=service.example.com%2F&d=https%3A%2F%2Fservice.example.com%2Fprotected-htaccess%2Findex.html"}),
("protected-htaccess with cookie -> ok",
{"url": "/protected-htaccess/index.html",
"cookie": mkcookie(self._ticket()),
"status": 200,
"body": "ok"}),
("protected-htaccess with cookie wrong user -> fail",
{"url": "/protected-htaccess/index.html",
"cookie": mkcookie(self._ticket(user="wronguser")),
"status": 401 }),
]
for name, check in checks:
status, body, location = _query(check["url"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment