freezer.tests.commons module

freezer.tests.commons module

class freezer.tests.commons.BackupOpt1

Bases: object

class freezer.tests.commons.FakeCinderClient

Bases: object

class Backups

Bases: object

create(id, container, name, desription)
list(**kwargs)
class Restores

Bases: object

static restore(backup_id)
class VolumeSnapshot

Bases: object

static create(volume_id, name, force)
static delete(snapshot)
class Volumes

Bases: object

static create(size, snapshot_id=None, imageRef=None)
static delete(volume)
static get(id)
static upload_to_image(volume, force, image_name, container_format, disk_format)
class freezer.tests.commons.FakeDisableFileSystemRedirection

Bases: object

success = True
class freezer.tests.commons.FakeGlanceClient

Bases: object

class Images

Bases: object

static create(data, container_format, disk_format)
static data(image)
static delete(image)
class freezer.tests.commons.FakeIdObject(id)

Bases: object

class freezer.tests.commons.FakeSubProcess(opt1=True, stdin=True, stdout=True, stderr=True, shell=True, executable=True, env={}, bufsize=4096)

Bases: object

classmethod Popen()
classmethod communicate()
classmethod communicate_error()
class stdin

Bases: object

classmethod write(*args, **kwargs)
stdout = ['abcd', 'ehfg']
class freezer.tests.commons.FakeSubProcess3(opt1=True, stdin=True, stdout=True, stderr=True, shell=True, executable=True)

Bases: object

classmethod Popen(opt1=True, stdin=True, stdout=True, stderr=True, shell=True, executable=True)
classmethod communicate()
class stdin

Bases: object

classmethod write(*args, **kwargs)
class freezer.tests.commons.FakeSubProcess6

Bases: object

classmethod Popen(cmd=None)
classmethod communicate()
classmethod communicate_error()
class freezer.tests.commons.FakeSwiftClient

Bases: object

class client

Bases: object

class Connection(key=True, os_options=True, auth_version=True, user=True, authurl=True, tenant_name=True, retries=True, insecure=True)

Bases: object

delete_object(container_name='', object_name='')
get_account(*args, **kwargs)
get_container(container, *args, **kwargs)
get_object(*args, **kwargs)
head_object(container_name='', object_name='')
put_container(container=True)
put_object(container, obj, contents, content_length=None, etag=None, chunk_size=None, content_type=None, headers=None, query_string=None, response_dict=None)
class freezer.tests.commons.FreezerBaseTestCase(*args, **kwargs)

Bases: testtools.testcase.TestCase

setUp()

Hook method for setting up the test fixture before exercising it.

tearDown()

Hook method for deconstructing the test fixture after testing it.

class freezer.tests.commons.Os(directory=True)

Bases: object

classmethod abspath(directory=True, opt2=True)
classmethod basename(directory=True)
classmethod chdir(directory1=True)
classmethod chdir2(directory1=True)
classmethod copy()
classmethod environ(copy)
classmethod exists(directory=True)
classmethod expanduser(directory=True, opt2=True)
classmethod expandvars(directory=True)
classmethod isabs(directory=True)
classmethod isdir(directory=True)
classmethod isfile(directory=True)
classmethod join(directory1=True, directory2=True)
classmethod makedirs(directory=True)
classmethod makedirs2(directory=True)
classmethod normcase(directory=True, opt2=True)
classmethod notexists(directory=True)
classmethod path(directory=True)
classmethod realpath(directory=True, opt2=True)
classmethod remove(directory=True)
classmethod rmdir(directory1=True)
classmethod split(directory=True)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.