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
+7 -2
View File
@@ -34,6 +34,7 @@ type RelationalTableFeatureMatrix struct {
Name string
Inst *Instance
InstOwner context.Context
Enabled bool
}
// TODO(IAM-Marco): Once we have gotten rid of eventstore, this can be removed
@@ -51,12 +52,16 @@ func RelationalTablesEnableMatrix(t *testing.T, ctx context.Context, sysAuthZ co
func() RelationalTableFeatureMatrix {
inst := NewInstance(sysAuthZ)
instOwner := inst.WithAuthorizationToken(ctx, UserTypeIAMOwner)
_, err := inst.Client.FeatureV2.SetInstanceFeatures(instOwner, &feature.SetInstanceFeaturesRequest{EnableRelationalTables: gu.Ptr(false)})
require.NoError(t, err)
EnsureInstanceFeature(t, ctx, inst, &feature.SetInstanceFeaturesRequest{
EnableRelationalTables: gu.Ptr(true),
}, func(tt *assert.CollectT, got *feature.GetInstanceFeaturesResponse) {
assert.True(tt, got.GetEnableRelationalTables().GetEnabled(), "expected relational tables to be enabled")
})
return RelationalTableFeatureMatrix{
Name: "when relational tables are enabled",
Inst: inst,
InstOwner: instOwner,
Enabled: true,
}
}(),
}