Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(51)

Unified Diff: server/guiserver/tests/test_apps.py

Issue 57690051: Fix sandbox mode.
Patch Set: Fix sandbox mode. Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/guiserver/apps.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/guiserver/tests/test_apps.py
=== modified file 'server/guiserver/tests/test_apps.py'
--- server/guiserver/tests/test_apps.py 2014-01-28 10:32:31 +0000
+++ server/guiserver/tests/test_apps.py 2014-02-04 17:23:57 +0000
@@ -110,12 +110,18 @@
tokens = self.assert_in_spec(spec, 'tokens')
self.assertIsInstance(tokens, auth.AuthenticationTokenHandler)
- def test_sandbox(self):
+ def test_websocket_excluded_in_sandbox_mode(self):
# The WebSocket handler is excluded if sandbox mode is enabled.
app = self.get_app(sandbox=True)
spec = self.get_url_spec(app, r'^/ws$')
self.assertIsNone(spec)
+ def test_proxy_excluded_in_sandbox_mode(self):
+ # The juju-core HTTPS proxy is excluded if sandbox mode is enabled.
+ app = self.get_app(sandbox=True)
+ spec = self.get_url_spec(app, r'^/juju-core/(.*)$')
+ self.assertIsNone(spec)
+
def test_static_files(self):
# The Juju GUI static files are correctly served.
app = self.get_app()
« no previous file with comments | « server/guiserver/apps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b