Commit 9e7619fa authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch...

Merge branch '238111-count-of-the-number-of-self-hosted-smtp-configurations-by-package' into 'master'

Add mail.smtp_server to usage ping data

See merge request gitlab-org/gitlab!39844
parents 591f7b06 bb8e9026
---
title: Add smtp_server to usage ping data
merge_request: 39844
author:
type: changed
...@@ -269,6 +269,9 @@ module Gitlab ...@@ -269,6 +269,9 @@ module Gitlab
database: { database: {
adapter: alt_usage_data { Gitlab::Database.adapter_name }, adapter: alt_usage_data { Gitlab::Database.adapter_name },
version: alt_usage_data { Gitlab::Database.version } version: alt_usage_data { Gitlab::Database.version }
},
mail: {
smtp_server: alt_usage_data { ActionMailer::Base.smtp_settings[:address] }
} }
} }
end end
......
...@@ -4,6 +4,7 @@ UsageData/LargeTable: ...@@ -4,6 +4,7 @@ UsageData/LargeTable:
- 'lib/gitlab/usage_data.rb' - 'lib/gitlab/usage_data.rb'
- 'ee/lib/ee/gitlab/usage_data.rb' - 'ee/lib/ee/gitlab/usage_data.rb'
NonRelatedClasses: NonRelatedClasses:
- :ActionMailer::Base
- :Date - :Date
- :Feature - :Feature
- :Gitlab - :Gitlab
......
...@@ -673,6 +673,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -673,6 +673,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
expect(subject[:git][:version]).to eq(Gitlab::Git.version) expect(subject[:git][:version]).to eq(Gitlab::Git.version)
expect(subject[:database][:adapter]).to eq(Gitlab::Database.adapter_name) expect(subject[:database][:adapter]).to eq(Gitlab::Database.adapter_name)
expect(subject[:database][:version]).to eq(Gitlab::Database.version) expect(subject[:database][:version]).to eq(Gitlab::Database.version)
expect(subject[:mail][:smtp_server]).to eq(ActionMailer::Base.smtp_settings[:address])
expect(subject[:gitaly][:version]).to be_present expect(subject[:gitaly][:version]).to be_present
expect(subject[:gitaly][:servers]).to be >= 1 expect(subject[:gitaly][:servers]).to be >= 1
expect(subject[:gitaly][:clusters]).to be >= 0 expect(subject[:gitaly][:clusters]).to be >= 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment