test(repository): persist model allowlists in group fixtures

This commit is contained in:
Zero Clover
2026-09-05 16:11:46 +08:00
parent cff3f89850
commit 55c5eed9fc
@@ -92,6 +92,7 @@ func mustCreateGroup(t *testing.T, client *dbent.Client, g *service.Group) *serv
SetIsExclusive(g.IsExclusive). SetIsExclusive(g.IsExclusive).
SetForceOpenaiFast(g.ForceOpenAIFast). SetForceOpenaiFast(g.ForceOpenAIFast).
SetFreeOpenaiFast(g.FreeOpenAIFast). SetFreeOpenaiFast(g.FreeOpenAIFast).
SetModelAllowlist(service.DomainGroupModelAllowlist(g.ModelAllowlist)).
SetCodexModelsManifestConfig(g.CodexModelsManifestConfig). SetCodexModelsManifestConfig(g.CodexModelsManifestConfig).
SetProfitControlEnabled(g.ProfitControlEnabled). SetProfitControlEnabled(g.ProfitControlEnabled).
SetProfitMinMargin(g.ProfitMinMargin). SetProfitMinMargin(g.ProfitMinMargin).