robottelo.decorators.func_shared.file_storage

Module Contents

Classes

FileStorageHandler

Key value file storage handler.

Functions

get_temp_dir()

_get_root_dir(create=True)

Attributes

TEMP_ROOT_DIR

TEMP_FUNC_SHARED_DIR

SHARED_DIR

logger

LOCK_TIMEOUT

robottelo.decorators.func_shared.file_storage.TEMP_ROOT_DIR = robottelo
robottelo.decorators.func_shared.file_storage.TEMP_FUNC_SHARED_DIR = shared_functions
robottelo.decorators.func_shared.file_storage.SHARED_DIR
robottelo.decorators.func_shared.file_storage.logger
robottelo.decorators.func_shared.file_storage.LOCK_TIMEOUT = 7200
robottelo.decorators.func_shared.file_storage.get_temp_dir()
robottelo.decorators.func_shared.file_storage._get_root_dir(create=True)
class robottelo.decorators.func_shared.file_storage.FileStorageHandler(root_dir=None, create=True, lock_timeout=LOCK_TIMEOUT)

Bases: robottelo.decorators.func_shared.base.BaseStorageHandler

Key value file storage handler.

property root_dir(self)
get_key_file_path(self, key)
lock(self, key)

Return the storage locker context manager

when_lock_acquired(self, handler)

Write the process id to file handler

get(self, key)

Return the key value :type key: str

set(self, key, value)

Write the value of key