scraperinttest

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

README

scraperinttest

This package is intended to be a temporary workspace for extracting common functionality from scraper integration tests. Once stabilized, this code can likely move to pdatatest or its sub-packages pmetrictest, etc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunScript

func RunScript(script []string) testcontainers.ContainerHook

Types

type ContainerInfo

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

func (ContainerInfo) Host

func (c ContainerInfo) Host(t *testing.T) string

func (ContainerInfo) MappedPort

func (c ContainerInfo) MappedPort(t *testing.T, port string) string

type IntegrationTest

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

func NewIntegrationTest

func NewIntegrationTest(f receiver.Factory, opts ...TestOption) *IntegrationTest

func (*IntegrationTest) Run

func (it *IntegrationTest) Run(t *testing.T)

type TestOption

type TestOption func(*IntegrationTest)

func WithCompareOptions

func WithCompareOptions(opts ...pmetrictest.CompareMetricsOption) TestOption

func WithCompareTimeout

func WithCompareTimeout(t time.Duration) TestOption

func WithContainerRequest

func WithContainerRequest(cr testcontainers.ContainerRequest) TestOption

func WithCreateContainerTimeout

func WithCreateContainerTimeout(t time.Duration) TestOption

func WithCustomConfig

func WithCustomConfig(c customConfigFunc) TestOption

func WithDumpActualOnFailure

func WithDumpActualOnFailure() TestOption

func WithExpectedFile

func WithExpectedFile(f string) TestOption

Jump to

Keyboard shortcuts

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