mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
add v1 to serialization_test.go
This commit is contained in:
parent
8c2cc9fd61
commit
115823ff1b
@ -27,6 +27,7 @@ import (
|
|||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/latest"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/latest"
|
||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/meta"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/meta"
|
||||||
apitesting "github.com/GoogleCloudPlatform/kubernetes/pkg/api/testing"
|
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/api/v1beta3"
|
||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
|
||||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
|
"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)
|
fuzzInternalObject(t, "v1beta3", item, seed)
|
||||||
roundTrip(t, v1beta3.Codec, item)
|
roundTrip(t, v1beta3.Codec, item)
|
||||||
}
|
}
|
||||||
}
|
if !set.Has("v1") {
|
||||||
|
fuzzInternalObject(t, "v1", item, seed)
|
||||||
func roundTripAll(t *testing.T, item runtime.Object) {
|
roundTrip(t, v1.Codec, item)
|
||||||
seed := rand.Int63()
|
}
|
||||||
roundTrip(t, v1beta3.Codec, fuzzInternalObject(t, "v1beta3", item, seed))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// For debugging problems
|
// For debugging problems
|
||||||
|
Loading…
Reference in New Issue
Block a user