mirror of
https://github.com/grafana/grafana.git
synced 2025-07-28 16:42:09 +08:00
Plugins Remove failWrongDSUID feature toggle (#107308)
* remove failWrongDSUID FT * undo go.mod changes
This commit is contained in:
@ -13,7 +13,6 @@ import (
|
||||
"github.com/grafana/grafana/pkg/infra/db"
|
||||
"github.com/grafana/grafana/pkg/infra/log"
|
||||
"github.com/grafana/grafana/pkg/services/datasources"
|
||||
"github.com/grafana/grafana/pkg/services/featuremgmt"
|
||||
)
|
||||
|
||||
func TestIntegrationDataAccess(t *testing.T) {
|
||||
@ -102,9 +101,8 @@ func TestIntegrationDataAccess(t *testing.T) {
|
||||
t.Run("fails to create a datasource with an invalid uid", func(t *testing.T) {
|
||||
db := db.InitTestDB(t)
|
||||
ss := SqlStore{
|
||||
db: db,
|
||||
logger: log.NewNopLogger(),
|
||||
features: featuremgmt.WithFeatures(featuremgmt.FlagFailWrongDSUID),
|
||||
db: db,
|
||||
logger: log.NewNopLogger(),
|
||||
}
|
||||
cmd := defaultAddDatasourceCommand
|
||||
cmd.UID = "test/uid"
|
||||
@ -236,9 +234,8 @@ func TestIntegrationDataAccess(t *testing.T) {
|
||||
db := db.InitTestDB(t)
|
||||
ds := initDatasource(db)
|
||||
ss := SqlStore{
|
||||
db: db,
|
||||
logger: log.NewNopLogger(),
|
||||
features: featuremgmt.WithFeatures(featuremgmt.FlagFailWrongDSUID),
|
||||
db: db,
|
||||
logger: log.NewNopLogger(),
|
||||
}
|
||||
require.NotEmpty(t, ds.UID)
|
||||
|
||||
|
Reference in New Issue
Block a user