Documentation
¶
Index ¶
- func Exec(t *testing.T, command string) (stdout, stderr string, err error)
- func ExecContext(t *testing.T, ctx context.Context, command string) (stdout, stderr string, err error)
- func ExecContextVerbose(t *testing.T, ctx context.Context, command string) (stdout, stderr string, err error)
- func ExecVerbose(t *testing.T, command string) (stdout, stderr string, err error)
- func RequirePortAvailable(t *testing.T, port string)
- func ServicePort(serviceName string) string
- func SnapBuild(t *testing.T, workDir string) error
- func SnapConnect(t *testing.T, plug, slot string) error
- func SnapConnectSecretstoreToken(t *testing.T, snap string) error
- func SnapDisconnect(t *testing.T, plug, slot string)
- func SnapDumpLogs(t *testing.T, start time.Time, snapName string)
- func SnapInstallFromFile(t *testing.T, path string) error
- func SnapInstallFromStore(t *testing.T, name, channel string) error
- func SnapInstalled(t *testing.T, name string) bool
- func SnapLogs(t *testing.T, start time.Time, name string) string
- func SnapRefresh(t *testing.T, name, channel string)
- func SnapRemove(t *testing.T, names ...string)
- func SnapRestart(t *testing.T, names ...string)
- func SnapRevision(t *testing.T, name string) string
- func SnapServicesActive(t *testing.T, name string) bool
- func SnapServicesEnabled(t *testing.T, name string) bool
- func SnapSet(t *testing.T, name, key, value string)
- func SnapStart(t *testing.T, names ...string)
- func SnapStop(t *testing.T, names ...string)
- func SnapUnset(t *testing.T, name string, keys ...string)
- func SnapVersion(t *testing.T, name string) string
- func TestAutoStart(t *testing.T, snapName string, testAutoStart bool)
- func TestAutostartGlobal(t *testing.T, snapName string)
- func TestConfig(t *testing.T, snapName string, conf Config)
- func TestNet(t *testing.T, snapName string, conf Net)
- func TestPackaging(t *testing.T, snapName string, conf Packaging)
- func TestRefresh(t *testing.T, snapName string)
- func WaitForLogMessage(t *testing.T, snap, expectedLog string, since time.Time)
- func WaitServiceOnline(t *testing.T, maxRetry int, ports ...string) error
- func WriteLogFile(t *testing.T, label string, content string) error
- type Config
- type Net
- type Packaging
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecContext ¶
func ExecContextVerbose ¶
func ExecVerbose ¶
func RequirePortAvailable ¶
RequirePortAvailable checks if a port is available (not open) locally
func ServicePort ¶
servicePort looks up the service port by app name
func SnapDisconnect ¶
func SnapRefresh ¶
func SnapRemove ¶
func SnapRestart ¶
func TestAutostartGlobal ¶
func TestRefresh ¶
TestRefresh tests an EdgeX upgrade using snap refresh
func WaitForLogMessage ¶
func WaitServiceOnline ¶
WaitServiceOnline waits for a service to come online by dialing its port(s) up to a maximum number
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.