Move pkg/api.{Context,RequestContextMapper} into pkg/genericapiserver/api/request
This commit is contained in:
@@ -22,10 +22,11 @@ import (
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
apitesting "k8s.io/kubernetes/pkg/api/testing"
|
||||
"k8s.io/kubernetes/pkg/apimachinery/registered"
|
||||
genericapirequest "k8s.io/kubernetes/pkg/genericapiserver/api/request"
|
||||
)
|
||||
|
||||
func TestControllerStrategy(t *testing.T) {
|
||||
ctx := api.NewDefaultContext()
|
||||
ctx := genericapirequest.NewDefaultContext()
|
||||
if !Strategy.NamespaceScoped() {
|
||||
t.Errorf("ReplicationController must be namespace scoped")
|
||||
}
|
||||
@@ -84,7 +85,7 @@ func TestControllerStrategy(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestControllerStatusStrategy(t *testing.T) {
|
||||
ctx := api.NewDefaultContext()
|
||||
ctx := genericapirequest.NewDefaultContext()
|
||||
if !StatusStrategy.NamespaceScoped() {
|
||||
t.Errorf("ReplicationController must be namespace scoped")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user