test: fix matrix for relation table tests (#11757)

# Which Problems Are Solved

In #11239 , the helper function for matrix tests (without the relational
tables enabled) was changed, but the feature was never enabled in the
matrix. Some integration tests currently can't even succeed because of
missing implementations.

# How the Problems Are Solved

This PR correctly enables the feature where intended and returns the
state into the matrix.
This allows returning early for some tests which cannot succeed yet.
Corresponding todos have been re-added as well.

# Additional Changes

None

# Additional Context

 - relates to #11239
 - requires backport to v4.x
This commit is contained in:
Livio Spring
2026-03-12 06:24:40 +00:00
committed by GitHub
parent db8f475a02
commit 621fd9bdec
2 changed files with 21 additions and 4 deletions
@@ -372,18 +372,21 @@ func TestServer_UpdateOrganization(t *testing.T) {
tt.Run("unhappy: no permission", func(ttt *testing.T) {
// given
organisation, orgName, _ := createOrg(sysAuthZ, ttt, client)
organisation, _, _ := createOrg(sysAuthZ, ttt, client)
// when
_, err := client.UpdateOrganization(
inst.WithAuthorizationToken(ctx, integration.UserTypeOrgOwner),
&v2beta_org.UpdateOrganizationRequest{
Id: organisation.Id,
Name: orgName,
Name: integration.OrganizationName(),
},
)
// then
if relTableCase.Enabled {
ttt.Skip("TODO: remove when permission model is implemented in relational tables")
}
assert.Error(ttt, err)
})
})
@@ -738,6 +741,9 @@ func TestServer_DeleteOrganization(t *testing.T) {
_, err := client.DeleteOrganization(u, &v2beta_org.DeleteOrganizationRequest{Id: organisation.Id})
// then
if relTableTestCase.Enabled {
tttt.Skip("TODO: remove when permission model is implemented in relational tables")
}
assert.ErrorContains(tttt, err, "membership not found")
})
}
@@ -833,6 +839,9 @@ func TestServer_ActivateOrganization(t *testing.T) {
_, err = client.ActivateOrganization(u, &v2beta_org.ActivateOrganizationRequest{Id: organisation.Id})
// then
if testCase.Enabled {
tttt.Skip("TODO: remove when permission model is implemented in relational tables")
}
assert.ErrorContains(tttt, err, "membership not found")
})
}
@@ -903,6 +912,9 @@ func TestServer_DeactivateOrganization(t *testing.T) {
_, err := client.DeactivateOrganization(u, &v2beta_org.DeactivateOrganizationRequest{Id: organisation.Id})
// then
if testCase.Enabled {
tttt.Skip("TODO: remove when permission model is implemented in relational tables")
}
assert.ErrorContains(tttt, err, "membership not found")
})
}