Replace internal version of resource with external version for tests

This commit is contained in:
Sean Sullivan
2018-09-13 13:12:30 -07:00
parent 5e5f7e5389
commit 49852289de
12 changed files with 88 additions and 37 deletions

View File

@@ -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,
},
}