Fix more tests related to Rails 7.1 upgrade
What does this MR do and why?
Related:
- https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/rails_upgrade
- Move test fixes out of the Rails 7.1 Upgrade MR (#475085 - closed)
Fixes:
- Fix ee/spec/features/groups/analytics/productivity_analytics_spec.rb
- Define default_timezone for ClickHouseHelpers
- Fix spec/requests/oauth/tokens_controller_spec
- Use BroadcastLogger instead of ActiveSupport::Logger.broadcast
- Fix with_lock_retries_spec that hangs
- Kas::UserAccess: set request to controller that checks csrf
- Stub clock_gettime with values called by Rails
- Handle zettabytes in storage helper specs