Chore: use any rather than interface{} (#74066)
This commit is contained in:
@@ -55,7 +55,7 @@ func TestPatchLibraryElement(t *testing.T) {
|
||||
Kind: int64(model.PanelElement),
|
||||
Type: "graph",
|
||||
Description: "An updated description",
|
||||
Model: map[string]interface{}{
|
||||
Model: map[string]any{
|
||||
"datasource": "${DS_GDEV-TESTDATA}",
|
||||
"description": "An updated description",
|
||||
"id": float64(1),
|
||||
@@ -219,7 +219,7 @@ func TestPatchLibraryElement(t *testing.T) {
|
||||
var result = validateAndUnMarshalResponse(t, resp)
|
||||
sc.initialResult.Result.Type = "graph"
|
||||
sc.initialResult.Result.Description = "New description"
|
||||
sc.initialResult.Result.Model = map[string]interface{}{
|
||||
sc.initialResult.Result.Model = map[string]any{
|
||||
"title": "New Model Title",
|
||||
"name": "New Model Name",
|
||||
"type": "graph",
|
||||
@@ -248,7 +248,7 @@ func TestPatchLibraryElement(t *testing.T) {
|
||||
var result = validateAndUnMarshalResponse(t, resp)
|
||||
sc.initialResult.Result.Type = "text"
|
||||
sc.initialResult.Result.Description = "New description"
|
||||
sc.initialResult.Result.Model = map[string]interface{}{
|
||||
sc.initialResult.Result.Model = map[string]any{
|
||||
"type": "text",
|
||||
"description": "New description",
|
||||
}
|
||||
@@ -275,7 +275,7 @@ func TestPatchLibraryElement(t *testing.T) {
|
||||
var result = validateAndUnMarshalResponse(t, resp)
|
||||
sc.initialResult.Result.Type = "graph"
|
||||
sc.initialResult.Result.Description = "A description"
|
||||
sc.initialResult.Result.Model = map[string]interface{}{
|
||||
sc.initialResult.Result.Model = map[string]any{
|
||||
"type": "graph",
|
||||
"description": "A description",
|
||||
}
|
||||
@@ -386,7 +386,7 @@ func TestPatchLibraryElement(t *testing.T) {
|
||||
sc.initialResult.Result.Type = "text"
|
||||
sc.initialResult.Result.Kind = int64(model.PanelElement)
|
||||
sc.initialResult.Result.Description = "A description"
|
||||
sc.initialResult.Result.Model = map[string]interface{}{
|
||||
sc.initialResult.Result.Model = map[string]any{
|
||||
"datasource": "${DS_GDEV-TESTDATA}",
|
||||
"id": float64(1),
|
||||
"title": "Text - Library Panel",
|
||||
|
||||
Reference in New Issue
Block a user