summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-07-18 17:56:40 -0300
committerdrebs <drebs@leap.se>2017-07-18 18:07:21 -0300
commitd8071742d6fc6bdcfacd974b2ca7531a180f50eb (patch)
tree4aba675dfa1ea90f9bcb064c3c0a4e8de6783ea9
parentc85b15c728c28a1315ad84cb85a7bb371c4bb36b (diff)
[feat] use MX as default namepace for incoming blobs
-rw-r--r--src/leap/soledad/server/_incoming.py2
-rw-r--r--testing/tests/server/test_incoming_server.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/server/_incoming.py b/src/leap/soledad/server/_incoming.py
index 8d057ae9..71e71d7f 100644
--- a/src/leap/soledad/server/_incoming.py
+++ b/src/leap/soledad/server/_incoming.py
@@ -64,7 +64,7 @@ class IncomingResource(Resource):
raw_content = request.content.read()
preamble = self.formatter.preamble(raw_content, doc_id)
request.content = BytesIO(preamble + raw_content)
- d = db.write_blob(uuid, doc_id, request, namespace='incoming')
+ d = db.write_blob(uuid, doc_id, request, namespace='MX')
d.addCallback(lambda _: self._finish(request))
return NOT_DONE_YET
diff --git a/testing/tests/server/test_incoming_server.py b/testing/tests/server/test_incoming_server.py
index 78bc86a8..8886a721 100644
--- a/testing/tests/server/test_incoming_server.py
+++ b/testing/tests/server/test_incoming_server.py
@@ -82,6 +82,6 @@ class IncomingOnCouchServerTestCase(CouchDBTestCase):
db = self.state.open_database(user_id)
request = DummyRequest([user_id, doc_id])
- yield db.read_blob(user_id, doc_id, request, 'incoming')
+ yield db.read_blob(user_id, doc_id, request, 'MX')
expected = formatter.preamble(content, doc_id) + content
self.assertEquals(expected, request.written[0])