Page MenuHomeSoftware Heritage

test_objstorage_api.py
No OneTemporary

test_objstorage_api.py

# Copyright (C) 2015 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import tempfile
import unittest
from swh.objstorage import get_objstorage
from swh.objstorage.tests.objstorage_testing import ObjStorageTestFixture
from swh.objstorage.tests.server_testing import ServerTestFixture
from swh.objstorage.api.server import make_app
class TestRemoteObjStorage(ServerTestFixture, ObjStorageTestFixture,
unittest.TestCase):
""" Test the remote archive API.
"""
def setUp(self):
self.config = {
'cls': 'pathslicing',
'args': {
'root': tempfile.mkdtemp(),
'slicing': '0:1/0:5',
},
'client_max_size': 8 * 1024 * 1024,
}
self.app = make_app(self.config)
super().setUp()
self.storage = get_objstorage('remote', {
'url': self.url()
})

File Metadata

Mime Type
text/x-python
Expires
Thu, Jul 3, 10:21 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3288294

Event Timeline