Split out server side code from pkg/apis/rbac/validation
This commit is contained in:
@@ -19,7 +19,6 @@ package rest
|
||||
import (
|
||||
"testing"
|
||||
|
||||
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
genericapirequest "k8s.io/kubernetes/pkg/genericapiserver/api/request"
|
||||
"k8s.io/kubernetes/pkg/util/uuid"
|
||||
@@ -58,7 +57,6 @@ func TestHasObjectMetaSystemFieldValues(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// TestValidNamespace validates that namespace rules are enforced on a resource prior to create or update
|
||||
func TestValidNamespace(t *testing.T) {
|
||||
ctx := genericapirequest.NewDefaultContext()
|
||||
@@ -84,4 +82,4 @@ func TestValidNamespace(t *testing.T) {
|
||||
if ns != "" {
|
||||
t.Fatalf("Expected the empty string")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user