Skip to content

Commit 37664a9

Browse files
authored
Merge pull request #3425 from xmudrii/fix-verbs-flake
Point PermissionClaim verbs test to the correct workspace
2 parents 1533472 + 4ce4be9 commit 37664a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/virtual/apiexport/binding_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func TestAPIBindingPermissionClaimsVerbs(t *testing.T) {
230230
t.Cleanup(cancel)
231231

232232
orgPath, _ := framework.NewOrganizationFixture(t, server) //nolint:staticcheck // TODO: switch to NewWorkspaceFixture.
233-
providerPath, providerWorkspace := kcptesting.NewWorkspaceFixture(t, server, orgPath)
233+
providerPath, _ := kcptesting.NewWorkspaceFixture(t, server, orgPath)
234234
consumerPath, consumerWorkspace := kcptesting.NewWorkspaceFixture(t, server, orgPath)
235235
consumerClusterName := logicalcluster.Name(consumerWorkspace.Spec.Cluster)
236236

@@ -288,7 +288,7 @@ func TestAPIBindingPermissionClaimsVerbs(t *testing.T) {
288288
apiExport, err := kcpClusterClient.Cluster(providerPath).ApisV1alpha2().APIExports().Get(ctx, "today-cowboys", metav1.GetOptions{})
289289
require.NoError(t, err)
290290
var found bool
291-
apiExportVWCfg.Host, found, err = framework.VirtualWorkspaceURL(ctx, kcpClusterClient, providerWorkspace, framework.ExportVirtualWorkspaceURLs(apiExport))
291+
apiExportVWCfg.Host, found, err = framework.VirtualWorkspaceURL(ctx, kcpClusterClient, consumerWorkspace, framework.ExportVirtualWorkspaceURLs(apiExport))
292292
require.NoError(t, err)
293293
//nolint:staticcheck // SA1019 VirtualWorkspaces is deprecated but not removed yet
294294
return found, fmt.Sprintf("waiting for virtual workspace URLs to be available: %v", apiExport.Status.VirtualWorkspaces)

0 commit comments

Comments
 (0)