Skip to content

Commit 36adfa0

Browse files
peekjef72amotl
authored andcommitted
dsquery: change smartquery args
1 parent da17550 commit 36adfa0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/elements/test_datasource_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import unittest
2+
23
from test.elements.test_datasource_fixtures import (
34
DATAFRAME_RESPONSE_HEALTH_PROMETHEUS,
45
ELASTICSEARCH_DATASOURCE,
@@ -287,7 +288,7 @@ def test_query_with_datasource_influxdb_influxql(self, m):
287288
json={},
288289
)
289290
datasource = INFLUXDB1_DATASOURCE.copy()
290-
_ = self.grafana.datasource.smartquery(datasource, "SHOW RETENTION POLICIES on _internal", store="foobar")
291+
_ = self.grafana.datasource.smartquery(datasource, "SHOW RETENTION POLICIES on _internal", attrs={ "database": "foobar"})
291292
# TODO: No response payload yet.
292293

293294
@requests_mock.Mocker()
@@ -298,7 +299,7 @@ def test_query_with_datasource_elasticsearch(self, m):
298299
)
299300
datasource = ELASTICSEARCH_DATASOURCE.copy()
300301
_ = self.grafana.datasource.smartquery(
301-
datasource, "url:///datasources/proxy/44/bazqux/_mapping", store="bazqux"
302+
datasource, "url:///datasources/proxy/44/bazqux/_mapping"
302303
)
303304
# TODO: No response payload yet.
304305

0 commit comments

Comments
 (0)