testutil

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package testutil provides reusable test infrastructure for integration tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHContainer

type SSHContainer struct {
	ContainerID string
	Endpoint    string
	// contains filtered or unexported fields
}

SSHContainer represents a test container with SSH access.

func StartDebianSSHContainer

func StartDebianSSHContainer(t *testing.T) *SSHContainer

StartDebianSSHContainer starts an ephemeral Debian container with SSH enabled. Returns a configured SSHContainer ready for testing.

func (*SSHContainer) Client

func (c *SSHContainer) Client() ssh.Connection

Client returns the SSH connection to the container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL