//go:build integration package settings_test import ( "context" "os" "testing" "time" "github.com/zitadel/zitadel/internal/integration" "github.com/zitadel/zitadel/pkg/grpc/settings/v2" ) var ( CTX, AdminCTX context.Context Instance *integration.Instance Client settings.SettingsServiceClient ) func TestMain(m *testing.M) { os.Exit(func() int { ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute) defer cancel() Instance = integration.NewInstance(ctx) CTX = ctx AdminCTX = Instance.WithAuthorization(ctx, integration.UserTypeIAMOwner) Client = Instance.Client.SettingsV2 return m.Run() }()) }