endpoints

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 43 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ApiTest            = "API_TEST"
	PipelineYmlVersion = "1.1"
	ApiTestType        = "api-test"
	ApiTestIDs         = "api_ids"
	UsecaseID          = "usecase_id"
	PipelineStageLen   = 10
	Project            = "project"
	Usecase            = "case"
)

API 返回对应的错误类型

View Source
const (
	Bugs             = "bugs"
	Coverage         = "coverage"
	Vulnerabilities  = "vulnerabilities"
	CodeSmells       = "codeSmells"
	Duplications     = "duplications"
	IssueStatistics  = "issuesStatistics"
	SonarMetricsName = "sonar_metrics_statistics"
)

sonar 分析结果的问题类型

View Source
const (
	SonarIssue      = "SONAR_ISSUE"
	SonarIssueStore = "SONAR_ISSUE_STORE"
)

API 返回对应的错误类型

View Source
const APITestEnv = "API_TEST_ENV"
View Source
const (
	BranchPrefix = "refs/heads/"
)
View Source
const (
	ErrMsgURLMissingPathApiID = "URL PATH 缺少参数: apiID"
)
View Source
const (
	PAGE = 300
)

工单对应的pagesize

Variables

View Source
var TaskQueue = make(chan *apistructs.GittarPushEventRequest, 300)

Functions

func CreateBuild

func CreateBuild(pipeline, branch, uid string, appId uint64) (*apistructs.QaBuildCreateResponse, error)

func MetricsSonar

func MetricsSonar(sonarStore *apistructs.SonarStoreRequest, bdl *bundle.Bundle)

func StartHookTaskConsumer

func StartHookTaskConsumer()

Types

type CompareData

type CompareData struct {
	Path    string `json:"path"`
	Message string `json:"message"`
	Rule    string `json:"rule"`
	Code    string `json:"code"`
	//Line    int    `json:"line"`
	TextRange TextRange `json:"textRange"`
}

CompareData 将新产生的 sonar 问题与上次分析产生的问题进行对比的数据

type Endpoints

type Endpoints struct {
	// contains filtered or unexported fields
}

Endpoints 定义 endpoint 方法

func New

func New(options ...Option) *Endpoints

func (*Endpoints) AddTestPlanCaseRelIssueRelations

func (e *Endpoints) AddTestPlanCaseRelIssueRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

AddTestPlanCaseRelIssueRelations 测试计划用例与事件缺陷 新增关联

func (*Endpoints) AddTestPlanV2Step

func (e *Endpoints) AddTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

AddTestPlanV2Step Add a step in the test plan

func (*Endpoints) BatchCleanTestCasesFromRecycleBin

