Expose queryconvert endpoint (#93656)

This commit is contained in:
Andres Martinez Gotor
2024-09-25 15:10:19 +02:00
committed by GitHub
parent 177965704d
commit 225600a08b
6 changed files with 259 additions and 2 deletions
+16 -2
View File
@@ -2,6 +2,7 @@ package dashboards
import (
"context"
"fmt"
"testing"
"github.com/stretchr/testify/require"
@@ -42,7 +43,7 @@ func TestIntegrationTestDatasource(t *testing.T) {
t.Run("Check discovery client", func(t *testing.T) {
disco := helper.GetGroupVersionInfoJSON("testdata.datasource.grafana.app")
// fmt.Printf("%s", disco)
fmt.Printf("%s", disco)
require.JSONEq(t, `[
{
@@ -103,7 +104,20 @@ func TestIntegrationTestDatasource(t *testing.T) {
"get",
"list"
]
}
},
{
"resource": "queryconvert",
"responseKind": {
"group": "",
"kind": "QueryDataRequest",
"version": ""
},
"scope": "Namespaced",
"singularResource": "queryconvert",
"verbs": [
"create"
]
}
],
"version": "v0alpha1"
}