@@ -11,8 +11,7 @@ import (
1111 "k8s.io/apimachinery/pkg/runtime/schema"
1212 "k8s.io/apimachinery/pkg/util/sets"
1313
14- configapi "github.com/openshift/origin/pkg/cmd/server/apis/config"
15- configapiv1 "github.com/openshift/origin/pkg/cmd/server/apis/config/v1"
14+ configapiinstall "github.com/openshift/origin/pkg/cmd/server/apis/config/install"
1615)
1716
1817func TestDescriptions (t * testing.T ) {
@@ -66,6 +65,7 @@ func TestInternalJsonTags(t *testing.T) {
6665 scheme := runtime .NewScheme ()
6766 InstallInternalOpenShift (scheme )
6867 InstallInternalKube (scheme )
68+ configapiinstall .InstallLegacyInternal (scheme )
6969
7070 seen := map [reflect.Type ]bool {}
7171 seenGroups := sets.String {}
@@ -81,10 +81,6 @@ func TestInternalJsonTags(t *testing.T) {
8181 checkInternalJsonTags (apiType , & seen , t )
8282 }
8383 }
84-
85- for _ , apiType := range configapi .Scheme .KnownTypes (configapi .SchemeGroupVersion ) {
86- checkInternalJsonTags (apiType , & seen , t )
87- }
8884}
8985
9086// internalTypesWithAllowedJsonTags is the list of special structs that have a particular need to have json tags on their
@@ -130,6 +126,7 @@ func TestExternalJsonTags(t *testing.T) {
130126 scheme := runtime .NewScheme ()
131127 InstallInternalOpenShift (scheme )
132128 InstallInternalKube (scheme )
129+ configapiinstall .InstallLegacyInternal (scheme )
133130
134131 seen := map [reflect.Type ]bool {}
135132
@@ -138,11 +135,6 @@ func TestExternalJsonTags(t *testing.T) {
138135 checkExternalJsonTags (apiType , & seen , t )
139136 }
140137 }
141-
142- for _ , apiType := range configapi .Scheme .KnownTypes (configapiv1 .SchemeGroupVersion ) {
143- checkExternalJsonTags (apiType , & seen , t )
144- }
145-
146138}
147139
148140func checkExternalJsonTags (objType reflect.Type , seen * map [reflect.Type ]bool , t * testing.T ) {
0 commit comments