@@ -74,7 +74,7 @@ describe('DataSourceVariable', () => {
74
74
options : [ ] ,
75
75
value : '' ,
76
76
text : '' ,
77
- query : '' ,
77
+ pluginId : '' ,
78
78
} ) ;
79
79
80
80
await lastValueFrom ( variable . validateAndUpdate ( ) ) ;
@@ -92,7 +92,7 @@ describe('DataSourceVariable', () => {
92
92
options : [ ] ,
93
93
value : '' ,
94
94
text : '' ,
95
- query : 'non-existant-datasource' ,
95
+ pluginId : 'non-existant-datasource' ,
96
96
} ) ;
97
97
98
98
await lastValueFrom ( variable . validateAndUpdate ( ) ) ;
@@ -113,7 +113,7 @@ describe('DataSourceVariable', () => {
113
113
options : [ ] ,
114
114
value : '' ,
115
115
text : '' ,
116
- query : 'prometheus' ,
116
+ pluginId : 'prometheus' ,
117
117
} ) ;
118
118
119
119
await lastValueFrom ( variable . validateAndUpdate ( ) ) ;
@@ -142,7 +142,7 @@ describe('DataSourceVariable', () => {
142
142
options : [ ] ,
143
143
value : '' ,
144
144
text : '' ,
145
- query : 'prometheus' ,
145
+ pluginId : 'prometheus' ,
146
146
} ) ;
147
147
148
148
await lastValueFrom ( variable . validateAndUpdate ( ) ) ;
@@ -164,7 +164,7 @@ describe('DataSourceVariable', () => {
164
164
options : [ ] ,
165
165
value : '' ,
166
166
text : '' ,
167
- query : 'prometheus' ,
167
+ pluginId : 'prometheus' ,
168
168
regex : 'slow.*' ,
169
169
} ) ;
170
170
@@ -181,7 +181,7 @@ describe('DataSourceVariable', () => {
181
181
options : [ ] ,
182
182
value : '' ,
183
183
text : '' ,
184
- query : 'prometheus' ,
184
+ pluginId : 'prometheus' ,
185
185
regex : '$variable-1.*' ,
186
186
} ) ;
187
187
@@ -198,7 +198,7 @@ describe('DataSourceVariable', () => {
198
198
const variable = new DataSourceVariable ( {
199
199
name : 'test' ,
200
200
options : [ ] ,
201
- query : 'prometheus' ,
201
+ pluginId : 'prometheus' ,
202
202
value : 'slow-prometheus-mocked' ,
203
203
text : 'slow-prometheus-mocked' ,
204
204
} ) ;
@@ -214,7 +214,7 @@ describe('DataSourceVariable', () => {
214
214
name : 'test' ,
215
215
options : [ ] ,
216
216
isMulti : true ,
217
- query : 'prometheus' ,
217
+ pluginId : 'prometheus' ,
218
218
value : [ 'prometheus-mocked' , 'slow-prometheus-mocked' , 'elastic-mocked' ] ,
219
219
text : [ 'prometheus-mocked' , 'slow-prometheus-mocked' , 'elastic-mocked' ] ,
220
220
} ) ;
@@ -230,7 +230,7 @@ describe('DataSourceVariable', () => {
230
230
name : 'test' ,
231
231
options : [ ] ,
232
232
isMulti : true ,
233
- query : 'elastic' ,
233
+ pluginId : 'elastic' ,
234
234
value : [ 'prometheus-mocked' , 'slow-prometheus-mocked' ] ,
235
235
text : [ 'prometheus-mocked' , 'slow-prometheus-mocked' ] ,
236
236
} ) ;
0 commit comments