e2e

package
v0.3.5-beta Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateReplayDevices

func CreateReplayDevices(
	t *testing.T,
	logger zerolog.Logger,
	deviceMessages map[string][][]byte,
	replayDuration time.Duration,
) ([]*loadgen.Device, int)

CreateReplayDevices takes messages grouped by device ID and a replay duration, and returns a slice of loadgen.Device objects configured for replay.

func ReadMessagesFromGCS

func ReadMessagesFromGCS(
	t *testing.T,
	ctx context.Context,
	logger zerolog.Logger,
	gcsClient *storage.Client,
	bucketName string,
) (map[string][][]byte, error)

ReadMessagesFromGCS reads gzipped JSON messages from a GCS bucket. It assumes the messages are in a format from which a deviceID can be extracted and groups them by device ID.

func ReplayGCSMessagesToMQTT

func ReplayGCSMessagesToMQTT(
	t *testing.T,
	ctx context.Context,
	logger zerolog.Logger,
	mqttEmulatorAddress string,
	devices []*loadgen.Device,
	replayDuration time.Duration,
) (int, error)

ReplayGCSMessagesToMQTT takes a slice of pre-configured loadgen.Device objects and publishes their messages to the MQTT emulator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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