mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
elasticsearch: more tests (#64971)
* elasticsearch: more tests * fix issue with uppercase refID on linux --------- Co-authored-by: Todd Treece <todd.treece@grafana.com>
This commit is contained in:
@@ -131,6 +131,10 @@ func TestResponseSnapshots(t *testing.T) {
|
||||
{name: "simple metric test", path: "metric_simple"},
|
||||
{name: "complex metric test", path: "metric_complex"},
|
||||
{name: "multi metric test", path: "metric_multi"},
|
||||
{name: "metric avg test", path: "metric_avg"},
|
||||
{name: "metric percentiles test", path: "metric_percentiles"},
|
||||
{name: "metric top_metrics test", path: "metric_top_metrics"},
|
||||
{name: "metric extended_stats test", path: "metric_extended_stats"},
|
||||
{name: "raw data test", path: "raw_data"},
|
||||
{name: "logs test", path: "logs"},
|
||||
}
|
||||
@@ -161,7 +165,7 @@ func TestResponseSnapshots(t *testing.T) {
|
||||
require.Len(t, result.response.Responses, expectedResponseCount)
|
||||
|
||||
for refId, dataRes := range result.response.Responses {
|
||||
goldenFileName := fmt.Sprintf("%v.%v.golden", test.path, refId)
|
||||
goldenFileName := fmt.Sprintf("%v.%v.golden", test.path, strings.ToLower(refId))
|
||||
// we make a copy of the variable to avoid this linter-warning:
|
||||
// "G601: Implicit memory aliasing in for loop."
|
||||
dataResCopy := dataRes
|
||||
|
||||
Reference in New Issue
Block a user