Tests: Require GrafanaOpts when creating Grafana dir (#97825)

I don't see a reason to accept a variable amount here, as we never use it. The only use I can see is optionally
including the opts, which isn't necessary and only complicates matters when an empty struct would do just as well: the
options are all created to be assumed zero-values already, in case a test doesn't need that option set.
This commit is contained in:
Mariell Hoversholm
2024-12-12 15:13:06 +01:00
committed by GitHub
parent 47e58d5903
commit e6a6fc6f74
3 changed files with 134 additions and 134 deletions

View File

@ -124,7 +124,7 @@ func TestValidatePluginRepoConfig(t *testing.T) {
}
// GrafanaComApiUrl is set to the default path https://grafana.com/api
grafDir, cfgPath := testinfra.CreateGrafDir(t)
grafDir, cfgPath := testinfra.CreateGrafDir(t, testinfra.GrafanaOpts{})
// overriding the GrafanaComApiUrl to https://grafana-dev.com
c, err := commandstest.NewCliContext(map[string]string{