ResourceServer: Add resource server protobuf and wrapper (#90007)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package resource
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestKeyMatching(t *testing.T) {
|
||||
t.Run("key matching", func(t *testing.T) {
|
||||
require.True(t, matchesQueryKey(&ResourceKey{
|
||||
Group: "ggg",
|
||||
Resource: "rrr",
|
||||
Namespace: "ns",
|
||||
}, &ResourceKey{
|
||||
Group: "ggg",
|
||||
Resource: "rrr",
|
||||
Namespace: "ns",
|
||||
}))
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user