mirror of https://github.com/grafana/grafana.git
16 lines
394 B
Go
16 lines
394 B
Go
|
package cloudmigrationimpl
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/grafana/grafana/pkg/services/cloudmigration"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func Test_NoopServiceDoesNothing(t *testing.T) {
|
||
|
s := &NoopServiceImpl{}
|
||
|
_, e := s.MigrateDatasources(context.Background(), &cloudmigration.MigrateDatasourcesRequest{})
|
||
|
assert.ErrorIs(t, e, cloudmigration.ErrFeatureDisabledError)
|
||
|
}
|