mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2026-01-08 16:21:50 +00:00
Replace internal version of resource with external version for tests
This commit is contained in:
@@ -20,7 +20,6 @@ import (
|
||||
"testing"
|
||||
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
api "k8s.io/kubernetes/pkg/apis/core"
|
||||
)
|
||||
|
||||
func TestCanBeExposed(t *testing.T) {
|
||||
@@ -29,11 +28,17 @@ func TestCanBeExposed(t *testing.T) {
|
||||
expectErr bool
|
||||
}{
|
||||
{
|
||||
kind: api.Kind("ReplicationController"),
|
||||
kind: schema.GroupKind{
|
||||
Group: "",
|
||||
Kind: "ReplicationController",
|
||||
},
|
||||
expectErr: false,
|
||||
},
|
||||
{
|
||||
kind: api.Kind("Node"),
|
||||
kind: schema.GroupKind{
|
||||
Group: "",
|
||||
Kind: "Node",
|
||||
},
|
||||
expectErr: true,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user