avocado.plugins.spawners package¶
Submodules¶
avocado.plugins.spawners.podman module¶
-
class
avocado.plugins.spawners.podman.PodmanCLI¶ Bases:
avocado.core.plugin_interfaces.CLI-
configure(parser)¶ Configures the command line parser with options specific to this plugin.
-
description= 'podman spawner command line options for "run"'¶
-
name= 'podman'¶
-
run(config)¶ Execute any action the plugin intends.
Example of action may include activating a special features upon finding that the requested command line options were set by the user.
Note: this plugin class is not intended for adding new commands, for that please use CLICmd.
-
-
class
avocado.plugins.spawners.podman.PodmanSpawner(config=None)¶ Bases:
avocado.core.plugin_interfaces.Spawner,avocado.core.spawners.common.SpawnerMixin-
METHODS= [<SpawnMethod.STANDALONE_EXECUTABLE: <object object>>]¶
-
static
check_task_requirements(runtime_task)¶ Checks if the requirements described within a task are available.
Parameters: runtime_task ( avocado.core.task.runtime.RuntimeTask) – wrapper for a Task with additional runtime information
-
description= 'Podman (container) based spawner'¶
-
static
is_task_alive(runtime_task)¶ Determines if a task is alive or not.
Parameters: runtime_task ( avocado.core.task.runtime.RuntimeTask) – wrapper for a Task with additional runtime information
-
spawn_task(runtime_task)¶ Spawns a task return whether the spawning was successful.
Parameters: runtime_task ( avocado.core.task.runtime.RuntimeTask) – wrapper for a Task with additional runtime information
-
static
wait_task(runtime_task)¶ Waits for a task to finish.
Parameters: runtime_task ( avocado.core.task.runtime.RuntimeTask) – wrapper for a Task with additional runtime information
-
-
class
avocado.plugins.spawners.podman.PodmanSpawnerInit¶ Bases:
avocado.core.plugin_interfaces.Init-
description= 'Podman (container) based spawner initialization'¶
-
initialize()¶ Entry point for the plugin to perform its initialization.
-
avocado.plugins.spawners.process module¶
-
class
avocado.plugins.spawners.process.ProcessSpawner(config=None)¶ Bases:
avocado.core.plugin_interfaces.Spawner,avocado.core.spawners.common.SpawnerMixin-
METHODS= [<SpawnMethod.STANDALONE_EXECUTABLE: <object object>>]¶
-
static
check_task_requirements(runtime_task)¶ Checks if the requirements described within a task are available.
Parameters: runtime_task ( avocado.core.task.runtime.RuntimeTask) – wrapper for a Task with additional runtime information
-
description= 'Process based spawner'¶
-
static
is_task_alive(runtime_task)¶ Determines if a task is alive or not.
Parameters: runtime_task ( avocado.core.task.runtime.RuntimeTask) – wrapper for a Task with additional runtime information
-
spawn_task(runtime_task)¶ Spawns a task return whether the spawning was successful.
Parameters: runtime_task ( avocado.core.task.runtime.RuntimeTask) – wrapper for a Task with additional runtime information
-
static
wait_task(runtime_task)¶ Waits for a task to finish.
Parameters: runtime_task ( avocado.core.task.runtime.RuntimeTask) – wrapper for a Task with additional runtime information
-