mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Add round trip tests for default encoding
Turn down iterations a bit for speed
This commit is contained in:
parent
61e3ce7ddc
commit
23307344ee
@ -14,7 +14,7 @@ install:
|
|||||||
- ./hack/build-go.sh
|
- ./hack/build-go.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./hack/test-go.sh
|
- KUBE_TIMEOUT='-timeout 60s' ./hack/test-go.sh
|
||||||
- PATH=$HOME/gopath/bin:./third_party/etcd/bin:$PATH ./hack/test-cmd.sh
|
- PATH=$HOME/gopath/bin:./third_party/etcd/bin:$PATH ./hack/test-cmd.sh
|
||||||
- PATH=$HOME/gopath/bin:./third_party/etcd/bin:$PATH ./hack/test-integration.sh
|
- PATH=$HOME/gopath/bin:./third_party/etcd/bin:$PATH ./hack/test-integration.sh
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ import (
|
|||||||
"github.com/google/gofuzz"
|
"github.com/google/gofuzz"
|
||||||
)
|
)
|
||||||
|
|
||||||
var fuzzIters = flag.Int("fuzz_iters", 50, "How many fuzzing iterations to do.")
|
var fuzzIters = flag.Int("fuzz_iters", 40, "How many fuzzing iterations to do.")
|
||||||
|
|
||||||
// apiObjectFuzzer can randomly populate api objects.
|
// apiObjectFuzzer can randomly populate api objects.
|
||||||
var apiObjectFuzzer = fuzz.New().NilChance(.5).NumElements(1, 1).Funcs(
|
var apiObjectFuzzer = fuzz.New().NilChance(.5).NumElements(1, 1).Funcs(
|
||||||
@ -166,6 +166,7 @@ func TestTypes(t *testing.T) {
|
|||||||
for i := 0; i < *fuzzIters; i++ {
|
for i := 0; i < *fuzzIters; i++ {
|
||||||
runTest(t, v1beta1.Codec, item)
|
runTest(t, v1beta1.Codec, item)
|
||||||
runTest(t, v1beta2.Codec, item)
|
runTest(t, v1beta2.Codec, item)
|
||||||
|
runTest(t, api.Codec, item)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user