Chore: Add app URL to the plugin config (#77455)

This commit is contained in:
Andres Martinez Gotor
2023-11-02 13:26:16 +01:00
committed by GitHub
parent 34eb29c3bf
commit 00a596b2e0
4 changed files with 19 additions and 1 deletions
+11
View File
@@ -500,3 +500,14 @@ func TestService_GetConfigMap_featureToggles(t *testing.T) {
}
})
}
func TestService_GetConfigMap_appURL(t *testing.T) {
t.Run("Uses the configured app URL", func(t *testing.T) {
s := &Service{
cfg: &config.Cfg{
GrafanaAppURL: "https://myorg.com/",
},
}
require.Equal(t, map[string]string{"GF_APP_URL": "https://myorg.com/"}, s.GetConfigMap(context.Background(), "", nil))
})
}