Documentation
¶
Overview ¶
Package testenv starts in-process protocol servers for tests: an S3 fake over HTTP and an SSH server with a read-only SFTP subsystem. Synthetic data only; nothing here is used outside tests.
Index ¶
- func BuildPlugin(t testing.TB, name string) []byte
- func ClientKey(t testing.TB, passphrase []byte) ([]byte, ssh.PublicKey)
- func Install(t testing.TB, s plugin.Store, qualified string, bin []byte, question string, ...) plugin.LockEntry
- func Manifest(name, question string, timeoutS int) []byte
- func RepoRoot() string
- func TempStore(t testing.TB) plugin.Store
- type S3
- type SFTP
- type SFTPOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPlugin ¶
BuildPlugin builds sandbox/testdata/plugins/<name> once per test binary.
func ClientKey ¶
ClientKey generates an ed25519 client key: its OpenSSH PEM, encrypted with passphrase when not empty, and its public key.
func Install ¶
func Install(t testing.TB, s plugin.Store, qualified string, bin []byte, question string, timeoutS int) plugin.LockEntry
Install installs bin as the plugin qualified (marketplace/name, or a bare name for the official marketplace) at version 1.0.0.
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package consoletest runs a real lockfile console in the test process: lockkit's console.Run on lockfile's backend, a local source, plugins built from sandbox/testdata, a scripted human and a real socket in the test's private runtime directory.
|
Package consoletest runs a real lockfile console in the test process: lockkit's console.Run on lockfile's backend, a local source, plugins built from sandbox/testdata, a scripted human and a real socket in the test's private runtime directory. |
Click to show internal directories.
Click to hide internal directories.