File tree 1 file changed +5
-4
lines changed
pkg/security/registry/securitycontextconstraints/etcd
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,21 @@ package etcd
3
3
import (
4
4
"testing"
5
5
6
+ securityapi "github.com/openshift/origin/pkg/security/apis/security"
6
7
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
7
8
"k8s.io/apimachinery/pkg/runtime"
9
+ "k8s.io/apimachinery/pkg/runtime/schema"
8
10
"k8s.io/apiserver/pkg/registry/generic"
9
11
genericregistrytest "k8s.io/apiserver/pkg/registry/generic/testing"
10
12
etcdtesting "k8s.io/apiserver/pkg/storage/etcd/testing"
11
- "k8s.io/kubernetes/pkg/registry/registrytest"
12
-
13
- securityapi "github.com/openshift/origin/pkg/security/apis/security"
13
+ "k8s.io/kubernetes/pkg/api/legacyscheme"
14
14
15
15
_ "github.com/openshift/origin/pkg/api/install"
16
16
)
17
17
18
18
func newStorage (t * testing.T ) (* REST , * etcdtesting.EtcdTestServer ) {
19
- etcdStorage , server := registrytest .NewEtcdStorage (t , "" )
19
+ server , etcdStorage := etcdtesting .NewUnsecuredEtcd3TestClientServer (t )
20
+ etcdStorage .Codec = legacyscheme .Codecs .LegacyCodec (schema.GroupVersion {Group : "security.openshift.io" , Version : "v1" })
20
21
restOptions := generic.RESTOptions {
21
22
StorageConfig : etcdStorage ,
22
23
Decorator : generic .UndecoratedStorage ,
You can’t perform that action at this time.
0 commit comments