Plugins: Standardize Golang enum naming convention (#69449)

* standardize enum pattern

* fix up
This commit is contained in:
Will Browne
2023-06-08 12:21:19 +02:00
committed by GitHub
parent 4db6679460
commit a221e1d226
31 changed files with 308 additions and 306 deletions
@@ -43,7 +43,7 @@ func TestFinder_Find(t *testing.T) {
Primary: plugins.FoundPlugin{
JSONData: plugins.JSONData{
ID: "test-datasource",
Type: plugins.DataSource,
Type: plugins.TypeDataSource,
Name: "Test",
Info: plugins.Info{
Author: plugins.InfoLink{
@@ -57,7 +57,7 @@ func TestFinder_Find(t *testing.T) {
GrafanaVersion: "*",
Plugins: []plugins.Dependency{},
},
State: plugins.AlphaRelease,
State: plugins.ReleaseStateAlpha,
Backend: true,
Executable: "test",
},
@@ -74,7 +74,7 @@ func TestFinder_Find(t *testing.T) {
Primary: plugins.FoundPlugin{
JSONData: plugins.JSONData{
ID: "test-app",
Type: plugins.DataSource,
Type: plugins.TypeDataSource,
Name: "Parent",
Info: plugins.Info{
Author: plugins.InfoLink{
@@ -96,7 +96,7 @@ func TestFinder_Find(t *testing.T) {
{
JSONData: plugins.JSONData{
ID: "test-app",
Type: plugins.DataSource,
Type: plugins.TypeDataSource,
Name: "Child",
Info: plugins.Info{
Author: plugins.InfoLink{
@@ -126,7 +126,7 @@ func TestFinder_Find(t *testing.T) {
Primary: plugins.FoundPlugin{
JSONData: plugins.JSONData{
ID: "test-app",
Type: plugins.App,
Type: plugins.TypeApp,
Name: "Test App",
Info: plugins.Info{
Author: plugins.InfoLink{
@@ -185,7 +185,7 @@ func TestFinder_Find(t *testing.T) {
Primary: plugins.FoundPlugin{
JSONData: plugins.JSONData{
ID: "test-app",
Type: plugins.DataSource,
Type: plugins.TypeDataSource,
Name: "Parent",
Info: plugins.Info{
Author: plugins.InfoLink{
@@ -207,7 +207,7 @@ func TestFinder_Find(t *testing.T) {
{
JSONData: plugins.JSONData{
ID: "test-app",
Type: plugins.DataSource,
Type: plugins.TypeDataSource,
Name: "Child",
Info: plugins.Info{
Author: plugins.InfoLink{
@@ -231,7 +231,7 @@ func TestFinder_Find(t *testing.T) {
Primary: plugins.FoundPlugin{
JSONData: plugins.JSONData{
ID: "test-datasource",
Type: plugins.DataSource,
Type: plugins.TypeDataSource,
Name: "Test",
Info: plugins.Info{
Author: plugins.InfoLink{
@@ -244,7 +244,7 @@ func TestFinder_Find(t *testing.T) {
GrafanaVersion: "*",
Plugins: []plugins.Dependency{},
},
State: plugins.AlphaRelease,
State: plugins.ReleaseStateAlpha,
Backend: true,
},
FS: mustNewStaticFSForTests(t, filepath.Join(testData, "invalid-v1-signature/plugin")),