mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 05:53:15 +08:00
17 lines
395 B
Go
17 lines
395 B
Go
package resources
|
|
|
|
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.Empty(t, request)
|
|
assert.Equal(t, "region is required", err.Error())
|
|
})
|
|
}
|