Commit 0666261e authored by Sean McGivern's avatar Sean McGivern

Add trial info to usage ping

parent e73aaf45
......@@ -41,6 +41,7 @@ module Gitlab
usage_data[:license_expires_at] = license.expires_at
usage_data[:license_plan] = license.plan
usage_data[:license_add_ons] = license.add_ons
usage_data[:license_trial] = license.trial?
end
usage_data
......
......@@ -27,6 +27,7 @@ describe Gitlab::UsageData do
license_expires_at
license_starts_at
license_user_count
license_trial
licensee
license_md5
recorded_at
......@@ -167,6 +168,7 @@ describe Gitlab::UsageData do
expect(subject[:license_starts_at]).to eq(license.starts_at)
expect(subject[:license_expires_at]).to eq(license.expires_at)
expect(subject[:license_add_ons]).to eq(license.add_ons)
expect(subject[:license_trial]).to eq(license.trial?)
expect(subject[:recorded_at]).to be_a(Time)
end
end
......
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