Documentation ¶
Index ¶
- func RunScript(script []string) testcontainers.ContainerHook
- type ContainerInfo
- type IntegrationTest
- type TestOption
- func WithCompareOptions(opts ...pmetrictest.CompareMetricsOption) TestOption
- func WithCompareTimeout(t time.Duration) TestOption
- func WithContainerRequest(cr testcontainers.ContainerRequest) TestOption
- func WithCreateContainerTimeout(t time.Duration) TestOption
- func WithCustomConfig(c customConfigFunc) TestOption
- func WithDumpActualOnFailure() TestOption
- func WithExpectedFile(f string) TestOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContainerInfo ¶
type ContainerInfo struct {
// contains filtered or unexported fields
}
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
Click to show internal directories.
Click to hide internal directories.