Commit 9965a53c by Xavier Antoviaque

Remove default /heartbeat from excluded URLs (edx-platform specific)

parent 6e8bd685
......@@ -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"
)
......
......@@ -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
......
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