Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311559
test_objstorage_api.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
test_objstorage_api.py
View Options
# 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
Details
Attached
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
Attached To
rDOBJS Object storage
Event Timeline
Log In to Comment