glance_store.tests package

Submodules

glance_store.tests.base module

class glance_store.tests.base.StoreBaseTest(*args, **kwds)

Bases: oslotest.base.BaseTestCase

config(**kw)

Override some configuration values.

The keyword arguments are the names of configuration options to override and their values.

If a group argument is supplied, the overrides are applied to the specified configuration option group.

All overrides are automatically cleared at the end of the current test by the fixtures cleanup process.

copy_data_file(file_name, dst_dir)
register_store_schemes(store, store_entry)
setUp()

glance_store.tests.fakes module

class glance_store.tests.fakes.UnconfigurableStore(conf)

Bases: glance_store.driver.Store

configure(re_raise_bsc=False)

glance_store.tests.utils module

class glance_store.tests.utils.FakeHTTPResponse(status=200, headers=None, data=None, *args, **kwargs)

Bases: object

close()
getheader(name, default=None)
getheaders()
read(amt)
release_conn()
glance_store.tests.utils.fake_response(status_code=200, headers=None, content=None, **kwargs)
glance_store.tests.utils.sort_url_by_qs_keys(url)

Module contents