package server import ( "testing" "agent-system-backend/internal/store" ) // createLegacyAPIKeyFixture creates the historical integration identity // explicitly before exercising the formal, non-creating key issuance path. func createLegacyAPIKeyFixture(t *testing.T, st *store.Store, owner, name string) (string, error) { t.Helper() if err := st.EnsureUser(owner, ""); err != nil { t.Fatal(err) } return st.CreateAPIKey(owner, name) }