Add error source (#1954)

Fixes  #1879
This commit is contained in:
Zoltán Bedi
2025-02-04 12:40:33 +01:00
committed by GitHub
parent 525217ddad
commit c2ffd31b1a
10 changed files with 164 additions and 21 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"testing"
"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/stretchr/testify/assert"
)
@@ -50,7 +51,7 @@ func TestZabbixAPI(t *testing.T) {
mockApiResponse: `{"result":"sampleResult"}`,
mockApiResponseCode: 200,
expectedResult: "",
expectedError: ErrNotAuthenticated,
expectedError: backend.DownstreamError(ErrNotAuthenticated),
},
}