Contracts
application.running state, v1, stable
The application under test is running on the target.
Offered by
nobody
Needed by
none
capture.running state, v1, stable
A packet capture is running.
Offered by
pcap.start_on_host-pcap.start-sim.capture_start-
Needed by
none
console.open state, v1, stable
A console is open and recording.
Offered by
qemu.open_console-serial.open-
Needed by
none
descriptor.credentials capability, v1, stable
How to log in: a user and a password or a key file.
suggested role: credentials
Members
user: str(required): Account name.password: str | None(required): Password, or None when a key is used.key_path: str | None(required): Path of a private key file, or None when a password is used.
Guarantees
- user is a non-empty string.
Offered by
net.keykey_path, password, usernet.passwordkey_path, password, userqemu.credentialskey_path, password, user
Needed by
sim.shellslotcredentialsexpects userssh.shellslotcredentialsexpects key_path, password, user
Conformance checks
user_is_a_nonempty_stringa_secret_is_a_string_or_none
descriptor.endpoint capability, v1, stable
Where a service listens: a host and a TCP port.
suggested role: endpoint
Members
host: str(required): Address or name reachable from the test host.port: int(required): TCP port, 1 to 65535.
Guarantees
- host is a non-empty string and port an integer in 1..65535.
Offered by
docker.endpointhost, portnet.endpointhost, portqemu.endpointhost, port
Needed by
dlt.receive_tcpslotendpointexpects host, portping.pingslotendpointexpects hostping.pingerslotendpointexpects hostsim.logsslotendpointexpects host, portsim.shellslotendpointexpects host, portssh.shellslotendpointexpects host, port
Conformance checks
host_is_a_nonempty_stringport_is_a_valid_tcp_port
diagnostics.core_dump capability, v1, stable
Copy the target's core files to the host, when the test or a policy decides to.
suggested role: core_dumps
Members
collect(output_dir: str) -> list[str](required): Copies the core files that are new or changed since the last collect into output_dir and returns their local paths; remote files are kept.
Guarantees
- A file is never written outside output_dir.
- A core file that has not changed is not copied twice.
Offered by
core_dump.collectorcollect
Needed by
none
exec.command capability, v1, stable
Run one shell command and get its exit code and output.
suggested role: command
Members
exec(command: str, timeout: float = 30.0) -> tuple[int, bytes](required): Returns the exit code and the output as bytes, stdout followed by stderr. A nonzero exit is returned, never raised. Timeout enforcement is factory-specific: implementations that can cancel a running command raise TimeoutError when the requested limit expires; callers must not rely on portable timeout enforcement.
Guarantees
- A nonzero exit code is returned, not raised.
- The output contains what the command wrote to stdout and to stderr.
Offered by
docker.execexeclocalhost.execexecserial.execexecsim.execexecssh.execexec
Needed by
core_dump.collectorslotcommandexpects exec
Conformance checks
output_and_exit_code_are_returneda_failing_command_reports_its_exit_code_without_raisingstderr_is_part_of_the_output
exec.console capability, v1, stable
A console (UART, emulator serial port) whose output is recorded from the moment it opens.
suggested role: console
Members
open() -> None(required): Opens the console and starts recording; normally done by the state, not by tests.is_open() -> bool(required): True while the console is open and its reader is healthy.close() -> None(required): Stops recording and releases the device; called at teardown.write(text: str) -> None(required): Sends one line of text (a newline is appended). Raises RuntimeError when not open.mark() -> int(required): A cursor for lines() and wait_for(); only lines received after this call count.lines(since: int = 0) -> list[str](required): The recorded lines, from the cursor `since` (default: everything still buffered).wait_for(pattern: str, timeout: float = 30.0, *, since: int | None = None, regex: bool = False) -> str | None(required): The first line containing (or matching) the pattern after `since` (default now), or None on timeout.run(command: str, timeout: float = 30.0) -> tuple[int, str](required): Runs a shell command on the console; returns exit code and output without echo or marker.
Guarantees
- Output printed since the console opened is recorded, not only output after the first read.
- lines(since=mark) returns only lines received after the mark was taken.
- run reports the exit code of the command.
Offered by
qemu.consoleclose, is_open, lines, mark, open, run, wait_for, writeserial.consoleclose, is_open, lines, mark, open, run, wait_for, writeserial.pty_consoleclose, is_open, lines, mark, open, run, wait_for, write
Needed by
serial.execslotconsoleexpects runqemu.open_consoleslotconsoleexpects is_open, openserial.openslotconsoleexpects is_open, open
Conformance checks
the_console_is_openthe_console_recorded_output_since_it_openedrun_reports_the_exit_code_and_the_outputwritten_text_is_seen_after_a_mark
exec.process capability, v1, stable
Start a program asynchronously and control it through a handle.
suggested role: process
Members
spawn(binary_path: str, args: list[str] | None = None, cwd: str = '/') -> AsyncProcess(required): Starts the program (a plain command line is accepted as the first argument) in `cwd` and returns without waiting. The handle offers pid(), is_running(), wait(timeout_s), stop(), get_exit_code() and get_output().
Guarantees
- spawn returns before the program ends.
- wait returns the program's exit code, and the handle then reports it is no longer running.
- stop ends a running program (exit code 143 or 137) and the handle then reports it is not running.
- get_output returns what the program wrote to stdout and stderr.
- The program starts in the requested working directory.
Offered by
docker.processspawn, wrap_execlocalhost.processspawnssh.processspawn, wrap_exec
Needed by
dlt.on_targetslotprocessexpects spawn
Conformance checks
a_process_reports_pid_running_and_exit_codestop_terminates_a_long_running_processoutput_is_capturedcwd_is_honoured
exec.shell capability, v1, stable
An open shell session with ITF's original `Ssh` command API.
suggested role: shell
Members
execute_command_output(cmd: str, timeout: float = 30, max_exec_time: float = 180, logger_in=None, verbose: bool = True, separate_stderr: bool = True) -> tuple[int, list[str], list[str]](required): Returns the exit code, the stdout lines and the stderr lines, each line keeping its newline; stderr is merged into stdout unless separate_stderr. The exit code is -1 when the command exceeds max_exec_time.execute_command(cmd: str, timeout: float = 30, max_exec_time: float = 180, logger_in=None, verbose: bool = True) -> int(required): Returns the exit code; never raises on a nonzero exit.
Guarantees
- Line splitting preserves each newline.
- A command exceeding max_exec_time reports exit code -1.
Offered by
sim.shellclose, connect, endpoint, execute_command, execute_command_output, is_connected, platformssh.shell__enter__, __exit__, close, connect, endpoint, execute_command, execute_command_output, get_paramiko_client, is_connected
Needed by
ssh.execslotshellexpects execute_command, execute_command_output, get_paramiko_clientssh.processslotshellexpects execute_command, execute_command_output, get_paramiko_clientssh.filesslotshellexpects endpoint, execute_command, get_paramiko_clientsim.openslotshellexpects connect, is_connected, platformssh.openslotshellexpects connect, endpoint, is_connected
Conformance checks
execute_command_returns_the_exit_codestdout_and_stderr_can_be_kept_apart_or_mergedline_splitting_is_preserveda_command_running_too_long_reports_minus_one
files.transfer capability, v1, stable
Copy files between the test host and the target.
suggested role: files
Members
__enter__() -> object(required): Returns this provider, acquiring transfer-scoped resources if needed.__exit__(exc_type, exc_val, exc_tb) -> bool | None(required): Releases transfer-scoped resources without suppressing exceptions or closing the owning platform or shared shell. The provider remains usable after exit.upload(local_path: str, remote_path: str) -> None(required): Copies a host file to the target, creating the destination directory. Raises FileNotFoundError when the local file does not exist.download(remote_path: str, local_path: str) -> None(required): Copies a target file to the host, creating the destination directory.
Guarantees
- A file uploaded and downloaded again has the same content.
- Missing destination directories are created.
- The target sees the uploaded file at the remote path (a command can read it).
- Entering a context returns the provider itself; successful and exceptional exits leave it reusable.
- Context exit never suppresses exceptions or takes ownership of the platform or shared shell.
Offered by
docker.files__enter__, __exit__, download, uploadlocalhost.files__enter__, __exit__, download, uploadssh.files__enter__, __exit__, download, download_dir, exists, file_exists, get_directory_size, get_directory_size_excluding_files, get_file_size, list_dirs_and_files, list_dirs_and_files_name, listdir, make_directory, remove, rmdir, stat, upload, upload_dir, walk
Needed by
core_dump.collectorslotfilesexpects downloaddlt.on_targetslotfilesexpects upload
Conformance checks
upload_then_download_round_tripsdownloading_creates_the_local_directoryuploading_a_missing_source_raises_file_not_foundcontexts_preserve_identity_errors_and_reusabilityremote_file_management
image.present state, v1, stable
The software image under test is installed on the platform.
Offered by
nobody
Needed by
none
logs.active state, v1, stable
The session is subscribed to the target's log stream.
Offered by
dlt.start_receive-sim.subscribe-
Needed by
none
logs.on_target capability, v1, stable
dlt-receive run on the target itself, started and stopped by the test.
suggested role: dlt_on_target
Members
start(transport, host_ip='127.0.0.1', target_ip='127.0.0.1', multicast_ips=None, print_to_stdout=True, output_file=None) -> ContextManager[DltReceiver](required): Runs one receiver over transport ("tcp", "udp" or Protocol) and stops it when the block ends; the receiver has the process API plus dlt_file, the target path it records to.close() -> None(required): Stops every receiver still running; called when the role is torn down.
Guarantees
- Constructing the role touches nothing on the target.
- No receiver started through the role outlives it.
Offered by
dlt.on_targetclose, start
Needed by
none
net.ping capability, v1, stable
Ask whether a target answers ICMP echo, and wait for it to come up or go down.
suggested role: ping
Members
host: str(required): The address being pinged.ping() -> bool(required): One echo request; True when a reply arrives in time.wait_up(timeout: float | None = None) -> bool(required): Polls until the target answers; False on timeout.wait_down(timeout: float | None = None) -> bool(required): Polls until the target stops answering; False on timeout.
Guarantees
- ping returns a boolean and never raises for an unreachable target.
Offered by
ping.pinghost, ping, ping_lost, wait_down, wait_upping.pingerhost, ping, ping_lost, wait_down, wait_up
Needed by
ping.await_bootslotpingexpects host, ping, wait_up
Conformance checks
host_is_a_nonempty_stringping_returns_a_boolean
network.reachable state, v1, stable
The target's endpoint accepts connections from the test host.
Offered by
sim.open-ssh.open-
Needed by
none
observe.capture capability, v1, stable
A packet capture the test can start, stop and read.
suggested role: capture
Members
start() -> None(required): Starts capturing; normally done by the state, not by tests.stop() -> None(required): Stops capturing and finalises the file; idempotent.running() -> bool(required): True while the capture process is alive.pathPath (a property)(optional): The capture file.window(name: str, ready_timeout: float = 5.0) -> ContextManager[Path](optional): Captures one block of a test into its own file, named after `name`, and yields its path.
Guarantees
- running() is true while a capture is on.
Offered by
pcap.capturepath, running, start, stop, windowsim.captureinterface, packets, record, running, start, stop
Needed by
pcap.start_on_hostslotcaptureexpects running, startpcap.startslotcaptureexpects running, startsim.capture_startslotcaptureexpects running, start
observe.logs capability, v1, stable
Log messages the session receives from the target (DLT), searchable by the test.
suggested role: logs
Members
is_active() -> bool(required): True while the stream delivers messages; the probe of the state `logs.active`.lines() -> list[DltMessage](required): Every buffered message in arrival order; raises RuntimeError when the stream is dead.filter(apid: str | None = None, ctid: str | None = None) -> list[DltMessage](optional): The buffered messages of one application id and context id, in arrival order.
Guarantees
- A message sent on the target arrives in lines() within seconds.
- Where filter is offered, ids that no message has give an empty list.
Offered by
dlt.receive__enter__, __exit__, activate, close, deactivate, exit_code, file_name, filter, is_active, is_running, kill_process, lines, monitor_process, output, owned_by, path, record, restart_process, start_process, subscribe, terminate, wait_to_finish, windowdlt.receive_tcp__enter__, __exit__, activate, close, deactivate, exit_code, file_name, filter, is_active, is_running, kill_process, lines, monitor_process, output, owned_by, path, record, restart_process, start_process, subscribe, terminate, wait_to_finish, windowsim.logsclose, endpoint, is_active, lines, platform, subscribe
Needed by
dlt.start_receiveslotlogsexpects is_active, subscribesim.subscribeslotlogsexpects is_active, subscribe
platform.instance capability, v1, stable
The platform a target runs on, with a lifecycle the planner can bring up and observe.
suggested role: platform
Members
start() -> None(required): Brings the platform up; called by the action for platform.up, not by tests.running() -> bool(required): True while the platform is up; the probe of platform.up.restart() -> None(required): Restarts the platform. Anything connected to it (SSH sessions) is dropped.stop() -> None(required): Takes the platform down and releases what it created; idempotent.
Guarantees
- running() is true once the platform is up.
- After restart() the platform is running again within a bounded time.
- stop() can be called more than once.
Offered by
docker.platformclient, container, exec, gateway, host_port, ip, restart, running, start, stoplocalhost.platformis_local, restart, root, running, start, stopqemu.platformclose, console, disk, kernel, qemu_config, restart, rootfs, running, start, stop, terminatesim.platformexec, fs, gen, ip, log, name, restart, running, start, stop
Needed by
docker.execslotplatformexpects client, containerdocker.processslotplatformexpects client, containerdocker.filesslotplatformexpects client, containerdocker.endpointslotplatformexpects host_port, iplocalhost.execslotplatformexpects rootlocalhost.processslotplatformexpects rootlocalhost.filesslotplatformexpects is_localqemu.endpointslotplatformexpects qemu_configqemu.credentialsslotplatformexpects qemu_configqemu.consoleslotplatformexpects consolesim.logsslotplatformexpects gen, logsim.execslotplatformexpects exec, runningsim.shellslotplatformexpects exec, gendocker.startslotplatformexpects running, startlocalhost.startslotplatformexpects running, startqemu.startslotplatformexpects running, startsim.startslotplatformexpects running, start
Conformance checks
the_platform_is_running_once_upa_restart_leaves_a_running_platform
platform.up state, v1, stable
The platform exists and is running.
Offered by
docker.start-localhost.start-ping.await_boot-qemu.start-sim.start-
Needed by
none
shell.open state, v1, stable
A shell session is connected and can run commands.
Offered by
sim.open-ssh.open-
Needed by
none
Capability factories
core_dump.collector offers diagnostics.core_dump
shape: collect
Needs
- slot
command: exec.command expects exec - slot
files: files.transfer expects download
Settings
none
observed by a later process: no
dlt.on_target offers logs.on_target
shape: close, start
Needs
- slot
files: files.transfer expects upload - slot
process: exec.process expects spawn
Settings
binary_pathstr | null default Noneremote_pathstr default /tmp/dlt-receive
observed by a later process: no
dlt.receive offers observe.logs
shape: __enter__, __exit__, activate, close, deactivate, exit_code, file_name, filter, is_active, is_running, kill_process, lines, monitor_process, output, owned_by, path, record, restart_process, start_process, subscribe, terminate, wait_to_finish, window
Needs
none
Settings
host_ipstr default 127.0.0.1multicast_ipsstr defaultfile_namestr | null default Noneprint_to_stdoutbool default Falsebinary_pathstr | null default None
observed by a later process: no
dlt.receive_tcp offers observe.logs
shape: __enter__, __exit__, activate, close, deactivate, exit_code, file_name, filter, is_active, is_running, kill_process, lines, monitor_process, output, owned_by, path, record, restart_process, start_process, subscribe, terminate, wait_to_finish, window
Needs
- slot
endpoint: descriptor.endpoint expects host, port
Settings
host_ipstr default 127.0.0.1multicast_ipsstr defaultfile_namestr | null default Noneprint_to_stdoutbool default Falsebinary_pathstr | null default None
observed by a later process: no
docker.endpoint offers descriptor.endpoint
shape: host, port
Needs
- slot
platform: platform.instance expects host_port, ip
Settings
portint default 22protocolstr default tcpviastr default auto
observed by a later process: no
docker.exec offers exec.command
shape: exec
Needs
- slot
platform: platform.instance expects client, container
Settings
none
observed by a later process: no
docker.files offers files.transfer
shape: __enter__, __exit__, download, upload
Needs
- slot
platform: platform.instance expects client, container
Settings
none
observed by a later process: no
docker.platform offers platform.instance
shape: client, container, exec, gateway, host_port, ip, restart, running, start, stop
Needs
none
Settings
imagestr requirednamestr | null default Nonecommandstr | null default sleep infinityinitbool default Trueshm_sizestr | null default 2Gprivilegedbool default Falseenvironmentstr | null default Noneportsstr | null default Nonevolumesstr | null default Nonenetworkstr | null default Nonenetwork_modestr | null default Nonecap_addstr | null default Nonedevicesstr | null default Noneisolated_networkbool default Truebootstrapstr | null default Noneextract_coveragebool default Falsecoverage_dirstr | null default Noneclient_timeoutint default 180docker_sdk_kwargsstr | null default None
observed by a later process: when its settings allow
docker.process offers exec.process
shape: spawn, wrap_exec
Needs
- slot
platform: platform.instance expects client, container
Settings
none
observed by a later process: no
localhost.exec offers exec.command
shape: exec
Needs
- slot
platform: platform.instance expects root
Settings
none
observed by a later process: no
localhost.files offers files.transfer
shape: __enter__, __exit__, download, upload
Needs
- slot
platform: platform.instance expects is_local
Settings
none
observed by a later process: no
localhost.platform offers platform.instance
shape: is_local, restart, root, running, start, stop
Needs
none
Settings
rootstr | null default None
observed by a later process: when its settings allow
localhost.process offers exec.process
shape: spawn
Needs
- slot
platform: platform.instance expects root
Settings
none
observed by a later process: no
net.endpoint offers descriptor.endpoint
shape: host, port
Needs
none
Settings
hoststr requiredportint required
observed by a later process: no
net.key offers descriptor.credentials
shape: key_path, password, user
Needs
none
Settings
userstr requiredkey_pathstr required secret
observed by a later process: no
net.password offers descriptor.credentials
shape: key_path, password, user
Needs
none
Settings
userstr requiredpasswordstr secret
observed by a later process: no
pcap.capture offers observe.capture
shape: path, running, start, stop, window
Needs
none
Settings
interfacestr requiredout_dirstr | null default Nonefilterstr | null default Nonebinary_pathstr | null default Nonenamestr | null default None
observed by a later process: no
ping.ping offers net.ping
shape: host, ping, ping_lost, wait_down, wait_up
Needs
- slot
endpoint: descriptor.endpoint expects host
Settings
none
observed by a later process: no
ping.pinger offers net.ping
shape: host, ping, ping_lost, wait_down, wait_up
Needs
- slot
endpoint: descriptor.endpoint expects host
Settings
boot_timeoutfloat default 180.0intervalfloat default 1.0reply_timeoutfloat default 1.0binary_pathstr default ping
observed by a later process: no
qemu.console offers exec.console
shape: close, is_open, lines, mark, open, run, wait_for, write
Needs
- slot
platform: platform.instance expects console
Settings
none
observed by a later process: no
qemu.credentials offers descriptor.credentials
shape: key_path, password, user
Needs
- slot
platform: platform.instance expects qemu_config
Settings
none
observed by a later process: no
qemu.endpoint offers descriptor.endpoint
shape: host, port
Needs
- slot
platform: platform.instance expects qemu_config
Settings
none
observed by a later process: no
qemu.platform offers platform.instance
shape: close, console, disk, kernel, qemu_config, restart, rootfs, running, start, stop, terminate
Needs
none
Settings
config_filestr requiredkernelstr | null default Nonerootfsstr | null default Nonediskstr | null default Nonebinary_dirstr default /usr/binserial_backendstr default mon:stdiopanic_markerstr default Shutdown[
observed by a later process: no
serial.console offers exec.console
shape: close, is_open, lines, mark, open, run, wait_for, write
Needs
none
Settings
devicestr requiredbaudrateint default 115200logfilestr | null default Nonebufferint default 20000read_timeoutfloat default 0.2stop_timeoutfloat default 5.0
observed by a later process: no
serial.exec offers exec.command
shape: exec
Needs
- slot
console: exec.console expects run
Settings
none
observed by a later process: no
serial.pty_console offers exec.console
shape: close, is_open, lines, mark, open, run, wait_for, write
Needs
none
Settings
shellstr default /bin/shbannerstr default ITF PTY CONSOLE READYlogfilestr | null default Nonebufferint default 20000read_timeoutfloat default 0.2stop_timeoutfloat default 5.0
observed by a later process: no
sim.capture offers observe.capture
shape: interface, packets, record, running, start, stop
Needs
none
Settings
interfacestr default eth0
observed by a later process: no
sim.exec offers exec.command
shape: exec
Needs
- slot
platform: platform.instance expects exec, running
Settings
none
observed by a later process: no
sim.logs offers observe.logs
shape: close, endpoint, is_active, lines, platform, subscribe
Needs
- slot
endpoint: descriptor.endpoint expects host, port - slot
platform: platform.instance expects gen, log
Settings
none
observed by a later process: no
sim.platform offers platform.instance
shape: exec, fs, gen, ip, log, name, restart, running, start, stop
Needs
none
Settings
namestr requiredipstr default 127.0.0.1state_dirstr | null default None
observed by a later process: when its settings allow
sim.shell offers exec.shell
shape: close, connect, endpoint, execute_command, execute_command_output, is_connected, platform
Needs
- slot
credentials: descriptor.credentials expects user - slot
endpoint: descriptor.endpoint expects host, port - slot
platform: platform.instance expects exec, gen
Settings
none
observed by a later process: no
ssh.exec offers exec.command
shape: exec
Needs
- slot
shell: exec.shell expects execute_command, execute_command_output, get_paramiko_client
Settings
none
observed by a later process: no
ssh.files offers files.transfer
shape: __enter__, __exit__, download, download_dir, exists, file_exists, get_directory_size, get_directory_size_excluding_files, get_file_size, list_dirs_and_files, list_dirs_and_files_name, listdir, make_directory, remove, rmdir, stat, upload, upload_dir, walk
Needs
- slot
shell: exec.shell expects endpoint, execute_command, get_paramiko_client
Settings
none
observed by a later process: no
ssh.process offers exec.process
shape: spawn, wrap_exec
Needs
- slot
shell: exec.shell expects execute_command, execute_command_output, get_paramiko_client
Settings
none
observed by a later process: no
ssh.shell offers exec.shell
shape: __enter__, __exit__, close, connect, endpoint, execute_command, execute_command_output, get_paramiko_client, is_connected
Needs
- slot
credentials: descriptor.credentials expects key_path, password, user - slot
endpoint: descriptor.endpoint expects host, port
Settings
timeoutint default 15keep_alive_intervalint | null default Nonen_retriesint default 5retry_intervalfloat default 1.0reuse_sessionbool default True
observed by a later process: no
Actions
dlt.start_receive makes logs.active true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
logs: observe.logs
docker.start makes platform.up true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
platform: platform.instance
localhost.start makes platform.up true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
platform: platform.instance
pcap.start makes capture.running true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
capture: observe.capture
pcap.start_on_host makes capture.running true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
capture: observe.capture
ping.await_boot makes platform.up true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
ping: net.ping
qemu.open_console makes console.open true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
console: exec.console
qemu.start makes platform.up true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
platform: platform.instance
serial.open makes console.open true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
console: exec.console
sim.capture_start makes capture.running true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
capture: observe.capture
sim.open makes shell.open true
after: -; breaks: -; also: network.reachable; probe: yes (skippable when it holds)
Uses
- slot
shell: exec.shell
sim.start makes platform.up true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
platform: platform.instance
sim.subscribe makes logs.active true
after: -; breaks: -; also: -; probe: yes (skippable when it holds)
Uses
- slot
logs: observe.logs
ssh.open makes shell.open true
after: -; breaks: -; also: network.reachable; probe: yes (skippable when it holds)
Uses
- slot
shell: exec.shell
Packs
core_dump 0.1.0
Explicit collection through composed command and file-transfer slots. The collector has no pytest dependency, startup action or automatic teardown hook. Its consumer decides when to collect and where to put the files.
Factories: core_dump.collector
Actions: -
Prerequisites
- target command access to Linux or QNX core-file locations
- target file-transfer access to download discovered core files
dlt 0.1.0
DLT logs use the bundled `dlt-receive` tool. Host UDP and target TCP receive use the same receive API; target-side receive remains available through the on-target capability.
Factories: dlt.on_target, dlt.receive, dlt.receive_tcp
Actions: dlt.start_receive
Prerequisites
- none beyond the build (dlt-receive and libdlt are built from source)
- the patched DLT build listens on TCP 13490
docker 0.1.0
A container as the platform, reached through the Docker API (works with any image) and, with the ssh pack, over SSH.
Factories: docker.endpoint, docker.exec, docker.files, docker.platform, docker.process
Actions: docker.start
Prerequisites
- a Docker-compatible daemon (DOCKER_HOST for Podman)
- under rootless Podman, publish ports and use docker.endpoint with via=published
localhost 0.1.0
The test host as the platform: commands, processes and files through subprocess.
Factories: localhost.exec, localhost.files, localhost.platform, localhost.process
Actions: localhost.start
Prerequisites
- none
net 0.1.0
Static descriptors: where a service listens and how to log in.
Factories: net.endpoint, net.key, net.password
Actions: -
Prerequisites
- none
pcap 0.1.0
A tcpdump capture of an interface.
Factories: pcap.capture
Actions: pcap.start, pcap.start_on_host
Prerequisites
- CAP_NET_RAW (or root) and the interface on the host
ping 0.1.0
ICMP echo to an address; also how a machine nobody here starts counts as up.
Factories: ping.ping, ping.pinger
Actions: ping.await_boot
Prerequisites
- net.ipv4.ping_group_range covering the user, or CAP_NET_RAW, or a ping binary
qemu 0.1.0
A QEMU machine as the platform, with its console, endpoint and login.
Factories: qemu.console, qemu.credentials, qemu.endpoint, qemu.platform
Actions: qemu.open_console, qemu.start
Prerequisites
- qemu-system-* and qemu-img
- /dev/kvm for acceleration
- tap networking runs under //scripts:run_under_qemu
serial 0.1.0
A serial console, commands over it, and a pseudo-terminal console for setups without hardware.
Factories: serial.console, serial.exec, serial.pty_console
Actions: serial.open
Prerequisites
- the serial device
sim 0.1.0
In-memory stand-ins for the platform, shell, log stream and capture, for offline runs.
Factories: sim.capture, sim.exec, sim.logs, sim.platform, sim.shell
Actions: sim.capture_start, sim.open, sim.start, sim.subscribe
Prerequisites
- none
ssh 0.1.0
An SSH session to a machine, commands, processes and SFTP over it.
Factories: ssh.exec, ssh.files, ssh.process, ssh.shell
Actions: ssh.open
Prerequisites
- paramiko (pip, locked)