Ejemplo n.º 1
0
 def __init__(self):
     self.scheme = "ufile"
     self.path = None
     self.config = testing.Config(
         dict(ufile_baseurl="http://bucket.ufile.ucloud.cn",
              ufile_public_key="public",
              ufile_private_key="private"))
Ejemplo n.º 2
0
 def __init__(self):
     self.scheme = 'elliptics'
     self.path = ''
     self.config = testing.Config({
         'elliptics_nodes': GOOD_REMOTE,
         'elliptics_groups': [999, 1000]
     })
    def test_list_directory_with_subdir(self):
        # Test with root directory
        super(TestDriver, self).test_list_directory_with_subdir()
        self.tearDown()

        # Test with custom root directory
        self.config = testing.Config({'storage_path': '/foo'})
        self.setUp()
        super(TestDriver, self).test_list_directory_with_subdir()
Ejemplo n.º 4
0
 def __init__(self):
     self.scheme = 'sinastorage'
     self.path = ''
     self.config = testing.Config({
         'sinastorage_bucket':
         'test-docker-registry',
         'sinastorage_accesskey':
         'PUT_YOUR_ACCESSKEY',
         'sinastorage_secretkey':
         'PUT_YOUR_SECRETKEY'
     })
Ejemplo n.º 5
0
 def __init__(self):
     self.scheme = 'qiniustorage'
     self.path = ''
     self.config = testing.Config({
         'qiniu_bucket':
         'docker-registry-qiniu',
         'qiniu_accesskey':
         'V-Ua6icAAmPxxPhrTWIGoYFPHgz-aIiH7GCZDuJr',
         'qiniu_secretkey':
         '',
         'qiniu_domain':
         'docker-registry-qiniu.qiniudn.com'
     })
 def test_swift_root_path_custom(self):
     config = testing.Config({'storage_path': '/foo'})
     self._storage.__init__(config=config)
     assert self._storage._init_path() == 'foo'
     assert self._storage._init_path('foo') == 'foo/foo'
 def __init__(self):
     self.scheme = 'swift'
     self.path = ''
     self.config = testing.Config({})
Ejemplo n.º 8
0
 def init(self):
     self.scheme = name
     self.path = ''
     self.config = testing.Config({})
Ejemplo n.º 9
0
 def __init__(self):
     self.scheme = '{{driver.name}}'
     self.path = ''
     self.config = testing.Config({})
Ejemplo n.º 10
0
def _set_up_with_config(config):
    config = testing.Config(config)
    d = testing.Driver(scheme='elliptics', config=config)
    d.setUp()
    return d
Ejemplo n.º 11
0
 def __init__(self):
     self.scheme = 'elliptics'
     self.path = ''
     self.config = testing.Config({'elliptics_nodes': GOOD_REMOTE})