coretest

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdTimeout           = time.Second * 20
	DbusTimeout          = time.Second * 20
	DockerTimeout        = time.Second * 60
	PortTimeout          = time.Second * 3
	UpdateEnginePubKey   = "/usr/share/update_engine/update-payload-key.pub.pem"
	UpdateEnginePubKeyV1 = "d410d94dc56a1cba8df71c94ea6925811e44b09416f66958ab7a453f0731d80e"
	UpdateEnginePubKeyV2 = "a76a22e6afcdfbc55dd2953aa950c7ec93b254774fca02d13ec52c59672e5982"
)

Variables

This section is empty.

Functions

func CheckDbusInterface

func CheckDbusInterface(iFace string, timeout time.Duration) error

func CheckHttpStatus

func CheckHttpStatus(url string, timeout time.Duration) error

func CheckPort

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

func ClusterTests

func ClusterTests(c cluster.TestCluster) error

run clustering based tests

func InternetTests

func InternetTests(c cluster.TestCluster) error

run internet based tests

func IsLink(f os.FileInfo) bool

func LocalTests

func LocalTests(c cluster.TestCluster) error

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 Run

func Run(command string, args ...string) (string, string, error)

func Sha256File

func Sha256File(fileName string) (hash string, err error)

func TestCloudinitCloudConfig

func TestCloudinitCloudConfig() error

func TestCloudinitScript

func TestCloudinitScript() 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 TestEtcdUpdateValue

func TestEtcdUpdateValue() error

TestEtcdUpdateValue tests to update value of a key. The test coverage includes setting, getting, updating, deleting.

func TestFleetctlRunService

func TestFleetctlRunService() error

TestFleetctlRunService tests that fleetctl could start, unload and destroy unit file.

func TestFsRandomUUID

func TestFsRandomUUID() error

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

func TestInstalledUpdateEngineRsaKeys

func TestInstalledUpdateEngineRsaKeys() error

func TestNTPDate

func TestNTPDate() error

func TestPortSsh

func TestPortSsh() error

func TestReadOnlyFs

func TestReadOnlyFs() error

func TestServicesActive

func TestServicesActive() error

func TestSymlinkResolvConf

func TestSymlinkResolvConf() error

func TestUpdateEngine

func TestUpdateEngine() 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