Documentation
¶
Index ¶
- Constants
- func CreateSimpleClient(t *testing.T, cfgName *string, container testcontainers.Container) (service.GrafanaService, *viper.Viper)
- func InitOrganizations(t *testing.T, enterprise bool) (testcontainers.Container, func() error)
- func InitTest(t *testing.T, cfgName *string, envProp map[string]string) (service.GrafanaService, *viper.Viper, testcontainers.Container, func() error)
- func SetupCloudFunction(params []string) (context.Context, context.CancelFunc, service.GrafanaService, error)
Constants ¶
View Source
const ( GrafanaTestVersionEnv = "GRAFANA_TEST_VERSION" // #nosec G101 EnableTokenTestsEnv = "TEST_TOKEN_CONFIG" )
View Source
const ( OrgNameOverride = "GDG_CONTEXTS__TESTING__ORGANIZATION_NAME" EnableNestedBehavior = "GDG_CONTEXTS__TESTING__DASHBOARD_SETTINGS__NESTED_FOLDERS" IgnoreDashFilters = "GDG_CONTEXTS__TESTING__DASHBOARD_SETTINGS__IGNORE_FILTERS" )
Variables ¶
This section is empty.
Functions ¶
func CreateSimpleClient ¶
func CreateSimpleClient(t *testing.T, cfgName *string, container testcontainers.Container) (service.GrafanaService, *viper.Viper)
func InitOrganizations ¶
InitOrganizations will upload all known organizations and return the grafana container object
func SetupCloudFunction ¶
func SetupCloudFunction(params []string) (context.Context, context.CancelFunc, service.GrafanaService, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.