Pyroscope: Rename phlare to grafana-pyroscope-datasource (#68859)

This commit is contained in:
Ryan McKinley
2023-06-06 20:09:29 -07:00
committed by GitHub
parent cefcbfa5ed
commit e17ef5e504
42 changed files with 48 additions and 22 deletions

View File

@ -102,6 +102,26 @@ func Test_ReadPluginJSON(t *testing.T) {
},
},
},
{
name: "Phlare<>Pyroscope rebranding -- hardcoded alias",
pluginJSON: func(t *testing.T) io.ReadCloser {
pJSON := `{
"id": "grafana-pyroscope-datasource",
"type": "datasource"
}`
return io.NopCloser(strings.NewReader(pJSON))
},
expected: JSONData{
ID: "grafana-pyroscope-datasource",
Alias: "phlare", // Hardcoded from the parser
Type: "datasource",
Dependencies: Dependencies{
GrafanaDependency: "",
GrafanaVersion: "*",
Plugins: []Dependency{},
},
},
},
}
for _, tt := range tests {