mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
divide statically known typer from dynamically derive restmapper
This commit is contained in:
@@ -437,7 +437,7 @@ func TestClusterRoleValidate(t *testing.T) {
|
||||
|
||||
for name, test := range tests {
|
||||
t.Run(name, func(t *testing.T) {
|
||||
test.clusterRoleOptions.Mapper, _ = tf.Object()
|
||||
test.clusterRoleOptions.Mapper = tf.RESTMapper()
|
||||
err := test.clusterRoleOptions.Validate()
|
||||
if test.expectErr && err == nil {
|
||||
t.Errorf("%s: expect error happens, but validate passes.", name)
|
||||
|
||||
Reference in New Issue
Block a user