pre

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WilcoDtcSupportdAPI = NewPrecondition("supportd_api", SystemState{
	WilcoDTCDaemonRunning: true,
	WilcoDTCVMRunning:     true,
	VMConfig: wilco.VMConfig{
		StartProcesses: false,
		TestDBusConfig: false,
	},
})

WilcoDtcSupportdAPI Precondition sets up the system to test the API provided in wilco_dtc_supportd.proto.

Functions

func NewPrecondition

func NewPrecondition(suffix string, state SystemState) *preImpl

NewPrecondition creates a new precondition that can be shared by tests that reqire a combination of the Wilco DTC Daemon and VM to be running.

Types

type SystemState

type SystemState struct {
	// WilcoDTCDaemonRunning ensures the Wilco DTC Support Daemon is running.
	WilcoDTCDaemonRunning bool
	// WilcoDTCVMRunning ensures the Wilco DTC VM is running.
	WilcoDTCVMRunning bool
	// VMConfig is the configuration for the DTC VM.
	VMConfig wilco.VMConfig
}

SystemState describes the desired system state.

Jump to

Keyboard shortcuts

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