Files
grafana/pkg/services/cloudmigrations/service/service_test.go
Michael Mandrus cf13cb9f70 Cloud Migrations: Create new service for cloud migrations (#80949)
* introduce feature toggle

* create base service structure

* fix sample metric

* register metrics

* add to codeowners

* separate api dtos from service models

* remove leading newline
2024-01-22 11:09:08 -05:00

16 lines
375 B
Go

package service
import (
"context"
"testing"
"github.com/grafana/grafana/pkg/services/cloudmigrations/models"
"github.com/stretchr/testify/assert"
)
func Test_NoopServiceDoesNothing(t *testing.T) {
s := &NoopServiceImpl{}
_, e := s.MigrateDatasources(context.Background(), &models.MigrateDatasourcesRequest{})
assert.ErrorIs(t, e, models.ErrFeatureDisabledError)
}