Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
WaitForWorkflow(ctx context.Context, owner, repo, workflowFile string, after time.Time, event string) (*forge.WorkflowRun, error)
FindCompletedWorkflowRun(ctx context.Context, owner, repo, workflowFile string, after time.Time) (*forge.WorkflowRun, error)
AssertNoWorkflow(ctx context.Context, owner, repo, workflowFile string, after time.Time) error
GetRunLogs(ctx context.Context, owner, repo string, runID int) (string, error)
DownloadArtifacts(ctx context.Context, owner, repo string, runID int, destDir string) error
DownloadNamedArtifactFromRun(ctx context.Context, owner, repo string, runID int, artifactName string, destDir string) error
DownloadNamedArtifactAfter(ctx context.Context, owner, repo, artifactName string, after time.Time, destDir string) error
WaitForHarnessAgent(ctx context.Context, owner, repo, agent string, after time.Time) (*forge.WorkflowRun, error)
AssertNoHarnessAgentArtifact(ctx context.Context, owner, repo, agent string, after time.Time) error
CountHarnessDispatches(ctx context.Context, owner, repo, agent string, after time.Time) (int, error)
}
Driver abstracts CI workflow operations for behaviour tests.
Click to show internal directories.
Click to hide internal directories.