TestData: Some simple small test data and first draft of what's new in v8 demo dashboard (#34731) (#34736)

* TestData: More test data

* Added v8 demo dashboard

(cherry picked from commit 6fb0560a84)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
Grot (@grafanabot)
2021-05-26 08:36:01 -04:00
committed by GitHub
parent 771013904a
commit ebe20d1998
9 changed files with 3111 additions and 59 deletions
+1 -18
View File
@@ -22,24 +22,7 @@ func TestCSVFileScenario(t *testing.T) {
}
t.Run("loadCsvFile", func(t *testing.T) {
files := []string{"population_by_state.csv", "city_stats.csv"}
for _, name := range files {
t.Run("Should load file and convert to DataFrame", func(t *testing.T) {
frame, err := p.loadCsvFile(name)
require.NoError(t, err)
require.NotNil(t, frame)
dr := &backend.DataResponse{
Frames: data.Frames{frame},
}
err = experimental.CheckGoldenDataResponse(
filepath.Join("testdata", name+".golden.txt"), dr, true,
)
require.NoError(t, err)
})
}
files = []string{"simple", "mixed"}
files := []string{"simple", "mixed"}
for _, name := range files {
t.Run("Should load CSV Text: "+name, func(t *testing.T) {
filePath := filepath.Join("testdata", name+".csv")