Documentation ¶
Index ¶
- func AssertCustomTestRepoSetupRan(t *testing.T, w Workspace, repoPath string, logStr string, user string, ...)
- func AssertCwd(t *testing.T, w Workspace, expectedCwd string)
- func AssertDockerRunning(t *testing.T, w Workspace) bool
- func AssertFileContainsString(t *testing.T, w Workspace, filePath string, contains string) bool
- func AssertFileNotContainsString(t *testing.T, w Workspace, filePath string, contains string) bool
- func AssertInternalCurlOuputContains(t *testing.T, w Workspace, url string, contains string, retries int)
- func AssertInternalSSHServerRunning(t *testing.T, w Workspace, privKeyPath string, user string, healthCheck string)
- func AssertPathDoesNotExist(t *testing.T, workspace Workspace, path string) bool
- func AssertPathExists(t *testing.T, workspace Workspace, path string) bool
- func AssertPathNotExist(t *testing.T, workspace Workspace, path string) bool
- func AssertRepoHasNumFiles(t *testing.T, w Workspace, filePath string, num int)
- func AssertTestRepoSetupRan(t *testing.T, w Workspace, repoPath string)
- func AssertTestUserRepoSetupRan(t *testing.T, w Workspace, repoPath string)
- func AssertUser(t *testing.T, w Workspace, expectedUser string)
- func AssertValidBrevBaseRepoSetup(t *testing.T, w Workspace, repoPath string)
- func AssertValidBrevProjRepo(t *testing.T, w Workspace, repoPath string)
- func AssertValidUserBrevSetup(t *testing.T, w Workspace, repoPath string)
- func AssertWorkspaceSetup(t *testing.T, w Workspace, password string, host string)
- func GetTestKeys(prefix string) (*store.KeyPair, error)
- func GetUnauthedTestKeys(prefix string) (*store.KeyPair, error)
- func NewTestSetupParams(keyPair *store.KeyPair) *store.SetupParamsV0
- func UpdateFile(w Workspace, filePath string, content string) error
- type AllWorkspaceTestClientOption
- type BrevBinaryPath
- type ContainerParams
- type ExecResult
- type TestNamePrefix
- type TestWorkspace
- func (w TestWorkspace) Copy(src string, dest string) error
- func (w TestWorkspace) Done() error
- func (w TestWorkspace) Exec(arg ...string) ([]byte, error)
- func (w TestWorkspace) KillContainer() error
- func (w TestWorkspace) Reset() error
- func (w TestWorkspace) RmContainer() error
- func (w TestWorkspace) RmVolume() error
- func (w TestWorkspace) Setup() error
- func (w *TestWorkspace) UpdateParams(params *store.SetupParamsV0)
- type Workspace
- type WorkspaceTestClient
- type WorkspaceTestClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertCustomTestRepoSetupRan ¶ added in v0.6.69
func AssertPathDoesNotExist ¶
func AssertPathNotExist ¶
func AssertRepoHasNumFiles ¶
func AssertTestRepoSetupRan ¶
func AssertValidBrevProjRepo ¶
func AssertWorkspaceSetup ¶
func NewTestSetupParams ¶
func NewTestSetupParams(keyPair *store.KeyPair) *store.SetupParamsV0
Types ¶
type AllWorkspaceTestClientOption ¶
func NewWorkspaceTestClientOptions ¶
func NewWorkspaceTestClientOptions(options []WorkspaceTestClientOption) AllWorkspaceTestClientOption
type BrevBinaryPath ¶
type BrevBinaryPath struct {
BinaryPath string
}
func (BrevBinaryPath) ApplyWorkspaceTestClientOption ¶
func (b BrevBinaryPath) ApplyWorkspaceTestClientOption(allOptions *AllWorkspaceTestClientOption)
type ContainerParams ¶
type ExecResult ¶
type TestNamePrefix ¶
type TestNamePrefix struct {
Name string
}
func (TestNamePrefix) ApplyWorkspaceTestClientOption ¶
func (t TestNamePrefix) ApplyWorkspaceTestClientOption(allOptions *AllWorkspaceTestClientOption)
type TestWorkspace ¶
type TestWorkspace struct { SetupParams *store.SetupParamsV0 ContainerName string Image string Ports []string TestBrevBinary string // path to brev binary that should be tested ShowOut bool }
func NewTestWorkspace ¶
func NewTestWorkspace(testBrevBinaryPath string, containerName string, image string, ports []string, setupParams *store.SetupParamsV0) *TestWorkspace
func (TestWorkspace) Done ¶
func (w TestWorkspace) Done() error
func (TestWorkspace) KillContainer ¶
func (w TestWorkspace) KillContainer() error
func (TestWorkspace) Reset ¶
func (w TestWorkspace) Reset() error
func (TestWorkspace) RmContainer ¶
func (w TestWorkspace) RmContainer() error
func (TestWorkspace) RmVolume ¶
func (w TestWorkspace) RmVolume() error
func (TestWorkspace) Setup ¶
func (w TestWorkspace) Setup() error
func (*TestWorkspace) UpdateParams ¶
func (w *TestWorkspace) UpdateParams(params *store.SetupParamsV0)
type WorkspaceTestClient ¶
type WorkspaceTestClient struct { SetupParams *store.SetupParamsV0 ContainerParams []ContainerParams TestWorkspaces []Workspace }
func NewWorkspaceTestClient ¶
func NewWorkspaceTestClient(setupParams *store.SetupParamsV0, containerParams []ContainerParams, options ...WorkspaceTestClientOption) *WorkspaceTestClient
func (WorkspaceTestClient) Done ¶
func (w WorkspaceTestClient) Done() error
func (WorkspaceTestClient) Test ¶
func (w WorkspaceTestClient) Test(test workspaceTest) error
type WorkspaceTestClientOption ¶
type WorkspaceTestClientOption interface {
ApplyWorkspaceTestClientOption(allOptions *AllWorkspaceTestClientOption)
}
Click to show internal directories.
Click to hide internal directories.