Skip to content

Commit

Permalink
Merge pull request #22913 from liggitt/unit-test-package
Browse files Browse the repository at this point in the history
Auto commit by PR queue bot
  • Loading branch information
k8s-merge-robot committed Mar 24, 2016
2 parents f3af5d2 + 3594370 commit dae5ac4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/api/ref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ type ExtensionAPIObject struct {
func (obj *ExtensionAPIObject) GetObjectKind() unversioned.ObjectKind { return &obj.TypeMeta }

func TestGetReference(t *testing.T) {

// when vendoring kube, if you don't force the set of registered versions (like this hack/test-go.sh does)
// then you run into trouble because the types aren't registered in the scheme by anything. This does the
// register manually to allow unit test execution
if _, err := Scheme.ObjectKind(&Pod{}); err != nil {
AddToScheme(Scheme)
}

table := map[string]struct {
obj runtime.Object
ref *ObjectReference
Expand Down

1 comment on commit dae5ac4

@k8s-teamcity-mesosphere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 19844 outcome was SUCCESS
Summary: Tests passed: 1, ignored: 267 Build time: 00:09:23

Please sign in to comment.