Files
grafana/pkg/services/cloudmigration/cloudmigrationimpl/cloudmigration_test.go
Bruno 6a3ab71d77 cms: clean up model file (#87179)
* move CreateAccessTokenResponseDTO to api.go

* remove unused types

* run make swagger-clean && make openapi3-gen
2024-05-13 00:22:19 -04:00

16 lines
342 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.CreateToken(context.Background())
assert.ErrorIs(t, e, cloudmigration.ErrFeatureDisabledError)
}