Documentation ¶
Index ¶
- Constants
- func CheckDbusInterface(iFace string, timeout time.Duration) error
- func CheckHttpStatus(url string, timeout time.Duration) error
- func CheckPort(network, address string, timeout time.Duration) error
- func ClusterTests(c cluster.TestCluster)
- func InternetTests(c cluster.TestCluster)
- func IsLink(f os.FileInfo) bool
- func LocalTests(c cluster.TestCluster)
- func MachineID() string
- func Run(command string, args ...string) (string, string, error)
- func Sha256File(fileName string) (hash string, err error)
- func TestCloudinitCloudConfig() error
- func TestCloudinitScript() error
- func TestDbusPerms() error
- func TestDockerEcho() error
- func TestDockerPing() error
- func TestEtcdUpdateValue() error
- func TestFleetctlRunService() error
- func TestFsRandomUUID() error
- func TestInstalledUpdateEngineRsaKeys() error
- func TestNTPDate() error
- func TestPortSsh() error
- func TestReadOnlyFs() error
- func TestServicesActive() error
- func TestSymlinkResolvConf() error
- func TestUpdateEngine() error
- func TestUseradd() error
- type MountTable
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 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 Sha256File ¶
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 ¶
func GetMountTable ¶
func GetMountTable() (mounts []MountTable, err error)
Click to show internal directories.
Click to hide internal directories.