Support for secure socks proxy (#1650)

* Enables PDC for zabbix datasource

* 4.4.0

* Updating CHANGELOG

* Updating CHANGELOG

* Updating CHANGELOG
This commit is contained in:
lean.dev
2023-07-25 12:54:48 -03:00
committed by GitHub
parent 445f3fa173
commit 8205f7aaf8
9 changed files with 423 additions and 79 deletions

View File

@@ -1,6 +1,7 @@
package datasource
import (
"context"
"testing"
"github.com/grafana/grafana-plugin-sdk-go/backend"
@@ -58,7 +59,7 @@ func TestZabbixBackend_getCachedDatasource(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
ds := NewZabbixDatasource()
got, _ := ds.getDSInstance(tt.pluginContext)
got, _ := ds.getDSInstance(context.Background(), tt.pluginContext)
// Only checking the URL, being the easiest value to, and guarantee equality for
assert.Equal(t, tt.want.zabbix.GetAPI().GetUrl().String(), got.zabbix.GetAPI().GetUrl().String())