Skip to content

Commit

Permalink
Fix fuzz tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jun 6, 2024
1 parent 9d636e5 commit 83acc3b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 37 deletions.
4 changes: 2 additions & 2 deletions apis/authentication/install/roundtrip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ package install
import (
"testing"

identityfuzzer "kubeops.dev/ui-server/apis/identity/fuzzer"
"kubeops.dev/ui-server/apis/authentication/fuzzer"

"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
)

func TestRoundTripTypes(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, identityfuzzer.Funcs)
roundtrip.RoundTripTestForAPIGroup(t, Install, fuzzer.Funcs)
// TODO: enable protobuf generation for the sample-apiserver
// roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, identityfuzzer.Funcs)
}
4 changes: 2 additions & 2 deletions apis/cost/install/roundtrip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ package install
import (
"testing"

costfuzzer "kubeops.dev/ui-server/apis/cost/fuzzer"
"kubeops.dev/ui-server/apis/cost/fuzzer"

"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
)

func TestRoundTripTypes(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, costfuzzer.Funcs)
roundtrip.RoundTripTestForAPIGroup(t, Install, fuzzer.Funcs)
// TODO: enable protobuf generation for the sample-apiserver
// roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, identityfuzzer.Funcs)
}
4 changes: 2 additions & 2 deletions apis/offline/install/roundtrip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ package install
import (
"testing"

identityfuzzer "kubeops.dev/ui-server/apis/identity/fuzzer"
"kubeops.dev/ui-server/apis/offline/fuzzer"

"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
)

func TestRoundTripTypes(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, identityfuzzer.Funcs)
roundtrip.RoundTripTestForAPIGroup(t, Install, fuzzer.Funcs)
// TODO: enable protobuf generation for the sample-apiserver
// roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, identityfuzzer.Funcs)
}
4 changes: 2 additions & 2 deletions apis/policy/install/roundtrip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ package install
import (
"testing"

policyfuzzer "kubeops.dev/ui-server/apis/policy/fuzzer"
"kubeops.dev/ui-server/apis/policy/fuzzer"

"k8s.io/apimachinery/pkg/api/apitesting/roundtrip"
)

func TestRoundTripTypes(t *testing.T) {
roundtrip.RoundTripTestForAPIGroup(t, Install, policyfuzzer.Funcs)
roundtrip.RoundTripTestForAPIGroup(t, Install, fuzzer.Funcs)
// TODO: enable protobuf generation for the sample-apiserver
// roundtrip.RoundTripProtobufTestForAPIGroup(t, Install, identityfuzzer.Funcs)
}
29 changes: 0 additions & 29 deletions pkg/apiserver/scheme_test.go

This file was deleted.

0 comments on commit 83acc3b

Please sign in to comment.