mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Settings: Rename constants/variables to follow Go naming standards (#28002)
* settings: Rename constants/variables to follow Go naming standards Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
@@ -294,7 +294,7 @@ func (scanner *PluginScanner) loadPlugin(pluginJsonFilePath string) error {
|
||||
break
|
||||
}
|
||||
}
|
||||
if setting.Env != setting.DEV && !allowUnsigned {
|
||||
if setting.Env != setting.Dev && !allowUnsigned {
|
||||
return fmt.Errorf("plugin %q is unsigned", pluginCommon.Id)
|
||||
}
|
||||
scanner.log.Warn("Running an unsigned backend plugin", "pluginID", pluginCommon.Id, "pluginDir", pluginCommon.PluginDir)
|
||||
|
||||
@@ -29,7 +29,7 @@ func TestPluginManager_Init(t *testing.T) {
|
||||
setting.StaticRootPath, err = filepath.Abs("../../public/")
|
||||
require.NoError(t, err)
|
||||
setting.Raw = ini.Empty()
|
||||
setting.Env = setting.PROD
|
||||
setting.Env = setting.Prod
|
||||
|
||||
t.Run("Base case", func(t *testing.T) {
|
||||
pm := &PluginManager{
|
||||
|
||||
Reference in New Issue
Block a user