mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
017da781cf
* refactor dimension values backend * fix test file name
17 lines
391 B
Go
17 lines
391 B
Go
package request
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestResourceRequest(t *testing.T) {
|
|
t.Run("Should return an error if region is not provided", func(t *testing.T) {
|
|
request, err := GetDimensionValuesRequest(map[string][]string{})
|
|
require.Nil(t, request)
|
|
assert.Equal(t, "region is required", err.Error())
|
|
})
|
|
}
|