Documentation ¶
Index ¶
- func Submit(t *testing.T, filename string, opts ...Option) (*Submission, Cleanup)
- type Cleanup
- type Logs
- type Option
- func AuthToken(token string) Option
- func DisableCleanup() Option
- func DisableRandomJobID() Option
- func Namespace(name string) Option
- func SkipDeploymentHealthy() Option
- func SkipEvalComplete() Option
- func Timeout(timeout time.Duration) Option
- func Var(key, value string) Option
- func Verbose(on bool) Option
- func WaitComplete(group string) Option
- type Submission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Submission)
func DisableCleanup ¶
func DisableCleanup() Option
func DisableRandomJobID ¶
func DisableRandomJobID() Option
func SkipDeploymentHealthy ¶
func SkipDeploymentHealthy() Option
SkipDeploymentHealthy will skip waiting for the deployment to become healthy.
func SkipEvalComplete ¶
func SkipEvalComplete() Option
SkipEvalComplete will skip waiting for the evaluation(s) to be complete.
Implies SkipDeploymentHealthy.
func WaitComplete ¶
WaitComplete will wait until all allocations of the given group are in the "complete" state (or timeout, or terminal with another status).
type Submission ¶
type Submission struct {
// contains filtered or unexported fields
}
func (*Submission) Exec ¶
func (sub *Submission) Exec(group, task string, cmd []string) Logs
Exec executes cmd in the given task of a random allocation of the given group.
func (*Submission) JobID ¶
func (sub *Submission) JobID() string
JobID provides the (possibly) randomized jobID associated with this Submission.
func (*Submission) TaskLogs ¶
func (sub *Submission) TaskLogs(group, task string) Logs
TaskLogs returns the logs of the given task, using a random allocation of the given group.
func (*Submission) TaskLogsByAlloc ¶
func (sub *Submission) TaskLogsByAlloc(group, task string) map[string]Logs
TaskLogsByAlloc returns the logs of the given task, organized by allocation.
Click to show internal directories.
Click to hide internal directories.