Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ai
sso
Commits
578b9501
Commit
578b9501
authored
Aug 19, 2013
by
sand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httpd integration test for .htaccess restrictions
parent
1ab7c127
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
src/mod_sso/test/htdocs/protected-htaccess/.htaccess
src/mod_sso/test/htdocs/protected-htaccess/.htaccess
+3
-0
src/mod_sso/test/htdocs/protected-htaccess/index.html
src/mod_sso/test/htdocs/protected-htaccess/index.html
+1
-0
src/mod_sso/test/httpd_integration_test.py
src/mod_sso/test/httpd_integration_test.py
+14
-0
No files found.
src/mod_sso/test/htdocs/protected-htaccess/.htaccess
0 → 100644
View file @
578b9501
AuthType
SSO
SSOService service.example.com/
Require
user
testuser
src/mod_sso/test/htdocs/protected-htaccess/index.html
0 → 100644
View file @
578b9501
ok
src/mod_sso/test/httpd_integration_test.py
View file @
578b9501
...
...
@@ -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"
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment