test

package
v0.0.0-...-41b1600 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 10 Imported by: 0

README

This package is meant for integration tested related helper functions

Documentation

Index

Constants

View Source
const (
	//Predefined container API keys
	GrafanaAdminUserAPIKey   = "eyJrIjoiUDI4NFg3WFpoNDJXRnJ4RTBZeDMwb2U0WnA2QTBkRmoiLCJuIjoiYWRtaW4iLCJpZCI6MX0="
	GrafanaEditorUserAPIKey  = "eyJrIjoiNjg1MFlVTjhodW5OYWkzVjZsOTNWcURodlA5MmhxZUQiLCJuIjoiZWRpdG9yIiwiaWQiOjF9"
	GrafanaViewerUserAPIKey  = "eyJrIjoiVm00VmdEd1ZqcXVqanFFVkJiVmFCNEx0M29hR2xBSTIiLCJuIjoidmlld2VyIiwiaWQiOjF9"
	GrafanaBasicAuthUsername = "admin"
	GrafanaBasicAuthPassword = "admin"

	//Grafana default container settings
	GrafanaInternalPort = 3000
)

Variables

This section is empty.

Functions

func StartAerospikeTestContainer

func StartAerospikeTestContainer(t *testing.T, ctx context.Context) (testcontainers.Container, *aerospike.ASClient)

func StartGrafanaTestDBContainer

func StartGrafanaTestDBContainer(t *testing.T, ctx context.Context) (testcontainers.Container, string, int)

Starts a grafana container that's already got the above API keys with the default test db source enabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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