Split out server side code from pkg/apis/rbac/validation

This commit is contained in:
Dr. Stefan Schimanski
2017-01-11 11:11:25 +01:00
parent 57e3a57c10
commit cf60bec396
18 changed files with 84 additions and 80 deletions

View File

@@ -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")
}
}
}