qa

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: AGPL-3.0 Imports: 4 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

This section is empty.

Variables

View Source
var APITEST_ATTEMPT = apis.ApiSpec{
	Path:         "/api/apitests/actions/attempt-test",
	BackendPath:  "/api/apitests/actions/attempt-test",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "POST",
	CheckLogin:   true,
	CheckToken:   true,
	Doc:          "summary: 手动尝试执行单个 usecase API 测试",
	RequestType:  apistructs.APITestsAttemptRequest{},
	ResponseType: apistructs.APITestsAttemptResponse{},
	IsOpenAPI:    true,
}
View Source
var CI_SONAR_STORE = apis.ApiSpec{
	Path:         "/api/qa/actions/sonar-results-store",
	BackendPath:  "/api/qa/actions/sonar-results-store",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "POST",
	CheckLogin:   true,
	CheckToken:   true,
	Doc:          "summary: 存储 sonar issue",
	RequestType:  apistructs.SonarStoreRequest{},
	ResponseType: apistructs.SonarStoreResponse{},
	IsOpenAPI:    true,
}
View Source
var QA_APITESTS_CANCEL = apis.ApiSpec{
	Path:         "/api/apitests/actions/cancel-testplan",
	BackendPath:  "/api/apitests/actions/cancel-testplan",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "POST",
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ApiTestCancelRequest{},
	ResponseType: apistructs.ApiTestCancelResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 取消测试计划",
}
View Source
var QA_APITESTS_GET = apis.ApiSpec{
	Path:         "/api/apitests/<id>",
	BackendPath:  "/api/apitests/<id>",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	ResponseType: apistructs.ApiTestsGetResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 获取apitest详情",
}
View Source
var QA_APITESTS_UPDATE = apis.ApiSpec{
	Path:         "/api/apitests/<id>",
	BackendPath:  "/api/apitests/<id>",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "PUT",
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.ApiTestsUpdateRequest{},
	ResponseType: apistructs.ApiTestsUpdateResponse{},
	IsOpenAPI:    true,
	Doc:          `更新 api test的信息`,
}
View Source
var QA_AUTOTEST_SPACE_GET = apis.ApiSpec{
	Path:         "/api/autotests/spaces/<id>",
	BackendPath:  "/api/autotests/spaces/<id>",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	ResponseType: apistructs.AutoTestSpaceResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 获取autotest-space详情",
}
View Source
var QA_PIPELINE_TASK_LOGS = apis.ApiSpec{
	Path:         "/api/apitests/pipeline/<pipelineID>/task/<taskID>/logs",
	BackendPath:  "/api/apitests/pipeline/<pipelineID>/task/<taskID>/logs",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	ResponseType: apistructs.DashboardSpotLogResponse{},
	Doc:          "summary: 查询测试记录的pipeline task 日志",
}
View Source
var QA_SONAR_GET_CREDENTIAL = apis.ApiSpec{
	Path:         "/api/qa/actions/get-sonar-credential",
	BackendPath:  "/api/qa/actions/get-sonar-credential",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       http.MethodGet,
	CheckLogin:   false,
	CheckToken:   true,
	Doc:          "summary: action 获取 sonar credential",
	ResponseType: apistructs.SonarCredentialGetResponse{},
}
View Source
var QA_SONAR_ISSUES = apis.ApiSpec{
	Path:         "/api/qa",
	BackendPath:  "/api/qa",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	Doc:          "summary: 获取 sonar issues",
	ResponseType: apistructs.SonarIssueResponse{},
	IsOpenAPI:    true,
}
View Source
var QA_SONAR_METRIC_RULES_BATCH_DELETE = apis.ApiSpec{
	Path:        "/api/sonar-metric-rules/actions/batch-delete",
	BackendPath: "/api/sonar-metric-rules/actions/batch-delete",
	Host:        "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:      "http",
	Method:      "DELETE",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 批量删除 sonar 扫描规则",
	RequestType: apistructs.SonarMetricRulesBatchDeleteRequest{},
	IsOpenAPI:   true,
}
View Source
var QA_SONAR_METRIC_RULES_BATCH_INSERT = apis.ApiSpec{
	Path:        "/api/sonar-metric-rules/actions/batch-insert",
	BackendPath: "/api/sonar-metric-rules/actions/batch-insert",
	Host:        "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:      "http",
	Method:      "POST",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 批量插入 sonar 扫描规则",
	RequestType: apistructs.SonarMetricRulesBatchInsertRequest{},
	IsOpenAPI:   true,
}
View Source
var QA_SONAR_METRIC_RULES_DELETE = apis.ApiSpec{
	Path:        "/api/sonar-metric-rules/<id>",
	BackendPath: "/api/sonar-metric-rules/<id>",
	Host:        "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:      "http",
	Method:      "DELETE",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 删除 sonar 扫描规则",
	RequestType: apistructs.SonarMetricRulesDeleteRequest{},
	IsOpenAPI:   true,
}
View Source
var QA_SONAR_METRIC_RULES_GET = apis.ApiSpec{
	Path:        "/api/sonar-metric-rules/<id>",
	BackendPath: "/api/sonar-metric-rules/<id>",
	Host:        "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:      "http",
	Method:      "GET",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 查询 sonar 扫描规则",
	IsOpenAPI:   true,
}
View Source
var QA_SONAR_METRIC_RULES_PAGING = apis.ApiSpec{
	Path:        "/api/sonar-metric-rules",
	BackendPath: "/api/sonar-metric-rules",
	Host:        "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:      "http",
	Method:      "GET",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 分页查询 sonar 扫描规则",
	RequestType: apistructs.SonarMetricRulesPagingRequest{},
	IsOpenAPI:   true,
}
View Source
var QA_SONAR_METRIC_RULES_QUERY_DEFINITION = apis.ApiSpec{
	Path:        "/api/sonar-metric-rules/actions/query-metric-definition",
	BackendPath: "/api/sonar-metric-rules/actions/query-metric-definition",
	Host:        "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:      "http",
	Method:      "GET",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 查询 sonar 还未添加的扫描规则",
	RequestType: apistructs.SonarMetricRulesDefinitionListRequest{},
	IsOpenAPI:   true,
}
View Source
var QA_SONAR_METRIC_RULES_QUERY_LIST = apis.ApiSpec{
	Path:        "/api/sonar-metric-rules/actions/query-list",
	BackendPath: "/api/sonar-metric-rules/actions/query-list",
	Host:        "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:      "http",
	Method:      "GET",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 查询 sonar 的配置列表",
	RequestType: apistructs.SonarMetricRulesListRequest{},
	IsOpenAPI:   true,
}
View Source
var QA_SONAR_METRIC_RULES_UPDATE = apis.ApiSpec{
	Path:        "/api/sonar-metric-rules/<id>",
	BackendPath: "/api/sonar-metric-rules/<id>",
	Host:        "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:      "http",
	Method:      "PUT",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 更新 sonar 扫描规则",
	RequestType: apistructs.SonarMetricRulesUpdateRequest{},
	IsOpenAPI:   true,
}
View Source
var QA_TESTENV_CREATE = apis.ApiSpec{
	Path:         "/api/testenv",
	BackendPath:  "/api/testenv",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "POST",
	ResponseType: apistructs.APITestEnvCreateRequest{},
	CheckLogin:   true,
	CheckToken:   true,
	IsOpenAPI:    true,
	Doc:          `summary: 更新项目环境变量信息`,
	Audit: func(ctx *spec.AuditContext) error {
		var req apistructs.APITestEnvCreateRequest
		if err := ctx.BindRequestData(&req); err != nil {
			return err
		}
		project, err := ctx.GetProject(req.EnvID)
		if err != nil {
			return err
		}
		return ctx.CreateAudit(&apistructs.Audit{
			ScopeType:    apistructs.ProjectScope,
			ScopeID:      project.ID,
			TemplateName: apistructs.QaTestEnvCreateTemplate,
			Context: map[string]interface{}{
				"projectName": project.Name,
				"testEnvName": req.Name,
			},
		})
	},
}
View Source
var QA_TESTENV_DELETE = apis.ApiSpec{
	Path:         "/api/testenv/<id>",
	BackendPath:  "/api/testenv/<id>",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "DELETE",
	CheckLogin:   true,
	CheckToken:   true,
	IsOpenAPI:    true,
	ResponseType: apistructs.APITestEnvDeleteResponse{},
	Doc:          `summary: 更新项目环境变量信息`,
	Audit: func(ctx *spec.AuditContext) error {
		var resp apistructs.APITestEnvDeleteResponse
		if err := ctx.BindResponseData(&resp); err != nil {
			return err
		}
		project, err := ctx.GetProject(resp.Data.EnvID)
		if err != nil {
			return err
		}
		return ctx.CreateAudit(&apistructs.Audit{
			ScopeType:    apistructs.ProjectScope,
			ScopeID:      project.ID,
			TemplateName: apistructs.QaTestEnvDeleteTemplate,
			Context: map[string]interface{}{
				"projectName": project.Name,
				"testEnvName": resp.Data.Name,
			},
		})
	},
}
View Source
var QA_TESTENV_GET = apis.ApiSpec{
	Path:         "/api/testenv/<id>",
	BackendPath:  "/api/testenv/<id>",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	ResponseType: apistructs.APITestEnvGetResponse{},
	IsOpenAPI:    true,
	Doc:          "summary: 获取API项目测试的环境变量信息",
}
View Source
var QA_TESTENV_LIST = apis.ApiSpec{
	Path:         "/api/testenv/actions/list-envs",
	BackendPath:  "/api/testenv/actions/list-envs",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	Doc:          "summary: 获取项目API测试环境变量列表",
	ResponseType: apistructs.APITestEnvListResponse{},
	IsOpenAPI:    true,
}
View Source
var QA_TESTENV_UPDATE = apis.ApiSpec{
	Path:         "/api/testenv/<id>",
	BackendPath:  "/api/testenv/<id>",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "PUT",
	CheckLogin:   true,
	CheckToken:   true,
	RequestType:  apistructs.APITestEnvUpdateRequest{},
	ResponseType: apistructs.APITestEnvUpdateResponse{},
	IsOpenAPI:    true,
	Doc:          `更新项目环境变量信息`,
	Audit: func(ctx *spec.AuditContext) error {
		var req apistructs.APITestEnvUpdateRequest
		if err := ctx.BindRequestData(&req); err != nil {
			return err
		}
		project, err := ctx.GetProject(req.EnvID)
		if err != nil {
			return err
		}
		return ctx.CreateAudit(&apistructs.Audit{
			ScopeType:    apistructs.ProjectScope,
			ScopeID:      project.ID,
			TemplateName: apistructs.QaTestEnvUpdateTemplate,
			Context: map[string]interface{}{
				"projectName": project.Name,
				"testEnvName": req.Name,
			},
		})
	},
}
View Source
var QA_TESTPLAN_PIPELINE_DETAIL = apis.ApiSpec{
	Path:         "/api/apitests/pipeline/<pipelineId>",
	BackendPath:  "/api/apitests/pipeline/<pipelineId>",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	ResponseType: apistructs.PipelineDetailResponse{},
	Doc:          "summary: 查询测试记录的pipeline详情",
}
View Source
var QA_TEST_CALLBACK = apis.ApiSpec{
	Path:         "/api/qa/actions/test-callback",
	BackendPath:  "/api/qa/actions/test-callback",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "POST",
	CheckLogin:   true,
	CheckToken:   true,
	Doc:          "summary: 测试结果回调",
	RequestType:  apistructs.TestCallBackRequest{},
	ResponseType: apistructs.TestCallBackResponse{},
	IsOpenAPI:    true,
}
View Source
var QA_TEST_DETAIL = apis.ApiSpec{
	Path:         "/api/qa/test/<id>",
	BackendPath:  "/api/qa/test/<id>",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	Doc:          "summary: 获取测试详情",
	ResponseType: apistructs.TestDetailRecordResponse{},
	IsOpenAPI:    true,
}
View Source
var QA_TEST_LIST = apis.ApiSpec{
	Path:         "/api/qa/actions/test-list",
	BackendPath:  "/api/qa/actions/test-list",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	Doc:          "summary: 获取测试列表",
	ResponseType: apistructs.TestRecordsResponse{},
	IsOpenAPI:    true,
}
View Source
var QA_TEST_TYPES = apis.ApiSpec{
	Path:         "/api/qa/actions/all-test-type",
	BackendPath:  "/api/qa/actions/all-test-type",
	Host:         "qa.marathon.l4lb.thisdcos.directory:3033",
	Scheme:       "http",
	Method:       "GET",
	CheckLogin:   true,
	CheckToken:   true,
	Doc:          "summary: 获取测试类型",
	ResponseType: apistructs.TestTypesResponse{},
	IsOpenAPI:    true,
}
View Source
var SPOT_APITESTS_LOGS = apis.ApiSpec{
	Path:        "/api/apitests/logs",
	BackendPath: "/api/logs",
	Host:        "monitor.marathon.l4lb.thisdcos.directory:7096",
	Scheme:      "http",
	Method:      "GET",
	CheckLogin:  true,
	CheckToken:  true,
	Doc:         "summary: 查询 apitest 的日志内容",
}
View Source
var SPOT_APITESTS_LOGS_DOWNLOAD = apis.ApiSpec{
	Path:        "/api/apitests/logs/actions/download",
	BackendPath: "/api/logs/actions/download",
	Host:        "monitor.marathon.l4lb.thisdcos.directory:7096",
	Scheme:      "http",
	Method:      "GET",
	CheckLogin:  true,
	CheckToken:  true,
	ChunkAPI:    true,
	Doc:         "summary: Apitests 下载日志内容",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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