Skip to content

Commit

Permalink
fix: Harvest should log errors when grafana import fails
Browse files Browse the repository at this point in the history
Thanks to Chris Gautcher (@gautcher) for raising.
  • Loading branch information
cgrinds committed Jun 3, 2024
1 parent 78975c0 commit 0a82c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/test/dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestGrafanaAndPrometheusAreConfigured(t *testing.T) {
cDotFolder = "Harvest-" + version.VERSION + "-cDOT"
sevenModeFolder = "Harvest-" + version.VERSION + "-7mode"
log.Info().Str("cMode", cDotFolder).Str("7mode", sevenModeFolder).Msg("Folder name details")
status, out := new(grafana.Mgr).Import("") // send empty so that it will import all dashboards
status, out := new(grafana.Mgr).Import()
if !status {
t.Errorf("Grafana import operation failed out=%s", out)
}
Expand Down

0 comments on commit 0a82c24

Please sign in to comment.