mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 22:22:25 +08:00
Expressions: Add model struct for the query types (not map[string]any) (#82745)
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/grafana/grafana/pkg/services/datasources"
|
||||
"github.com/grafana/grafana/pkg/services/featuremgmt"
|
||||
)
|
||||
|
||||
func TestServicebuildPipeLine(t *testing.T) {
|
||||
@ -231,7 +232,9 @@ func TestServicebuildPipeLine(t *testing.T) {
|
||||
expectedOrder: []string{"B", "A"},
|
||||
},
|
||||
}
|
||||
s := Service{}
|
||||
s := Service{
|
||||
features: featuremgmt.WithFeatures(featuremgmt.FlagExpressionParser),
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
nodes, err := s.buildPipeline(tt.req)
|
||||
|
Reference in New Issue
Block a user