mirror of https://github.com/k3s-io/k3s
Merge pull request #74937 from liggitt/proto-verify
Add proto roundtrip tests in roundtrip_test.go filespull/564/head
commit
fb9fdb3360
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue