Documentation ¶
Index ¶
- func CreateGrafDir(t *testing.T, opts ...GrafanaOpts) (string, string)
- func CreateUser(t *testing.T, store *sqlstore.SQLStore, cmd user.CreateUserCommand) *user.User
- func SQLiteIntegrationTest(t *testing.T)
- func SetUpDatabase(t *testing.T, grafDir string) *sqlstore.SQLStore
- func StartGrafana(t *testing.T, grafDir, cfgPath string) (string, *sqlstore.SQLStore)
- func StartGrafanaEnv(t *testing.T, grafDir, cfgPath string) (string, *server.TestEnv)
- type GrafanaOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGrafDir ¶
func CreateGrafDir(t *testing.T, opts ...GrafanaOpts) (string, string)
CreateGrafDir creates the Grafana directory. The log by default is muted in the regression test, to activate it, pass option EnableLog = true
func CreateUser ¶
func SQLiteIntegrationTest ¶
func SetUpDatabase ¶
SetUpDatabase sets up the Grafana database.
func StartGrafana ¶
StartGrafana starts a Grafana server. The server address is returned.
Types ¶
type GrafanaOpts ¶
type GrafanaOpts struct { EnableCSP bool EnableFeatureToggles []string NGAlertAdminConfigPollInterval time.Duration NGAlertAlertmanagerConfigPollInterval time.Duration AnonymousUserRole org.RoleType EnableQuota bool DashboardOrgQuota *int64 DisableAnonymous bool CatalogAppEnabled bool ViewersCanEdit bool PluginAdminEnabled bool PluginAdminExternalManageEnabled bool AppModeProduction bool DisableLegacyAlerting bool EnableUnifiedAlerting bool UnifiedAlertingDisabledOrgs []int64 EnableLog bool GRPCServerAddress string QueryRetries int64 AuthBrokerEnabled bool }
Click to show internal directories.
Click to hide internal directories.