testresults

package
v6.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResourceAreaId, _ = uuid.Parse("c83eaf52-edf3-4034-ae11-17d38f25404c")

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	CompressionType *string     `json:"compressionType,omitempty"`
	FileName        *string     `json:"fileName,omitempty"`
	Stream          interface{} `json:"stream,omitempty"`
}

type Client

type Client interface {
	// [Preview API] Get SAS Uri of a test results attachment
	GetTestLogStoreEndpointDetailsForResultLog(context.Context, GetTestLogStoreEndpointDetailsForResultLogArgs) (*test.TestLogStoreEndpointDetails, error)
	// [Preview API] Get SAS Uri of a test run attachment
	GetTestLogStoreEndpointDetailsForRunLog(context.Context, GetTestLogStoreEndpointDetailsForRunLogArgs) (*test.TestLogStoreEndpointDetails, error)
	// [Preview API] Get SAS Uri of a test subresults attachment
	GetTestLogStoreEndpointDetailsForSubResultLog(context.Context, GetTestLogStoreEndpointDetailsForSubResultLogArgs) (*test.TestLogStoreEndpointDetails, error)
	// [Preview API] Get list of test result attachments reference
	GetTestResultLogs(context.Context, GetTestResultLogsArgs) (*GetTestResultLogsResponseValue, error)
	// [Preview API] Get list of test run attachments reference
	GetTestRunLogs(context.Context, GetTestRunLogsArgs) (*GetTestRunLogsResponseValue, error)
	// [Preview API] Get list of test subresult attachments reference
	GetTestSubResultLogs(context.Context, GetTestSubResultLogsArgs) (*GetTestSubResultLogsResponseValue, error)
	// [Preview API] Get list of test Result meta data details for corresponding testcasereferenceId
	QueryTestResultsMetaData(context.Context, QueryTestResultsMetaDataArgs) (*[]test.TestResultMetaData, error)
	// [Preview API] Create empty file for a result and Get Sas uri for the file
	TestLogStoreEndpointDetailsForResult(context.Context, TestLogStoreEndpointDetailsForResultArgs) (*test.TestLogStoreEndpointDetails, error)
	// [Preview API] Create empty file for a run and Get Sas uri for the file
	TestLogStoreEndpointDetailsForRun(context.Context, TestLogStoreEndpointDetailsForRunArgs) (*test.TestLogStoreEndpointDetails, error)
	// [Preview API] Update properties of test result meta data
	UpdateTestResultsMetaData(context.Context, UpdateTestResultsMetaDataArgs) (*test.TestResultMetaData, error)
}

func NewClient

func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, error)

type ClientImpl

type ClientImpl struct {
	Client azuredevops.Client
}

func (*ClientImpl) GetTestLogStoreEndpointDetailsForResultLog

func (client *ClientImpl) GetTestLogStoreEndpointDetailsForResultLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForResultLogArgs) (*test.TestLogStoreEndpointDetails, error)

[Preview API] Get SAS Uri of a test results attachment

func (*ClientImpl) GetTestLogStoreEndpointDetailsForRunLog

func (client *ClientImpl) GetTestLogStoreEndpointDetailsForRunLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForRunLogArgs) (*test.TestLogStoreEndpointDetails, error)

[Preview API] Get SAS Uri of a test run attachment

func (*ClientImpl) GetTestLogStoreEndpointDetailsForSubResultLog

func (client *ClientImpl) GetTestLogStoreEndpointDetailsForSubResultLog(ctx context.Context, args GetTestLogStoreEndpointDetailsForSubResultLogArgs) (*test.TestLogStoreEndpointDetails, error)

[Preview API] Get SAS Uri of a test subresults attachment

func (*ClientImpl) GetTestResultLogs

func (client *ClientImpl) GetTestResultLogs(ctx context.Context, args GetTestResultLogsArgs) (*GetTestResultLogsResponseValue, error)

[Preview API] Get list of test result attachments reference

