uri

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = "URI"
)

Name defined the name of the plugin

Functions

func Load

func Load() (string, test.TestFetcherFactory)

Load returns the name and factory which are needed to register the TestFetcher.

func New

func New() test.TestFetcher

New initializes the TestFetcher object

Types

type FetchParameters

type FetchParameters struct {
	TestName string
	// URI is the string pointing to where the test definition is stored. At
	// the moment only file://, https:// and http:// are supported.
	URI *xjson.URL
}

FetchParameters contains the parameters necessary to fetch tests. This structure is populated from a JSON blob.

type URI

type URI struct {
}

URI implements contest.TestFetcher interface, returning dummy test fetcher

func (*URI) Fetch

func (tf *URI) Fetch(ctx xcontext.Context, params interface{}) (string, []*test.TestStepDescriptor, error)

Fetch returns the information necessary to build a Test object. The returned values are: * Name of the test * list of step definitions * an error if any

func (URI) ValidateFetchParameters

func (tf URI) ValidateFetchParameters(_ xcontext.Context, params []byte) (interface{}, error)

ValidateFetchParameters performs sanity checks on the fields of the parameters that will be passed to Fetch.

Jump to

Keyboard shortcuts

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