Documentation
¶
Index ¶
- func CleanString(input string) string
- func CleanupTempDir(initialDir, tempDir string)
- func CopyToTempDir(relativePath string) (string, error)
- func CopyToTempDirInDir(baseDir, relativePath string) (string, error)
- func CopyToTempDirWithoutChdir(relativePath string) (string, error)
- func CreateTempDir() (string, error)
- func ExpectEqual(actual any, extra any, explain ...any)
- func ExpectError(err error, explain ...any)
- func ExpectNoError(err error, explain ...any)
- func ExpectNoErrorWithOffset(offset int, err error, explain ...any)
- func ExpectNotEqual(actual any, extra any, explain ...any)
- func GetTimeout() time.Duration
- func ServeAgent()
- type Framework
- func (f *Framework) DevPodBuild(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevPodContextCreate(ctx context.Context, name string, extraArgs ...string) error
- func (f *Framework) DevPodContextDelete(ctx context.Context, name string, extraArgs ...string) error
- func (f *Framework) DevPodContextUse(ctx context.Context, name string, extraArgs ...string) error
- func (f *Framework) DevPodIDEList(ctx context.Context, extraArgs ...string) (string, error)
- func (f *Framework) DevPodIDEUse(ctx context.Context, ide string, extraArgs ...string) error
- 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(ctx context.Context, args ...string) error
- func (f *Framework) DevPodProviderDelete(ctx context.Context, args ...string) error
- func (f *Framework) DevPodProviderFindOption(ctx context.Context, provider string, searchStr string, extraArgs ...string) error
- func (f *Framework) DevPodProviderList(ctx context.Context, extraArgs ...string) error
- func (f *Framework) DevPodProviderOptionsCheckNamespaceDescription(ctx context.Context, provider, searchStr string) error
- func (f *Framework) DevPodProviderUpdate(ctx context.Context, args ...string) error
- func (f *Framework) DevPodProviderUse(ctx context.Context, provider string, extraArgs ...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) DevPodSSHGpgTestKey(ctx context.Context, workspace string) error
- func (f *Framework) DevPodStatus(ctx context.Context, extraArgs ...string) (client.WorkspaceStatus, error)
- func (f *Framework) DevPodStop(ctx context.Context, workspace string) error
- func (f *Framework) DevPodUp(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevPodUpRecreate(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevPodUpReset(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevPodUpStreams(ctx context.Context, workspace string, additionalArgs ...string) (string, string, error)
- func (f *Framework) DevPodUpWithIDE(ctx context.Context, additionalArgs ...string) error
- func (f *Framework) DevPodWorkspaceDelete(ctx context.Context, workspace string, extraArgs ...string) error
- func (f *Framework) DevPodWorkspaceStop(ctx context.Context, extraArgs ...string) error
- func (f *Framework) DevpodPortTest(ctx context.Context, port string, 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) ExecCommandStdout(ctx context.Context, args []string) error
- func (f *Framework) FindWorkspace(ctx context.Context, id string) (*provider2.Workspace, error)
- func (f *Framework) SetupGPG(tmpDir string) error
- type Pod
- type PodContainer
- type PodList
- type PodSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanString ¶
func CleanupTempDir ¶
func CleanupTempDir(initialDir, tempDir string)
func CopyToTempDir ¶
func CopyToTempDirInDir ¶
func CreateTempDir ¶
func ExpectEqual ¶
ExpectEqual expects the specified two are the same, otherwise an exception raises
func ExpectError ¶
ExpectError expects an error happens, otherwise an exception raises
func ExpectNoError ¶
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 ¶
ExpectNotEqual expects the specified two are not the same, otherwise an exception raises
func GetTimeout ¶
func ServeAgent ¶
func ServeAgent()
ServeAgent will be a simple http file server that will expose our freshly compiled devpod binaries to be downloaded as agents. useful for non-linux runners
Types ¶
type Framework ¶
func NewDefaultFramework ¶
func (*Framework) DevPodBuild ¶
func (*Framework) DevPodContextCreate ¶
func (*Framework) DevPodContextDelete ¶
func (*Framework) DevPodContextUse ¶
func (*Framework) DevPodIDEList ¶ added in v0.8.11
func (*Framework) DevPodIDEUse ¶ added in v0.8.11
func (*Framework) DevPodList ¶
DevPodList executes the `devpod list` command in the test framework
func (*Framework) DevPodListParsed ¶
func (*Framework) DevPodMachineCreate ¶
func (*Framework) DevPodMachineDelete ¶
func (*Framework) DevPodProviderAdd ¶
func (*Framework) DevPodProviderDelete ¶
func (*Framework) DevPodProviderFindOption ¶
func (*Framework) DevPodProviderList ¶
func (*Framework) DevPodProviderOptionsCheckNamespaceDescription ¶
func (*Framework) DevPodProviderUpdate ¶
func (*Framework) DevPodProviderUse ¶
func (*Framework) DevPodSSHEchoTestString ¶
func (*Framework) DevPodSSHGpgTestKey ¶
func (*Framework) DevPodStatus ¶
func (*Framework) DevPodStop ¶
func (*Framework) DevPodUpRecreate ¶
func (*Framework) DevPodUpReset ¶
func (*Framework) DevPodUpStreams ¶
func (*Framework) DevPodUpWithIDE ¶
DevPodUp executes the `devpod up` command in the test framework
func (*Framework) DevPodWorkspaceDelete ¶
func (*Framework) DevPodWorkspaceStop ¶
func (*Framework) DevpodPortTest ¶
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 ¶
ExecCommand executes the command string with the devpod test binary
func (*Framework) ExecCommandStdout ¶
ExecCommandStdout executes the command string with the devpod test binary
func (*Framework) FindWorkspace ¶
type PodContainer ¶
type PodContainer struct {
Image string `json:"image,omitempty"`
}
type PodSpec ¶
type PodSpec struct {
Containers []PodContainer `json:"containers,omitempty"`
}