Changeset View
Changeset View
Standalone View
Standalone View
swh/objstorage/tests/test_objstorage_cloud.py
# Copyright (C) 2016 The Software Heritage developers | # Copyright (C) 2016 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import unittest | import unittest | ||||
import bz2 | import bz2 | ||||
import lzma | import lzma | ||||
import zlib | import zlib | ||||
from libcloud.common.types import InvalidCredsError | from libcloud.common.types import InvalidCredsError | ||||
from libcloud.storage.types import (ContainerDoesNotExistError, | from libcloud.storage.types import (ContainerDoesNotExistError, | ||||
ObjectDoesNotExistError) | ObjectDoesNotExistError) | ||||
from swh.model import hashutil | from swh.model import hashutil | ||||
from swh.objstorage.cloud.objstorage_cloud import CloudObjStorage | from swh.objstorage.backends.libcloud import CloudObjStorage | ||||
from .objstorage_testing import ObjStorageTestFixture | from .objstorage_testing import ObjStorageTestFixture | ||||
API_KEY = 'API_KEY' | API_KEY = 'API_KEY' | ||||
API_SECRET_KEY = 'API SECRET KEY' | API_SECRET_KEY = 'API SECRET KEY' | ||||
CONTAINER_NAME = 'test_container' | CONTAINER_NAME = 'test_container' | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |