Install APIs directly for tests

This commit is contained in:
Jordan Liggitt
2019-12-13 10:17:12 -05:00
parent 442107b6b9
commit bb90f0ff94
42 changed files with 74 additions and 60 deletions

View File

@@ -26,8 +26,8 @@ import (
apitesting "k8s.io/kubernetes/pkg/api/testing"
api "k8s.io/kubernetes/pkg/apis/core"
// install all api groups for testing
_ "k8s.io/kubernetes/pkg/api/testapi"
// ensure types are installed
_ "k8s.io/kubernetes/pkg/apis/core/install"
)
func TestExportSecret(t *testing.T) {