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 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.
Click to show internal directories.
Click to hide internal directories.