The freezer.tests.commons Module

class freezer.tests.commons.BackupOpt1[source]

Bases: object

class freezer.tests.commons.FakeCinderClient[source]

Bases: object

class Backups[source]

Bases: object

create(id, container, name, desription)[source]
list(**kwargs)[source]
class FakeCinderClient.Restores[source]

Bases: object

static restore(backup_id)[source]
class FakeCinderClient.VolumeSnapshot[source]

Bases: object

static create(volume_id, name, force)[source]
static delete(snapshot)[source]
class FakeCinderClient.Volumes[source]

Bases: object

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

Bases: object

success = True
class freezer.tests.commons.FakeGlanceClient[source]

Bases: object

class Images[source]

Bases: object

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

Bases: object

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

Bases: object

classmethod Popen()[source]
classmethod communicate()[source]
classmethod communicate_error()[source]
class stdin[source]

Bases: object

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

Bases: object

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

Bases: object

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

Bases: object

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

Bases: object

class client[source]

Bases: object

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

Bases: object

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

Bases: testtools.testcase.TestCase

setUp()[source]
tearDown()[source]
class freezer.tests.commons.Os(directory=True)[source]

Bases: object

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