pipeline

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StepGitPullName   = "git_pull"
	StepCodeCheckName = "code_check"
	StepUnitTestName  = "unit_test"
	StepHttpTestName  = "http_test"
	StepGrpcTestName  = "grpc_test"
)

Variables

This section is empty.

Functions

func JobCodeCheck

func JobCodeCheck() db.TestJobPayload

func JobGitPull

func JobGitPull(gitHttpUrl, branch, accessToken string) db.TestJobPayload

func JobGrpcTest

func JobGrpcTest(addr string, testCases []view.GrpcTestCase) db.TestJobPayload

func JobUnitTest

func JobUnitTest(accessToken string) db.TestJobPayload

func New

func New(options ...StepOption) *db.TestPipelineDesc

Types

type JobCodeCheckPayload

type JobCodeCheckPayload struct {
}

type JobGitPullPayload

type JobGitPullPayload struct {
	GitHttpUrl  string `json:"http_url"`
	Branch      string `json:"branch"`
	AccessToken string `json:"access_token"`
}

type JobGrpcTestPayload

type JobGrpcTestPayload struct {
	Addr      string              `json:"addr"`
	TestCases []view.GrpcTestCase `json:"test_cases"`
}

type JobHttpTestPayload

type JobHttpTestPayload struct {
	Collection db.HttpTestCollection `json:"collection"`
	TestCases  []db.HttpTestCase     `json:"test_cases"`
}

type JobUnitTestPayload

type JobUnitTestPayload struct {
	AccessToken string `json:"access_token"`
}

type StepOption

type StepOption func(desc *db.TestPipelineDesc)

func Parallel

func Parallel(flag bool) StepOption

func StepCodeCheck

func StepCodeCheck() StepOption

func StepGitPull

func StepGitPull(gitHttpUrl, branch, accessToken string) StepOption

func StepGrpcTest

func StepGrpcTest(addr string, testCases []view.GrpcTestCase) StepOption

func StepHttpTestCollection

func StepHttpTestCollection(collection db.HttpTestCollection, testCases []db.HttpTestCase) StepOption

StepHttpTestCollection 执行 Http 测试用例集合

func StepJob

func StepJob(name string, jobPayload db.TestJobPayload) StepOption

func StepSubPipeline

func StepSubPipeline(options ...StepOption) StepOption

func StepUnitTest

func StepUnitTest(accessToken string) StepOption

Jump to

Keyboard shortcuts

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