func (e *Endpoints) BatchCleanTestCasesFromRecycleBin(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchCopyTestCases

func (e *Endpoints) BatchCopyTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

BatchUpdateTestCases 批量复制测试用例

func (*Endpoints) BatchCreateTestCases

func (e *Endpoints) BatchCreateTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchDeleteSonarMetricRules

func (e *Endpoints) BatchDeleteSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchInsertSonarMetricRules

func (e *Endpoints) BatchInsertSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchQueryPipelineSnippetYaml

func (e *Endpoints) BatchQueryPipelineSnippetYaml(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) BatchUpdateTestCases

func (e *Endpoints) BatchUpdateTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

BatchUpdateTestCases 批量更新测试用例

func (*Endpoints) BatchUpdateTestPlanCaseRelations

func (e *Endpoints) BatchUpdateTestPlanCaseRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

BatchUpdateTestPlanCaseRelations 批量更新测试计划用例关系

func (*Endpoints) CancelApiTestPipeline

func (e *Endpoints) CancelApiTestPipeline(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CancelApiTests

func (e *Endpoints) CancelApiTests(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CancelApiTests 取消执行测试计划

func (*Endpoints) CancelDiceAutotestScene

func (e *Endpoints) CancelDiceAutotestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CancelDiceAutotestScene 取消执行场景

func (*Endpoints) CancelDiceAutotestTestPlans

func (e *Endpoints) CancelDiceAutotestTestPlans(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CleanTestSet

func (e *Endpoints) CleanTestSet(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

CleanTestSet 清空测试集

func (*Endpoints) CleanTestSetFromRecycleBin

func (e *Endpoints) CleanTestSetFromRecycleBin(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CopyAutoTestFileTreeNode

func (e *Endpoints) CopyAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CopyAutoTestScene

func (e *Endpoints) CopyAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CopyAutoTestScene 复制场景

func (*Endpoints) CopyAutoTestSpace

func (e *Endpoints) CopyAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CopyAutoTestSpace 复制测试空间

func (*Endpoints) CopySceneSet

func (e *Endpoints) CopySceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CopyTestSet

func (e *Endpoints) CopyTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CopyTestSet 拷贝测试集

func (*Endpoints) CreateAPITest

func (e *Endpoints) CreateAPITest(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAPITest 创建 API 接口测试

func (*Endpoints) CreateAPITestEnv

func (e *Endpoints) CreateAPITestEnv(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAPITestEnv 创建API测试环境变量

func (*Endpoints) CreateAutoTestFileTreeNode

func (e *Endpoints) CreateAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateAutoTestGlobalConfig

func (e *Endpoints) CreateAutoTestGlobalConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateAutoTestScene

func (e *Endpoints) CreateAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestScene 新建场景

func (*Endpoints) CreateAutoTestSceneInput

func (e *Endpoints) CreateAutoTestSceneInput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestSceneInput 创建场景入参

func (*Endpoints) CreateAutoTestSceneOutput

func (e *Endpoints) CreateAutoTestSceneOutput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestSceneOutput 创建场景出参

func (*Endpoints) CreateAutoTestSceneStep

func (e *Endpoints) CreateAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestSceneStep 创建场景步骤

func (*Endpoints) CreateAutoTestSpace

func (e *Endpoints) CreateAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateAutoTestSpace 创建测试空间

func (*Endpoints) CreateSceneSet

func (e *Endpoints) CreateSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) CreateTestCase

func (e *Endpoints) CreateTestCase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestCase 创建测试用例

func (*Endpoints) CreateTestPlan

func (e *Endpoints) CreateTestPlan(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestPlan 创建测试计划

func (*Endpoints) CreateTestPlanCaseRelations

func (e *Endpoints) CreateTestPlanCaseRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestPlanCaseRelations 创建测试计划用例关系

func (*Endpoints) CreateTestPlanV2

func (e *Endpoints) CreateTestPlanV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestPlanV2 Create test plan

func (*Endpoints) CreateTestSet

func (e *Endpoints) CreateTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

CreateTestSet 创建测试集

func (*Endpoints) DeleteAPITestEnvByEnvID

func (e *Endpoints) DeleteAPITestEnvByEnvID(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAPITestEnvByEnvID 根据envID删除测试环境变量

func (*Endpoints) DeleteApiTestsByApiID

func (e *Endpoints) DeleteApiTestsByApiID(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteApiTestsByApiID 根据apiID删除接口测试信息

func (*Endpoints) DeleteAutoTestFileTreeNode

func (e *Endpoints) DeleteAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteAutoTestGlobalConfig

func (e *Endpoints) DeleteAutoTestGlobalConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteAutoTestScene

func (e *Endpoints) DeleteAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestScene 删除场景

func (*Endpoints) DeleteAutoTestSceneInput

func (e *Endpoints) DeleteAutoTestSceneInput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestSceneInput 删除场景入参列表

func (*Endpoints) DeleteAutoTestSceneOutput

func (e *Endpoints) DeleteAutoTestSceneOutput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestSceneOutput 删除场景出参

func (*Endpoints) DeleteAutoTestSceneStep

func (e *Endpoints) DeleteAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestSceneStep 删除场景步骤

func (*Endpoints) DeleteAutoTestSpace

func (e *Endpoints) DeleteAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteAutoTestSpace 删除测试空间

func (*Endpoints) DeleteSceneSet

func (e *Endpoints) DeleteSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteSonarMetricRules

func (e *Endpoints) DeleteSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) DeleteTestPlan

func (e *Endpoints) DeleteTestPlan(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteTestPlan 删除测试计划

func (*Endpoints) DeleteTestPlanV2

func (e *Endpoints) DeleteTestPlanV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteTestPlanV2 Delete test plan

func (*Endpoints) DeleteTestPlanV2Step

func (e *Endpoints) DeleteTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

DeleteTestPlanV2Step Delete a step in the test plan

func (*Endpoints) DragSceneSet

func (e *Endpoints) DragSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ExecuteApiTests

func (e *Endpoints) ExecuteApiTests(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteApiTests 根据planID创建个pipeline执行api测试

func (*Endpoints) ExecuteAttemptTest

func (e *Endpoints) ExecuteAttemptTest(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteAttemptTest 用户尝试执行单个或者多个API测试

func (*Endpoints) ExecuteDiceAutotestScene

func (e *Endpoints) ExecuteDiceAutotestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteDiceAutotestScene 执行场景

func (*Endpoints) ExecuteDiceAutotestSceneStep

func (e *Endpoints) ExecuteDiceAutotestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteDiceAutotestScene 执行步骤

func (*Endpoints) ExecuteDiceAutotestTestPlans

func (e *Endpoints) ExecuteDiceAutotestTestPlans(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ExecuteTestPlanAPITest

func (e *Endpoints) ExecuteTestPlanAPITest(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ExecuteTestPlanAPITest 执行测试计划接口测试

func (*Endpoints) ExportTestCases

func (e *Endpoints) ExportTestCases(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error

ExportTestCases 导出测试用例

func (*Endpoints) ExportTestPlanCaseRels

func (e *Endpoints) ExportTestPlanCaseRels(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error

ExportTestCases 导出测试计划下的测试用例

func (*Endpoints) FindAutoTestFileTreeNodeAncestors

func (e *Endpoints) FindAutoTestFileTreeNodeAncestors(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) FuzzySearchAutoTestFileTreeNodes

func (e *Endpoints) FuzzySearchAutoTestFileTreeNodes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GenerateTestPlanReport

func (e *Endpoints) GenerateTestPlanReport(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GenerateTestPlanReport 生成测试计划报告

func (*Endpoints) GetAPITestEnv

func (e *Endpoints) GetAPITestEnv(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAPITestEnv 获取指定ID的环境变量信息

func (*Endpoints) GetApiTests

func (e *Endpoints) GetApiTests(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetApiTests 根据获取接口测试信息

func (*Endpoints) GetAutoTestFileTreeNode

func (e *Endpoints) GetAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetAutoTestScene

func (e *Endpoints) GetAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAutoTestScene 获取场景

func (*Endpoints) GetAutoTestSceneStep

func (e *Endpoints) GetAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAutoTestSceneStep 获取场景步骤

func (*Endpoints) GetAutoTestSpace

func (e *Endpoints) GetAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAutoTestSpace 获取测试空间

func (*Endpoints) GetAutoTestSpaceList

func (e *Endpoints) GetAutoTestSpaceList(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetAutoTestSpaceList 获取测试空间列表

func (*Endpoints) GetPipelineDetail

func (e *Endpoints) GetPipelineDetail(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPipelineDetail 根据 pipelineID 获取详情

func (*Endpoints) GetPipelineTaskLogs

func (e *Endpoints) GetPipelineTaskLogs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetPipelineTaskLogs 根据 taskID 获取 pipeline task 日志详情

func (*Endpoints) GetRecords

func (e *Endpoints) GetRecords(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetSceneSet

func (e *Endpoints) GetSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetSceneSets

func (e *Endpoints) GetSceneSets(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetSonarCredential

func (e *Endpoints) GetSonarCredential(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetSonarCredential 该 API 只允许 token 访问,校验已由 openapi checkToken 完成

func (*Endpoints) GetSonarMetricRules

func (e *Endpoints) GetSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTestCase

func (e *Endpoints) GetTestCase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetTestCase 获取测试用例详情

func (*Endpoints) GetTestPlan

func (e *Endpoints) GetTestPlan(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetTestPlan 测试计划详情

func (*Endpoints) GetTestPlanCaseRel

func (e *Endpoints) GetTestPlanCaseRel(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTestPlanV2

func (e *Endpoints) GetTestPlanV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

GetTestPlanV2 Get testplan detail

func (*Endpoints) GetTestPlanV2Step

func (e *Endpoints) GetTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlanV2Step Update the test plan step

func (*Endpoints) GetTestRecord

func (e *Endpoints) GetTestRecord(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTestSet

func (e *Endpoints) GetTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GetTestTypes

func (e *Endpoints) GetTestTypes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GittarMRCreateCallback

func (e *Endpoints) GittarMRCreateCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) GittarWebHookCallback

func (e *Endpoints) GittarWebHookCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) Health

func (e *Endpoints) Health(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

Health 健康检查

func (*Endpoints) ImportTestCases

func (e *Endpoints) ImportTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ImportTestCases 导入测试用例

func (*Endpoints) InternalListTestPlanCaseRels

func (e *Endpoints) InternalListTestPlanCaseRels(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

InternalListTestPlanCaseRels 仅供内部使用

func (*Endpoints) InternalRemoveTestPlanCaseRelIssueRelations

func (e *Endpoints) InternalRemoveTestPlanCaseRelIssueRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

InternalRemoveTestPlanCaseRelIssueRelations 仅供内部使用,删除测试计划用例下的 bug 关联关系

func (*Endpoints) ListAPITestEnvs

func (e *Endpoints) ListAPITestEnvs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListPAPITestEnvs 获取环境变量信息列表

func (*Endpoints) ListApiTests

func (e *Endpoints) ListApiTests(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListApiTests 获取接口测试信息列表

func (*Endpoints) ListAutoTestFileTreeNodeHistory

func (e *Endpoints) ListAutoTestFileTreeNodeHistory(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListAutoTestFileTreeNodes

func (e *Endpoints) ListAutoTestFileTreeNodes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListAutoTestGlobalConfigs

func (e *Endpoints) ListAutoTestGlobalConfigs(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListAutoTestScene

func (e *Endpoints) ListAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestScene 获取场景列表

func (*Endpoints) ListAutoTestSceneInput

func (e *Endpoints) ListAutoTestSceneInput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestSceneInput 获取场景入参列表

func (*Endpoints) ListAutoTestSceneOutput

func (e *Endpoints) ListAutoTestSceneOutput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestSceneOutput 获取场景出参列表

func (*Endpoints) ListAutoTestSceneStep

func (e *Endpoints) ListAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestSceneStep 获取场景步骤列表

func (*Endpoints) ListAutoTestSceneStepOutPut

func (e *Endpoints) ListAutoTestSceneStepOutPut(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListAutoTestSceneStepOutPut 获取场景步骤出参

func (*Endpoints) ListAutoTestScenes

func (e *Endpoints) ListAutoTestScenes(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) ListTestPlanTestSets

func (e *Endpoints) ListTestPlanTestSets(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListTestPlanTestSets 获取测试计划下的测试集列表

func (*Endpoints) ListTestSets

func (e *Endpoints) ListTestSets(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

ListTestSets 获取测试集列表

func (*Endpoints) MigrateFromAutoTestV1

func (e *Endpoints) MigrateFromAutoTestV1(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) MoveAutoTestFileTreeNode

func (e *Endpoints) MoveAutoTestFileTreeNode(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) MoveAutoTestScene

func (e *Endpoints) MoveAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

MoveAutoTestScene 移动场景

func (*Endpoints) MoveAutoTestSceneStep

func (e *Endpoints) MoveAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

MoveAutoTestSceneStep 移动场景步骤

func (*Endpoints) MoveTestPlanV2Step

func (e *Endpoints) MoveTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlanV2Step Update the test plan step

func (*Endpoints) PagingSonarMetricRules

func (e *Endpoints) PagingSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) PagingTestCases

func (e *Endpoints) PagingTestCases(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingTestCases 获取测试用例列表

func (*Endpoints) PagingTestPlanCaseRelations

func (e *Endpoints) PagingTestPlanCaseRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingTestPlanCaseRelations 测试计划内测试用例过滤

func (*Endpoints) PagingTestPlans

func (e *Endpoints) PagingTestPlans(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingTestPlans 测试计划分页

func (*Endpoints) PagingTestPlansV2

func (e *Endpoints) PagingTestPlansV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

PagingTestPlansV2 Page query test plan

func (*Endpoints) QueryPipelineSnippetYaml

func (e *Endpoints) QueryPipelineSnippetYaml(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QueryPipelineSnippetYamlV2

func (e *Endpoints) QueryPipelineSnippetYamlV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QuerySonarMetricRules

func (e *Endpoints) QuerySonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) QuerySonarMetricRulesDefinition

func (e *Endpoints) QuerySonarMetricRulesDefinition(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) RecoverTestSet

func (e *Endpoints) RecoverTestSet(ctx context.Context, r *http.Request, vars map[string]string) (
	httpserver.Responser, error)

RestoreTestSet 回收站恢复测试集

func (*Endpoints) RecoverTestSetFromRecycleBin

func (e *Endpoints) RecoverTestSetFromRecycleBin(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RecoverTestSetFromRecycleBin 从回收站恢复测试集(递归子测试集和测试用例)

func (*Endpoints) RecycleTestSet

func (e *Endpoints) RecycleTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RecycleTestSet 回收测试集

func (*Endpoints) RegisterWebhooks

func (e *Endpoints) RegisterWebhooks() error

func (*Endpoints) RemoveTestPlanCaseRelIssueRelations

func (e *Endpoints) RemoveTestPlanCaseRelIssueRelations(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

RemoveTestPlanCaseRelIssueRelations 解除测试计划用例与事件缺陷的关联关系

func (*Endpoints) Routes

func (e *Endpoints) Routes() []httpserver.Endpoint

Routes 返回 endpoints 的所有 endpoint 方法,也就是 route.

func (*Endpoints) SaveAutoTestFileTreeNodePipeline

func (e *Endpoints) SaveAutoTestFileTreeNodePipeline(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) SonarIssues

func (e *Endpoints) SonarIssues(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SonarIssues 根据参数类型,获取 Sonar 的结果信息

func (*Endpoints) SonarIssuesStore

func (e *Endpoints) SonarIssuesStore(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

SonarIssuesStore 储存Sonar 分析产生的结果数据

func (*Endpoints) StatisticResults

func (e *Endpoints) StatisticResults(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

StatisticResults API 测试结果统计

func (*Endpoints) TestCallback

func (e *Endpoints) TestCallback(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateAPITestEnv

func (e *Endpoints) UpdateAPITestEnv(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAPITestEnv 更新API测试环境变量

func (*Endpoints) UpdateApiTest

func (e *Endpoints) UpdateApiTest(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateApiTest 更新api接口测试

func (*Endpoints) UpdateAutoTestFileTreeNodeBasicInfo

func (e *Endpoints) UpdateAutoTestFileTreeNodeBasicInfo(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateAutoTestGlobalConfig

func (e *Endpoints) UpdateAutoTestGlobalConfig(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateAutoTestScene

func (e *Endpoints) UpdateAutoTestScene(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestScene 更新场景

func (*Endpoints) UpdateAutoTestSceneInput

func (e *Endpoints) UpdateAutoTestSceneInput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestSceneInput 更新场景入参

func (*Endpoints) UpdateAutoTestSceneOutput

func (e *Endpoints) UpdateAutoTestSceneOutput(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestSceneOutput 更新场景出参

func (*Endpoints) UpdateAutoTestSceneStep

func (e *Endpoints) UpdateAutoTestSceneStep(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestSceneStep 更新场景步骤

func (*Endpoints) UpdateAutoTestSpace

func (e *Endpoints) UpdateAutoTestSpace(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateAutoTestSpace 更新测试空间

func (*Endpoints) UpdateSceneSet

func (e *Endpoints) UpdateSceneSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateSonarMetricRules

func (e *Endpoints) UpdateSonarMetricRules(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

func (*Endpoints) UpdateTestCase

func (e *Endpoints) UpdateTestCase(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestCase 更新测试用例

func (*Endpoints) UpdateTestPlan

func (e *Endpoints) UpdateTestPlan(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlan 更新测试计划

func (*Endpoints) UpdateTestPlanV2

func (e *Endpoints) UpdateTestPlanV2(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlanV2 Update test plan

func (*Endpoints) UpdateTestPlanV2Step

func (e *Endpoints) UpdateTestPlanV2Step(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestPlanV2Step Update the test plan step

func (*Endpoints) UpdateTestSet

func (e *Endpoints) UpdateTestSet(ctx context.Context, r *http.Request, vars map[string]string) (httpserver.Responser, error)

UpdateTestSet 更新测试集

type EventCallback

type EventCallback struct {
	Name    string
	URLPath string
	Events  []string
}

type Option

type Option func(*Endpoints)

func WithAutoTest

func WithAutoTest(svc *autotest.Service) Option

func WithAutoTestV2

func WithAutoTestV2(svc *atv2.Service) Option

func WithBundle

func WithBundle(bdl *bundle.Bundle) Option

func WithCQ

func WithCQ(cq *cq.CQ) Option

func WithDB

func WithDB(db *dao.DBClient) Option

func WithMigrate

func WithMigrate(svc *migrate.Service) Option

func WithQueryStringDecoder

func WithQueryStringDecoder(decoder *schema.Decoder) Option

func WithSceneSet

func WithSceneSet(svc *sceneset.Service) Option

func WithSonarMetricRule

func WithSonarMetricRule(sonarMetricRule *sonar_metric_rule.Service) Option

func WithTestSet

func WithTestSet(svc *testset.Service) Option

func WithTestcase

func WithTestcase(svc *testcase.Service) Option

func WithTestplan

func WithTestplan(testPlan *testplan.TestPlan) Option

WithTestplan 设置 testplan endpoint

type TextRange

type TextRange struct {
	EndLine     int `json:"endLine"`
	EndOffset   int `json:"endOffset"`
	StartLine   int `json:"startLine"`
	StartOffset int `json:"startOffset"`
}

Jump to

Keyboard shortcuts

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