Skip to content

Commit

Permalink
Merge pull request #12607 from liggitt/identity-prefix
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Jan 24, 2017
2 parents 6edd46a + d417157 commit e4c1ae7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions pkg/cmd/server/origin/rest/storage_options.go
Expand Up @@ -26,12 +26,14 @@ func StorageOptions(options configapi.MasterConfig) restoptions.Getter {
{Resource: "oauthclients"}: "oauth/clients",
{Resource: "oauthclientauthorizations"}: "oauth/clientauthorizations",

{Resource: "identities"}: "useridentities",

{Resource: "clusterresourcequotas"}: quotaapi.GroupName + "/clusterresourcequotas",

{Resource: "clusternetworks"}: "registry/sdnnetworks",
{Resource: "egressnetworkpolicy"}: "registry/egressnetworkpolicy",
{Resource: "hostsubnets"}: "registry/sdnsubnets",
{Resource: "netnamespaces"}: "registry/sdnnetnamespaces",
{Resource: "clusternetworks"}: "registry/sdnnetworks",
{Resource: "egressnetworkpolicies"}: "registry/egressnetworkpolicy",
{Resource: "hostsubnets"}: "registry/sdnsubnets",
{Resource: "netnamespaces"}: "registry/sdnnetnamespaces",
},
map[unversioned.GroupResource]struct{}{
{Resource: "oauthauthorizetokens"}: {},
Expand Down
2 changes: 1 addition & 1 deletion test/integration/userclient_test.go
Expand Up @@ -410,7 +410,7 @@ func TestUserInitialization(t *testing.T) {
if _, err := etcdClient.Delete(context.Background(), path.Join(masterConfig.EtcdStorageConfig.OpenShiftStoragePrefix, "/users"), &etcdclient.DeleteOptions{Recursive: true}); err != nil && !etcdutil.IsEtcdNotFound(err) {
t.Fatalf("Could not clean up users: %v", err)
}
if _, err := etcdClient.Delete(context.Background(), path.Join(masterConfig.EtcdStorageConfig.OpenShiftStoragePrefix, "/identities"), &etcdclient.DeleteOptions{Recursive: true}); err != nil && !etcdutil.IsEtcdNotFound(err) {
if _, err := etcdClient.Delete(context.Background(), path.Join(masterConfig.EtcdStorageConfig.OpenShiftStoragePrefix, "/useridentities"), &etcdclient.DeleteOptions{Recursive: true}); err != nil && !etcdutil.IsEtcdNotFound(err) {
t.Fatalf("Could not clean up identities: %v", err)
}

Expand Down

0 comments on commit e4c1ae7

Please sign in to comment.