Documentation ¶
Index ¶
- func CleanupTempDir(initialDir, tempDir string)
- func CopyToTempDir(relativePath string) (string, error)
- func CopyToTempDirWithoutChdir(relativePath string) (string, error)
- func CreateTempDir() (string, error)
- func ExpectEqual(actual interface{}, extra interface{}, explain ...interface{})
- func ExpectError(err error, explain ...interface{})
- func ExpectNoError(err error, explain ...interface{})
- func ExpectNoErrorWithOffset(offset int, err error, explain ...interface{})
- func ExpectNotEqual(actual interface{}, extra interface{}, explain ...interface{})
- func StartAgentServer() error
- type Framework
- func (f *Framework) DevPodList(ctx context.Context) (string, error)
- func (f *Framework) DevPodListParsed(ctx context.Context) ([]*provider2.Workspace, error)
- func (f *Framework) DevPodMachineCreate(args []string) error
- func (f *Framework) DevPodMachineDelete(args []string) error
- func (f *Framework) DevPodProviderAdd(args []string) error
- func (f *Framework) DevPodProviderDelete(args []string) error
- func (f *Framework) DevPodProviderOptionsCheckNamespaceDescription(ctx context.Context, provider, searchStr string) error
- func (f *Framework) DevPodProviderUpdate(args []string) error
- func (f *Framework) DevPodProviderUse(ctx context.Context, provider string) error
- func (f *Framework) DevPodSSH(ctx context.Context, workspace string, command string) (string, error)
- func (f *Framework) DevPodSSHEchoTestString(ctx context.Context, workspace string) error
- func (f *Framework) DevPodStatus(ctx context.Context, workspace string) (client.WorkspaceStatus, error)
- func (f *Framework) DevPodStop(ctx context.Context, workspace string) error
- func (f *Framework) DevPodUp(ctx context.Context, workspace string, additionalArgs ...string) error
- func (f *Framework) DevPodWorkspaceDelete(ctx context.Context, workspace string) error
- func (f *Framework) ExecCommand(ctx context.Context, captureStdOut, searchForString bool, searchString string, ...) error
- func (f *Framework) ExecCommandCapture(ctx context.Context, args []string) (string, string, error)
- func (f *Framework) ExecCommandOutput(ctx context.Context, args []string) (string, error)
- func (f *Framework) FindWorkspace(ctx context.Context, id string) (*provider2.Workspace, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTempDir ¶
func CleanupTempDir(initialDir, tempDir string)
func CopyToTempDir ¶
func CopyToTempDirWithoutChdir ¶ added in v0.2.0
func CreateTempDir ¶ added in v0.2.0
func ExpectEqual ¶
func ExpectEqual(actual interface{}, extra interface{}, explain ...interface{})
ExpectEqual expects the specified two are the same, otherwise an exception raises
func ExpectError ¶
func ExpectError(err error, explain ...interface{})
ExpectError expects an error happens, otherwise an exception raises
func ExpectNoError ¶
func ExpectNoError(err error, explain ...interface{})
ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
func ExpectNoErrorWithOffset ¶
ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").
func ExpectNotEqual ¶
func ExpectNotEqual(actual interface{}, extra interface{}, explain ...interface{})
ExpectNotEqual expects the specified two are not the same, otherwise an exception raises
func StartAgentServer ¶ added in v0.1.6
func StartAgentServer() error
Types ¶
type Framework ¶
func NewDefaultFramework ¶
func (*Framework) DevPodList ¶ added in v0.1.6
DevPodList executes the `devpod list` command in the test framework
func (*Framework) DevPodListParsed ¶ added in v0.2.0
func (*Framework) DevPodMachineCreate ¶
func (*Framework) DevPodMachineDelete ¶
func (*Framework) DevPodProviderAdd ¶
func (*Framework) DevPodProviderDelete ¶
func (*Framework) DevPodProviderOptionsCheckNamespaceDescription ¶
func (*Framework) DevPodProviderUpdate ¶
func (*Framework) DevPodProviderUse ¶
func (*Framework) DevPodSSHEchoTestString ¶
func (*Framework) DevPodStatus ¶ added in v0.2.0
func (*Framework) DevPodStop ¶ added in v0.2.0
func (*Framework) DevPodWorkspaceDelete ¶
func (*Framework) ExecCommand ¶
func (f *Framework) ExecCommand(ctx context.Context, captureStdOut, searchForString bool, searchString string, args []string) error
ExecCommand executes the command string with the devpod test binary
func (*Framework) ExecCommandCapture ¶
ExecCommandCapture executes the command string with the devpod test binary, and returns stdout, stderr, and any error that occurred.
func (*Framework) ExecCommandOutput ¶ added in v0.2.0
ExecCommand executes the command string with the devpod test binary