tmt.steps.prepare.artifact package

Subpackages

Module contents

class tmt.steps.prepare.artifact.PrepareArtifact(*, step: Step, data: StepDataT, workdir: Literal[True] | Path | None = None, logger: Logger)

Bases: PreparePlugin[PrepareArtifactData]

Prepare artifacts on the guest.

Note

This is a draft plugin to be implemented

Store plugin name, data and parent step

cli_invocation: 'tmt.cli.CliInvocation' | None = None
essential_requires() list[DependencySimple | DependencyFmfId | DependencyFile]

Collect all essential requirements of the plugin.

Essential requirements of a plugin are necessary for the plugin to perform its basic functionality.

Returns:

a list of requirements.

go(*, guest: Guest, environment: Environment | None = None, logger: Logger) PluginOutcome

Prepare the guest (common actions)

class tmt.steps.prepare.artifact.PrepareArtifactData(name: str, how: str, order: int = 50, when: list[str] = <factory>, summary: str | None = None, where: list[str] = <factory>, provide: list[str] = <factory>)

Bases: PrepareStepData

provide: list[str]
tmt.steps.prepare.artifact.get_artifact_provider(provider_id: str) type[ArtifactProvider[ArtifactInfo]]