func (*ClientImpl) GetTestRunLogs

func (client *ClientImpl) GetTestRunLogs(ctx context.Context, args GetTestRunLogsArgs) (*GetTestRunLogsResponseValue, error)

[Preview API] Get list of test run attachments reference

func (*ClientImpl) GetTestSubResultLogs

func (client *ClientImpl) GetTestSubResultLogs(ctx context.Context, args GetTestSubResultLogsArgs) (*GetTestSubResultLogsResponseValue, error)

[Preview API] Get list of test subresult attachments reference

func (*ClientImpl) QueryTestResultsMetaData

func (client *ClientImpl) QueryTestResultsMetaData(ctx context.Context, args QueryTestResultsMetaDataArgs) (*[]test.TestResultMetaData, error)

[Preview API] Get list of test Result meta data details for corresponding testcasereferenceId

func (*ClientImpl) TestLogStoreEndpointDetailsForResult

func (client *ClientImpl) TestLogStoreEndpointDetailsForResult(ctx context.Context, args TestLogStoreEndpointDetailsForResultArgs) (*test.TestLogStoreEndpointDetails, error)

[Preview API] Create empty file for a result and Get Sas uri for the file

func (*ClientImpl) TestLogStoreEndpointDetailsForRun

func (client *ClientImpl) TestLogStoreEndpointDetailsForRun(ctx context.Context, args TestLogStoreEndpointDetailsForRunArgs) (*test.TestLogStoreEndpointDetails, error)

[Preview API] Create empty file for a run and Get Sas uri for the file

func (*ClientImpl) UpdateTestResultsMetaData

func (client *ClientImpl) UpdateTestResultsMetaData(ctx context.Context, args UpdateTestResultsMetaDataArgs) (*test.TestResultMetaData, error)

[Preview API] Update properties of test result meta data

type GetTestLogStoreEndpointDetailsForResultLogArgs

type GetTestLogStoreEndpointDetailsForResultLogArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required) Id of the test run that contains result
	RunId *int
	// (required) Id of the test result whose files need to be downloaded
	ResultId *int
	// (required) type of the file
	Type *test.TestLogType
	// (required) filePath for which sas uri is needed
	FilePath *string
}

Arguments for the GetTestLogStoreEndpointDetailsForResultLog function

type GetTestLogStoreEndpointDetailsForRunLogArgs

type GetTestLogStoreEndpointDetailsForRunLogArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required) Id of the test run whose file has to be downloaded
	RunId *int
	// (required) type of the file
	Type *test.TestLogType
	// (required) filePath for which sas uri is needed
	FilePath *string
}

Arguments for the GetTestLogStoreEndpointDetailsForRunLog function

type GetTestLogStoreEndpointDetailsForSubResultLogArgs

type GetTestLogStoreEndpointDetailsForSubResultLogArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required) Id of the test run that contains result
	RunId *int
	// (required) Id of the test result that contains subresult
	ResultId *int
	// (required) Id of the test subresult whose file sas uri is needed
	SubResultId *int
	// (required) type of the file
	Type *test.TestLogType
	// (required) filePath for which sas uri is needed
	FilePath *string
}

Arguments for the GetTestLogStoreEndpointDetailsForSubResultLog function

type GetTestResultLogsArgs

type GetTestResultLogsArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required) Id of the test run that contains the result
	RunId *int
	// (required) Id of the test result
	ResultId *int
	// (required) type of attachments to get
	Type *test.TestLogType
	// (optional) directory path of attachments to get
	DirectoryPath *string
	// (optional) file name prefix to filter the list of attachment
	FileNamePrefix *string
	// (optional) Default is false, set if metadata is needed
	FetchMetaData *bool
	// (optional) Numbe of attachments reference to return
	Top *int
	// (optional) Header to pass the continuationToken
	ContinuationToken *string
}

Arguments for the GetTestResultLogs function

type GetTestResultLogsResponseValue

