OpenStack Study:
OpenStack IndexPreviousNext
\OpenStack\glance-2014.1\glance\tests\utils.py
class BaseTestCase(testtools.TestCase):
def setUp(self):
def tearDown(self):
def set_property_protections(self, use_policies=False):
def unset_property_protections(self):
def _copy_data_file(self, file_name, dst_dir):
def set_property_protection_rules(self, rules):
def config(self, **kw):
class requires(object):
def __init__(self, setup=None, teardown=None):
def __call__(self, func):
def _runner(*args, **kw):
class depends_on_exe(object):
def __init__(self, exe):
def __call__(self, func):
def _runner(*args, **kw):
def wrapped(*a, **kwargs):
def fork_exec(cmd, exec_env=None, logfile=None):
def wait_for_fork(pid, raise_error=True, expected_exitcode=0):
def execute(cmd, raise_error=True, no_venv=False, exec_env=None, expect_exit=True, expected_exitcode=0, context=None):
def find_executable(cmdname):
def get_unused_port():
def get_unused_port_and_socket():
def xattr_writes_supported(path):
def set_xattr(path, key, value):
def minimal_headers(name, public=True):
def minimal_add_command(port, name, suffix='', public=True):
class RegistryAPIMixIn(object):
def create_fixtures(self):
def destroy_fixtures(self):
def get_fixture(self, **kwargs):
def get_minimal_fixture(self, **kwargs):
def get_extra_fixture(self, id, name, **kwargs):
def get_api_response_ext(self, http_resp, url='/images', headers={}, body=None, method=None, api=None, content_type=None):
def assertEqualImages(self, res, uuids, key='images', unjsonify=True):
class FakeAuthMiddleware(wsgi.Middleware):
def __init__(self, app, is_admin=False):
def process_request(self, req):
class FakeHTTPResponse(object):
def __init__(self, status=200, headers=None, data=None, *args, **kwargs):
def getheader(self, name, default=None):
def getheaders(self):
def read(self, amt):
class Httplib2WsgiAdapter(object):
def __init__(self, app):
def request(self, uri, method="GET", body=None, headers=None):
class Httplib2WebobResponse(object):
def __init__(self, webob_resp):
def status(self):
def __getitem__(self, key):
def get(self, key):
def allow(self):
def allow(self, allowed):
class HttplibWsgiAdapter(object):
def __init__(self, app):
def request(self, method, url, body=None, headers={}):
def getresponse(self):
\OpenStack\glance-2014.1\glance\tests\__init__.py
\OpenStack\glance-2014.1\glance\version.py
\OpenStack\glance-2014.1\glance\__init__.py
|