testresult

package
v1.9.22-beta009 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdTestResultGet                   executor.Command = "test_result_get"
	CmdTestResultGetByNameAndTestSuite executor.Command = "test_result_get_by_name_and_test"
	CmdTestResultGetLatestByTestSuite  executor.Command = "test_result_get_latest_by_test_suite"
	CmdTestResultGetLatestByTestSuites executor.Command = "test_result_get_latest_by_test_suites"
	CmdTestResultGetExecutionsTotals   executor.Command = "test_result_get_executions_totals"
	CmdTestResultGetExecutions         executor.Command = "test_result_get_executions"
	CmdTestResultInsert                executor.Command = "test_result_insert"
	CmdTestResultUpdate                executor.Command = "test_result_update"
	CmdTestResultStartExecution        executor.Command = "test_result_start_execution"
	CmdTestResultEndExecution          executor.Command = "test_result_end_execution"
	CmdTestResultDeleteByTestSuite     executor.Command = "test_result_delete_by_test_suite"
	CmdTestResultDeleteAll             executor.Command = "test_result_delete_all"
	CmdTestResultDeleteByTestSuites    executor.Command = "test_result_delete_by_test_suites"
	CmdTestResultGetTestSuiteMetrics   executor.Command = "test_result_get_test_suite_metrics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudRepository

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

func NewCloudRepository

func NewCloudRepository(client cloud.TestKubeCloudAPIClient, apiKey string) *CloudRepository

func (*CloudRepository) DeleteAll

func (r *CloudRepository) DeleteAll(ctx context.Context) error

func (*CloudRepository) DeleteByTestSuite

func (r *CloudRepository) DeleteByTestSuite(ctx context.Context, testSuiteName string) error

func (*CloudRepository) DeleteByTestSuites

func (r *CloudRepository) DeleteByTestSuites(ctx context.Context, testSuiteNames []string) error

func (*CloudRepository) EndExecution

func (r *CloudRepository) EndExecution(ctx context.Context, execution testkube.TestSuiteExecution) error

func (*CloudRepository) Get

func (*CloudRepository) GetByNameAndTestSuite

func (r *CloudRepository) GetByNameAndTestSuite(ctx context.Context, name, testSuiteName string) (testkube.TestSuiteExecution, error)

func (*CloudRepository) GetExecutions

func (r *CloudRepository) GetExecutions(ctx context.Context, filter testresult.Filter) ([]testkube.TestSuiteExecution, error)

func (*CloudRepository) GetExecutionsTotals

func (r *CloudRepository) GetExecutionsTotals(ctx context.Context, filters ...testresult.Filter) (totals testkube.ExecutionsTotals, err error)

func (*CloudRepository) GetLatestByTestSuite

func (r *CloudRepository) GetLatestByTestSuite(ctx context.Context, testSuiteName, sortField string) (testkube.TestSuiteExecution, error)

func (*CloudRepository) GetLatestByTestSuites

func (r *CloudRepository) GetLatestByTestSuites(ctx context.Context, testSuiteNames []string, sortField string) (executions []testkube.TestSuiteExecution, err error)

func (*CloudRepository) GetTestSuiteMetrics

func (r *CloudRepository) GetTestSuiteMetrics(ctx context.Context, name string, limit, last int) (testkube.ExecutionsMetrics, error)

func (*CloudRepository) Insert

func (*CloudRepository) StartExecution

func (r *CloudRepository) StartExecution(ctx context.Context, id string, startTime time.Time) error

func (*CloudRepository) Update

type DeleteAllTestResultsRequest

type DeleteAllTestResultsRequest struct{}

type DeleteAllTestResultsResponse

type DeleteAllTestResultsResponse struct{}

type DeleteByTestSuiteRequest

type DeleteByTestSuiteRequest struct {
	TestSuiteName string `json:"testSuiteName"`
}

type DeleteByTestSuiteResponse

type DeleteByTestSuiteResponse struct{}

type DeleteByTestSuitesRequest

type DeleteByTestSuitesRequest struct {
	TestSuiteNames []string `json:"testSuiteNames"`
}

type DeleteByTestSuitesResponse

type DeleteByTestSuitesResponse struct{}

type EndExecutionRequest

type EndExecutionRequest struct {
	Execution testkube.TestSuiteExecution `json:"execution"`
}

type EndExecutionResponse

type EndExecutionResponse struct{}

type GetByNameAndTestSuiteRequest

type GetByNameAndTestSuiteRequest struct {
	Name          string `json:"name"`
	TestSuiteName string `json:"testSuiteName"`
}

type GetByNameAndTestSuiteResponse

type GetByNameAndTestSuiteResponse struct {
	TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}

type GetExecutionsRequest

type GetExecutionsRequest struct {
	Filter *testresult.FilterImpl `json:"filter"`
}

type GetExecutionsResponse

type GetExecutionsResponse struct {
	TestSuiteExecutions []testkube.TestSuiteExecution `json:"testSuiteExecutions"`
}

type GetExecutionsTotalsRequest

type GetExecutionsTotalsRequest struct {
	Filter []*testresult.FilterImpl `json:"filter"`
}

type GetExecutionsTotalsResponse

type GetExecutionsTotalsResponse struct {
	ExecutionsTotals testkube.ExecutionsTotals `json:"executionsTotals"`
}

type GetLatestByTestSuiteRequest

type GetLatestByTestSuiteRequest struct {
	TestSuiteName string `json:"testSuiteName"`
	SortField     string `json:"sortField"`
}

type GetLatestByTestSuiteResponse

type GetLatestByTestSuiteResponse struct {
	TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}

type GetLatestByTestSuitesRequest

type GetLatestByTestSuitesRequest struct {
	TestSuiteNames []string `json:"testSuiteNames"`
	SortField      string   `json:"sortField"`
}

type GetLatestByTestSuitesResponse

type GetLatestByTestSuitesResponse struct {
	TestSuiteExecutions []testkube.TestSuiteExecution `json:"testSuiteExecutions"`
}

type GetRequest

type GetRequest struct {
	ID string `json:"id"`
}

type GetResponse

type GetResponse struct {
	TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}

type GetTestSuiteMetricsRequest

type GetTestSuiteMetricsRequest struct {
	Name  string `json:"name"`
	Limit int    `json:"limit"`
	Last  int    `json:"last"`
}

type GetTestSuiteMetricsResponse

type GetTestSuiteMetricsResponse struct {
	Metrics testkube.ExecutionsMetrics `json:"metrics"`
}

type InsertRequest

type InsertRequest struct {
	TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}

type InsertResponse

type InsertResponse struct{}

type StartExecutionRequest

type StartExecutionRequest struct {
	ID        string    `json:"id"`
	StartTime time.Time `json:"startTime"`
}

type StartExecutionResponse

type StartExecutionResponse struct {
}

type UpdateRequest

type UpdateRequest struct {
	TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}

type UpdateResponse

type UpdateResponse struct{}

Jump to

Keyboard shortcuts

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