Merge pull request #74937 from liggitt/proto-verify

Add proto roundtrip tests in roundtrip_test.go files
pull/564/head
Kubernetes Prow Robot 2019-03-05 11:10:56 -08:00 committed by GitHub
commit fb9fdb3360
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 0 deletions

View File

@ -25,4 +25,5 @@ import (
func TestRoundTrip(t *testing.T) { func TestRoundTrip(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, apiextensionsfuzzer.Funcs) roundtrip.RoundTripTestForAPIGroup(t, Install, apiextensionsfuzzer.Funcs)
roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, apiextensionsfuzzer.Funcs)
} }

View File

@ -25,4 +25,5 @@ import (
func TestRoundTrip(t *testing.T) { func TestRoundTrip(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, testapigroupfuzzer.Funcs) roundtrip.RoundTripTestForAPIGroup(t, Install, testapigroupfuzzer.Funcs)
roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, testapigroupfuzzer.Funcs)
} }

View File

@ -25,4 +25,5 @@ import (
func TestRoundTrip(t *testing.T) { func TestRoundTrip(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, fuzzer.Funcs) roundtrip.RoundTripTestForAPIGroup(t, Install, fuzzer.Funcs)
roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, fuzzer.Funcs)
} }

View File

@ -25,4 +25,5 @@ import (
func TestRoundTrip(t *testing.T) { func TestRoundTrip(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, examplefuzzer.Funcs) roundtrip.RoundTripTestForAPIGroup(t, Install, examplefuzzer.Funcs)
roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, examplefuzzer.Funcs)
} }

View File

@ -25,4 +25,5 @@ import (
func TestRoundTrip(t *testing.T) { func TestRoundTrip(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, examplefuzzer.Funcs) roundtrip.RoundTripTestForAPIGroup(t, Install, examplefuzzer.Funcs)
roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, examplefuzzer.Funcs)
} }

View File

@ -25,4 +25,6 @@ import (
func TestRoundTripTypes(t *testing.T) { func TestRoundTripTypes(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, wardlefuzzer.Funcs) roundtrip.RoundTripTestForAPIGroup(t, Install, wardlefuzzer.Funcs)
// TODO: enable protobuf generation for the sample-apiserver
// roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, wardlefuzzer.Funcs)
} }