From 115823ff1b3532b97b9f3cffc94cfdae8b34f1bf Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Wed, 3 Jun 2015 10:31:26 -0700 Subject: [PATCH] add v1 to serialization_test.go --- pkg/api/serialization_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/api/serialization_test.go b/pkg/api/serialization_test.go index 08d1e96065f..c206e94e78d 100644 --- a/pkg/api/serialization_test.go +++ b/pkg/api/serialization_test.go @@ -27,6 +27,7 @@ import ( "github.com/GoogleCloudPlatform/kubernetes/pkg/api/latest" "github.com/GoogleCloudPlatform/kubernetes/pkg/api/meta" apitesting "github.com/GoogleCloudPlatform/kubernetes/pkg/api/testing" + "github.com/GoogleCloudPlatform/kubernetes/pkg/api/v1" "github.com/GoogleCloudPlatform/kubernetes/pkg/api/v1beta3" "github.com/GoogleCloudPlatform/kubernetes/pkg/runtime" "github.com/GoogleCloudPlatform/kubernetes/pkg/util" @@ -91,11 +92,10 @@ func roundTripSame(t *testing.T, item runtime.Object, except ...string) { fuzzInternalObject(t, "v1beta3", item, seed) roundTrip(t, v1beta3.Codec, item) } -} - -func roundTripAll(t *testing.T, item runtime.Object) { - seed := rand.Int63() - roundTrip(t, v1beta3.Codec, fuzzInternalObject(t, "v1beta3", item, seed)) + if !set.Has("v1") { + fuzzInternalObject(t, "v1", item, seed) + roundTrip(t, v1.Codec, item) + } } // For debugging problems