Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-splash
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-splash
Commits
9965a53c
Commit
9965a53c
authored
Feb 14, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove default /heartbeat from excluded URLs (edx-platform specific)
parent
6e8bd685
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
13 deletions
+1
-13
splash/models.py
+1
-1
splash/tests.py
+0
-12
No files found.
splash/models.py
View file @
9965a53c
...
...
@@ -24,7 +24,7 @@ class SplashConfig(ConfigurationModel):
help_text
=
"Comma-separated list of users which should never be redirected (usernames)"
)
unaffected_url_paths
=
models
.
TextField
(
default
=
'
/heartbeat
'
,
default
=
''
,
blank
=
True
,
help_text
=
"Comma-separated list of URL paths (not including the hostname) which should not be redirected"
)
...
...
splash/tests.py
View file @
9965a53c
...
...
@@ -176,18 +176,6 @@ class SplashMiddlewareTestCase(TestCase):
config
=
SplashConfig
(
redirect_url
=
'/somewhere'
)
self
.
assertRaises
(
ValidationError
,
config
.
save
)
def
test_unaffected_path_default
(
self
):
"""
Unaffected paths should never be redirected - default
"""
SplashConfig
(
enabled
=
True
,
)
.
save
()
request
=
self
.
build_request
(
url_path
=
'/heartbeat'
)
response
=
self
.
splash_middleware
.
process_request
(
request
)
self
.
assertEquals
(
response
,
None
)
def
test_unaffected_path
(
self
):
"""
Unaffected paths should never be redirected - custom value
...
...
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