Documentation
¶
Overview ¶
Package conformance runs reusable Runtime Protocol v1 behavior tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgumentValues ¶
func ArgumentValues() []string
ArgumentValues returns exact argv test values, including shell metacharacters.
func RequireRuntimeError ¶
func RequireRuntimeError( t *testing.T, err error, category runtimev1.RuntimeErrorCode, ) *runtimev1.RuntimeError
RequireRuntimeError checks canonical status and typed runtime category, and returns the detail for additional retryability and diagnostic assertions. Use this for runtime-specific fault injection in addition to Run.
Types ¶
type Options ¶
type Options struct {
// Connect returns a fresh client per subtest. Register process/connection cleanup
// with t.Cleanup; it must run after the suite's workspace cleanup.
Connect func(t *testing.T) runtimev1.RuntimeDriverClient
// Workspace returns creation intent for a unique, initially absent workspace.
Workspace func(t *testing.T) *runtimev1.RunImageRequest
// Command supplies exact argv and execution options for the requested scenario.
Command func(scenario Scenario, workspaceID string) *runtimev1.ExecStart
// LogData is the expected finite, merged binary log stream when Logs is advertised.
LogData []byte
// Timeout bounds each subtest's RPCs. Zero selects 30 seconds.
Timeout time.Duration
}
Options adapts the suite to a runtime's launcher, image, and test commands.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.