Documentation ¶
Index ¶
- type Container
- func (c *Container) Build(buildargs ...string) error
- func (c *Container) Run(runargs ...string) error
- func (c *Container) RunContext(ctx context.Context, runargs ...string) error
- func (c *Container) Start(runargs ...string) error
- func (c *Container) StartContext(ctx context.Context, runargs ...string) error
- func (c *Container) Wait() error
- type TelemetryTest
- type TelemetryTester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
Container represents a running container
func NewContainer ¶
NewContainer returns a new container testing object
func (*Container) RunContext ¶
RunContext executes docker run with a context object
func (*Container) StartContext ¶
StartContext executes docker start with a context object
type TelemetryTest ¶
type TelemetryTest interface { // Build the container used for testing. Returns the imageID // of the container image or the empty string to not filter // telemetry to containers running the built image. BuildContainer(t *testing.T) string // Run the container used for testing. RunContainer(t *testing.T) // create and return telemetry subscription to use for the test CreateSubscription(t *testing.T) *telemetryAPI.Subscription // return true to keep going, false if done HandleTelemetryEvent(t *testing.T, te *telemetryAPI.ReceivedTelemetryEvent) bool }
TelemetryTest should be implemented by tests of the telemtry service
type TelemetryTester ¶
type TelemetryTester struct {
// contains filtered or unexported fields
}
TelemetryTester is used for
func NewTelemetryTester ¶
func NewTelemetryTester(tt TelemetryTest) *TelemetryTester
NewTelemetryTester returns a pointer to a new TelemtryTester
func (*TelemetryTester) RunTest ¶
func (tt *TelemetryTester) RunTest(t *testing.T)
RunTest runs the TelemetryTester's test
Click to show internal directories.
Click to hide internal directories.