vm

package
v3.0.0-alpha.20251212 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Passive     = "passive"
	Active      = "active"
	Recovery    = "recovery"
	LiveCD      = "liveCD"
	UnknownBoot = "unknown"

	TimeoutRawDiskTest = 600 // Timeout to connect for recovery_raw_disk_test
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SUT

type SUT struct {
	Host     string
	Username string
	Password string
	SSHKey   []byte
	Timeout  int

	TestVersion string
	CDLocation  string
	MachineID   string
	VMPid       int
	// contains filtered or unexported fields
}

func NewSUT

func NewSUT() *SUT

func (SUT) AssertBootedFrom

func (s SUT) AssertBootedFrom(b string)

AssertBootedFrom asserts that we booted from the proper type and adds a helpful message

func (*SUT) BootFrom

func (s *SUT) BootFrom() string

BootFrom returns the booting partition of the SUT NOTE: passive/recovery are not handled yet!

func (*SUT) Command

func (s *SUT) Command(cmd string) (string, error)

Command sends a command to the SUIT and waits for reply

func (*SUT) EventuallyBootedFrom

func (s *SUT) EventuallyBootedFrom(image string)

func (*SUT) EventuallyConnects

func (s *SUT) EventuallyConnects(t ...int)

func (*SUT) EventuallyDisconnects

func (s *SUT) EventuallyDisconnects(t ...int)

func (*SUT) GetArch

func (s *SUT) GetArch() string

func (*SUT) GetOSRelease

func (s *SUT) GetOSRelease(ss string) string

func (*SUT) IsVMRunning

func (s *SUT) IsVMRunning() bool

func (*SUT) Reboot

func (s *SUT) Reboot(t ...int)

Reboot reboots the system under test

Jump to

Keyboard shortcuts

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