testutil

package
v0.1.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunMockHubble = mockHubbleObeserver.Run

Functions

func BoolValueRefs

func BoolValueRefs() (*bool, *bool)

func CheckAttributes

func CheckAttributes(t *testing.T, attrs []*commonV1.KeyValue, encodingOptions common.EncodingOptions) *commonV1.AnyValue

func CheckCounterMetricIsGreaterThen

func CheckCounterMetricIsGreaterThen(value float64, families map[string]*promdto.MetricFamily, metrics ...string) error

func CheckCounterMetricIsZero

func CheckCounterMetricIsZero(families map[string]*promdto.MetricFamily, metrics ...string) error

func CheckPayload

func CheckPayload(t *testing.T, payload *commonV1.AnyValue, encoding string)

func CheckResource

func CheckResource(t *testing.T, res *resourceV1.Resource, hubbleResp *observer.GetFlowsResponse)

func GetFlowSamples

func GetFlowSamples(t *testing.T, path string) []*observer.GetFlowsResponse

func GetMetricFamilies

func GetMetricFamilies(ctx context.Context, t *testing.T, url string) map[string]*promdto.MetricFamily

func IsEOF

func IsEOF(err error) bool

func RunOpenTelemtryCollector

func RunOpenTelemtryCollector(ctx context.Context, t *testing.T, configPath string, fatal chan<- error, extraReceiverFactories ...component.ReceiverFactory)

func WaitForServer

func WaitForServer(ctx context.Context, logf func(format string, args ...interface{}), address string)

Types

type TLSPaths

type TLSPaths = mockHubbleObeserver.TLSPaths

Jump to

Keyboard shortcuts

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