coretest

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerTimeout = time.Second * 60
	PortTimeout   = time.Second * 3
)

Variables

This section is empty.

Functions

func CheckPort

func CheckPort(network, address string, timeout time.Duration) error

func InternetTests

func InternetTests(c cluster.TestCluster)

run internet based tests

func LocalTests

func LocalTests(c cluster.TestCluster)

run various native functions that only require a single machine

func MachineID

func MachineID() string

MachineID returns the content of /etc/machine-id. It panics on any error.

func TestDbusPerms

func TestDbusPerms() error

This execs gdbus, because we need to change uses to test perms.

func TestDockerEcho

func TestDockerEcho() error

func TestDockerPing

func TestDockerPing() error

func TestFCOSGrowfs

func TestFCOSGrowfs() error

TestFCOSGrowfs tests whether ignition-ostree-growfs.service was run successfully and check that filesystem size has been grown to at least 7 GB.

func TestFsRandomUUID

func TestFsRandomUUID() error

Test that the root disk's GUID was set to a random one on first boot.

func TestMachineID

func TestMachineID() error

Test that /etc/machine-id isn't empty or COREOS_BLANK_MACHINE_ID

func TestPodmanEcho

func TestPodmanEcho() error

func TestPodmanPing

func TestPodmanPing() error

func TestPodmanWgetHead

func TestPodmanWgetHead() error

func TestPortSsh

func TestPortSsh() error

func TestRHCOSGrowfs

func TestRHCOSGrowfs() error

TestRHCOSGrowfs tests whether ignition-ostree-growfs.service was run successfully and check that filesystem size has been grown to at least 15 GB.

func TestReadOnlyFs

func TestReadOnlyFs() error

func TestServicesActive

func TestServicesActive() error

func TestServicesDisabledRHCOS

func TestServicesDisabledRHCOS() error

func TestUseradd

func TestUseradd() error

Test "Add User Manually", from https://coreos.com/os/docs/latest/adding-users.html

Types

type MountTable

type MountTable struct {
	Device     string
	MountPoint string
	FsType     string
	Options    []string
}

func GetMountTable

func GetMountTable() (mounts []MountTable, err error)

Jump to

Keyboard shortcuts

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