File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,9 @@ func (s *DataSourceInstanceSettings) ProxyOptions(clientCfg *proxy.ClientCfg) (*
252
252
return nil , nil
253
253
}
254
254
255
+ opts .DatasourceName = s .Name
256
+ opts .DatasourceType = s .Type
257
+
255
258
opts .Auth = & proxy.AuthOptions {}
256
259
opts .Timeouts = & proxy.TimeoutOptions {}
257
260
if v , exists := dat ["secureSocksProxyUsername" ]; exists {
Original file line number Diff line number Diff line change @@ -300,7 +300,9 @@ func TestProxyOptions(t *testing.T) {
300
300
Auth : & proxy.AuthOptions {
301
301
Username : "uid1" ,
302
302
},
303
- Timeouts : & proxy .DefaultTimeoutOptions ,
303
+ Timeouts : & proxy .DefaultTimeoutOptions ,
304
+ DatasourceName : "ds1" ,
305
+ DatasourceType : "example-datasource" ,
304
306
},
305
307
},
306
308
{
@@ -322,7 +324,9 @@ func TestProxyOptions(t *testing.T) {
322
324
Username : "username" ,
323
325
Password : "pswd" ,
324
326
},
325
- Timeouts : & proxy .DefaultTimeoutOptions ,
327
+ Timeouts : & proxy .DefaultTimeoutOptions ,
328
+ DatasourceName : "ds1" ,
329
+ DatasourceType : "example-datasource" ,
326
330
},
327
331
},
328
332
{
@@ -344,6 +348,8 @@ func TestProxyOptions(t *testing.T) {
344
348
KeepAlive : time .Second * 15 ,
345
349
Timeout : time .Second * 10 ,
346
350
},
351
+ DatasourceName : "ds1" ,
352
+ DatasourceType : "example-datasource" ,
347
353
},
348
354
},
349
355
{
@@ -379,6 +385,8 @@ func TestProxyOptions(t *testing.T) {
379
385
ProxyAddress : "10.1.2.3" ,
380
386
ServerName : "grafana-server" ,
381
387
},
388
+ DatasourceName : "ds1" ,
389
+ DatasourceType : "example-datasource" ,
382
390
},
383
391
},
384
392
}
You can’t perform that action at this time.
0 commit comments