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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user