type GetTestResultLogsResponseValue struct {
	Value             []test.TestLog
	ContinuationToken string
}

Return type for the GetTestResultLogs function

type GetTestRunLogsArgs

type GetTestRunLogsArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required) Id of the test run
	RunId *int
	// (required) type of the attachments to get
	Type *test.TestLogType
	// (optional) directory path for which attachments are needed
	DirectoryPath *string
	// (optional) file name prefix to filter the list of attachment
	FileNamePrefix *string
	// (optional) Default is false, set if metadata is needed
	FetchMetaData *bool
	// (optional) Number of attachments reference to return
	Top *int
	// (optional) Header to pass the continuationToken
	ContinuationToken *string
}

Arguments for the GetTestRunLogs function

type GetTestRunLogsResponseValue

type GetTestRunLogsResponseValue struct {
	Value             []test.TestLog
	ContinuationToken string
}

Return type for the GetTestRunLogs function

type GetTestSubResultLogsArgs

type GetTestSubResultLogsArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required) Id of the test run that contains the results
	RunId *int
	// (required) Id of the test result that contains subresult
	ResultId *int
	// (required) Id of the test subresult
	SubResultId *int
	// (required) type of the attachments to get
	Type *test.TestLogType
	// (optional) directory path of the attachment to get
	DirectoryPath *string
	// (optional) file name prefix to filter the list of attachments
	FileNamePrefix *string
	// (optional) Default is false, set if metadata is needed
	FetchMetaData *bool
	// (optional) Number of attachments reference to return
	Top *int
	// (optional) Header to pass the continuationToken
	ContinuationToken *string
}

Arguments for the GetTestSubResultLogs function

type GetTestSubResultLogsResponseValue

type GetTestSubResultLogsResponseValue struct {
	Value             []test.TestLog
	ContinuationToken string
}

Return type for the GetTestSubResultLogs function

type QueryTestResultsMetaDataArgs

type QueryTestResultsMetaDataArgs struct {
	// (required) TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
	TestCaseReferenceIds *[]string
	// (required) Project ID or project name
	Project *string
	// (optional) Details to include with test results metadata. Default is None. Other values are FlakyIdentifiers.
	DetailsToInclude *test.ResultMetaDataDetails
}

Arguments for the QueryTestResultsMetaData function

type TestLogStoreEndpointDetailsForResultArgs

type TestLogStoreEndpointDetailsForResultArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required) Id of the test run that contains the result
	RunId *int
	// (required) Id of the test results that contains sub result
	ResultId *int
	// (required) Id of the test sub result whose file sas uri is needed
	SubResultId *int
	// (required) file path inside the sub result for which sas uri is needed
	FilePath *string
	// (required) Type of the file for download
	Type *test.TestLogType
}

Arguments for the TestLogStoreEndpointDetailsForResult function

type TestLogStoreEndpointDetailsForRunArgs

type TestLogStoreEndpointDetailsForRunArgs struct {
	// (required) Project ID or project name
	Project *string
	// (required) Id of the run to get endpoint details
	RunId *int
	// (required) Type of operation to perform using sas uri
	TestLogStoreOperationType *test.TestLogStoreOperationType
	// (optional) file path to create an empty file
	FilePath *string
	// (optional) Default is GeneralAttachment, type of empty file to be created
	Type *test.TestLogType
}

Arguments for the TestLogStoreEndpointDetailsForRun function

type UpdateTestResultsMetaDataArgs

type UpdateTestResultsMetaDataArgs struct {
	// (required) TestResultMetaData update input TestResultMetaDataUpdateInput
	TestResultMetaDataUpdateInput *test.TestResultMetaDataUpdateInput
	// (required) Project ID or project name
	Project *string
	// (required) TestCaseReference Id of Test Result to be updated.
	TestCaseReferenceId *int
}

Arguments for the UpdateTestResultsMetaData function

Jump to

Keyboard shortcuts

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