@@ -40,6 +40,7 @@ import (
4040
4141 "github.com/kcp-dev/kcp/config/helpers"
4242 apisv1alpha2 "github.com/kcp-dev/kcp/sdk/apis/apis/v1alpha2"
43+ "github.com/kcp-dev/kcp/sdk/apis/core"
4344 tenancyv1alpha1 "github.com/kcp-dev/kcp/sdk/apis/tenancy/v1alpha1"
4445 kcpclientset "github.com/kcp-dev/kcp/sdk/client/clientset/versioned/cluster"
4546 kcptesting "github.com/kcp-dev/kcp/sdk/testing"
@@ -69,7 +70,7 @@ func TestMaximalPermissionPolicyAuthorizerSystemGroupProtection(t *testing.T) {
6970 require .NoError (t , err )
7071
7172 t .Logf ("Creating workspace" )
72- orgPath , _ := framework . NewOrganizationFixture (t , server , kcptesting .WithRootShard ()) //nolint:staticcheck // TODO: switch to NewWorkspaceFixture.
73+ orgPath , _ := kcptesting . NewWorkspaceFixture (t , server , core . RootCluster . Path (), kcptesting .WithRootShard (), kcptesting . WithType ( core . RootCluster . Path (), "organization" ))
7374
7475 t .Logf ("Giving user-1 admin access" )
7576 framework .AdmitWorkspaceAccess (ctx , t , kubeClusterClient , orgPath , []string {"user-1" }, nil , true )
@@ -154,7 +155,7 @@ func TestMaximalPermissionPolicyAuthorizer(t *testing.T) {
154155 ctx , cancel := context .WithCancel (context .Background ())
155156 t .Cleanup (cancel )
156157
157- orgPath , _ := framework . NewOrganizationFixture (t , server ) //nolint:staticcheck // TODO: switch to NewWorkspaceFixture.
158+ orgPath , _ := kcptesting . NewWorkspaceFixture (t , server , core . RootCluster . Path (), kcptesting . WithType ( core . RootCluster . Path (), "organization" ))
158159 rbacServiceProviderPath , _ := kcptesting .NewWorkspaceFixture (t , server , orgPath )
159160 serviceProvider2Workspace , _ := kcptesting .NewWorkspaceFixture (t , server , orgPath )
160161 consumer1Path , _ := kcptesting .NewWorkspaceFixture (t , server , orgPath )
0 commit comments