summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-10-13 15:53:18 +0100
committerMark Haines <mark.haines@matrix.org>2014-10-13 15:53:18 +0100
commit25d80f35f10239b280cf374f60ccb552087fcf44 (patch)
tree3a926b1b1bfa7114cfcdc82c01ca3cf22e19c43b /tests/utils.py
parentRemove debug logging, raise a proper SynapseError if the auth header is missing (diff)
downloadsynapse-25d80f35f10239b280cf374f60ccb552087fcf44.tar.xz
Raise a SynapseError if the authorisation header is missing or malformed
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 83dbd4f4d3..60fd6085ac 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -79,6 +79,10 @@ class MockHttpResource(HttpServer):
         mock_request.method = http_method
         mock_request.uri = path
 
+        mock_request.requestHeaders.getRawHeaders.return_value=[
+            "X-Matrix origin=test,key=,sig="
+        ]
+
         # return the right path if the event requires it
         mock_request.path = path