diff --git a/pkg/util/util_test.go b/pkg/util/util_test.go index e48311c7ac9..2c4105f12dd 100644 --- a/pkg/util/util_test.go +++ b/pkg/util/util_test.go @@ -19,17 +19,27 @@ package util import ( "encoding/json" "testing" - - "github.com/GoogleCloudPlatform/kubernetes/pkg/api" ) +type FakeJSONBase struct { + ID string +} +type FakePod struct { + FakeJSONBase `json:",inline" yaml:",inline"` + Labels map[string]string + Int int + Str string +} + func TestMakeJSONString(t *testing.T) { - pod := api.Pod{ - JSONBase: api.JSONBase{ID: "foo"}, + pod := FakePod{ + FakeJSONBase: FakeJSONBase{ID: "foo"}, Labels: map[string]string{ "foo": "bar", "baz": "blah", }, + Int: -6, + Str: "a string", } body := MakeJSONString(pod)