action

package
v0.50.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2021 License: BSD-3-Clause Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeStats

func ComputeStats(res *sdk.Result, v *venom.Tests) []string

ComputeStats computes failures / errors on testSuites, set result.Status and return a list of log to send to API

func GetArtifactFromAPI

func GetArtifactFromAPI(ctx context.Context, wk workerruntime.Runtime, project string, workflow string, n int64, res sdk.Result, pattern string, regexp *regexp.Regexp, tag string, destPath string, wkDirFS afero.Fs) (sdk.Result, error)

func GetArtifactFromIntegrationPlugin

func GetArtifactFromIntegrationPlugin(ctx context.Context, wk workerruntime.Runtime, res sdk.Result, pattern string, regexp *regexp.Regexp, destPath string, plugin *sdk.GRPCPlugin, key, wkfName string, number int64) (sdk.Result, error)

func ParseTestsuiteAlone

func ParseTestsuiteAlone(data []byte) (venom.TestSuite, bool)

func PushBuildInfo

func PushBuildInfo(ctx context.Context, wk workerruntime.Runtime, _ sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunArtifactDownload

func RunArtifactDownload(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunArtifactUpload

func RunArtifactUpload(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunCheckoutApplication

func RunCheckoutApplication(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunDeployApplication

func RunDeployApplication(ctx context.Context, wk workerruntime.Runtime, _ sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunGRPCPlugin

func RunGRPCPlugin(ctx context.Context, actionName string, params []sdk.Parameter, action sdk.Action, w workerruntime.Runtime, chanRes chan sdk.Result, done chan struct{})

func RunGitClone

func RunGitClone(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunGitTag

func RunGitTag(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunInstallKey

func RunInstallKey(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunParseCoverageResultAction

func RunParseCoverageResultAction(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunParseJunitTestResultAction

func RunParseJunitTestResultAction(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunPromote

func RunPromote(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunRelease

func RunRelease(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, _ []sdk.Variable) (sdk.Result, error)

func RunReleaseVCS

func RunReleaseVCS(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunScriptAction

func RunScriptAction(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

func RunServeStaticFiles

func RunServeStaticFiles(ctx context.Context, wk workerruntime.Runtime, a sdk.Action, secrets []sdk.Variable) (sdk.Result, error)

Types

type TestWorker

type TestWorker struct {
	Params []sdk.Parameter
	// contains filtered or unexported fields
}

func SetupTest

func SetupTest(t *testing.T) (*TestWorker, context.Context)

func (TestWorker) BaseDir

func (wk TestWorker) BaseDir() afero.Fs

func (*TestWorker) Blur

func (w *TestWorker) Blur(i interface{}) error

func (*TestWorker) CDNHttpURL

func (w *TestWorker) CDNHttpURL() string

func (*TestWorker) Client

func (w *TestWorker) Client() cdsclient.WorkerInterface

func (*TestWorker) Environ

func (_ *TestWorker) Environ() []string

func (*TestWorker) FeatureEnabled

func (w *TestWorker) FeatureEnabled(featureName sdk.FeatureName) bool

func (*TestWorker) GetJobIdentifiers

func (w *TestWorker) GetJobIdentifiers() (int64, int64, int64)

func (*TestWorker) GetPlugin

func (w *TestWorker) GetPlugin(t string) *sdk.GRPCPlugin

func (*TestWorker) HTTPPort

func (_ *TestWorker) HTTPPort() int32

func (*TestWorker) InstallKey

func (w *TestWorker) InstallKey(key sdk.Variable) (*workerruntime.KeyResponse, error)

func (*TestWorker) InstallKeyTo

func (w *TestWorker) InstallKeyTo(key sdk.Variable, destinationPath string) (*workerruntime.KeyResponse, error)

func (*TestWorker) KeyDirectory

func (w *TestWorker) KeyDirectory() *afero.BasePathFile

func (*TestWorker) Name

func (_ *TestWorker) Name() string

func (*TestWorker) Parameters

func (w *TestWorker) Parameters() []sdk.Parameter

func (*TestWorker) ProcessJob

func (_ *TestWorker) ProcessJob(job sdk.WorkflowNodeJobRunData) sdk.Result

func (*TestWorker) Register

func (_ *TestWorker) Register(ctx context.Context) error

func (*TestWorker) RunResultSignature

func (w *TestWorker) RunResultSignature(artifactName string, perm uint32, t sdk.WorkflowRunResultType) (string, error)

func (*TestWorker) SendLog

func (w *TestWorker) SendLog(ctx context.Context, level workerruntime.Level, format string)

func (*TestWorker) Take

func (*TestWorker) Unregister

func (_ *TestWorker) Unregister(ctx context.Context) error

func (*TestWorker) WorkerCacheSignature

func (w *TestWorker) WorkerCacheSignature(tag string) (string, error)

func (*TestWorker) WorkingDirectory

func (w *TestWorker) WorkingDirectory() *afero.BasePathFile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL