diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-18 12:08:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-18 12:08:09 +0300 |
commit | 990891feb7cb31269ad7ec13f359aea6b25c1f00 (patch) | |
tree | 0c1dba50660232fc0d9c1e37ea3e96783abca718 /spec/lib/gitlab/usage_data_spec.rb | |
parent | ccf350cb4cab8bcaa457313fea2d596d50cdf820 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/usage_data_spec.rb')
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index 9f87cc9b5d7..f0242fcb3c6 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -17,7 +17,6 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures, feature_category: :servic it 'includes basic top and second level keys' do is_expected.to include(:counts) - is_expected.to include(:counts_monthly) is_expected.to include(:counts_weekly) is_expected.to include(:license) @@ -591,28 +590,6 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures, feature_category: :servic end end - describe '.system_usage_data_monthly' do - let_it_be(:project) { create(:project, created_at: 3.days.ago) } - - before do - create(:package, project: project, created_at: 3.days.ago) - create(:package, created_at: 2.months.ago, project: project) - - for_defined_days_back do - create(:product_analytics_event, project: project, se_category: 'epics', se_action: 'promote') - end - end - - subject { described_class.system_usage_data_monthly } - - it 'gathers monthly usage counts correctly' do - counts_monthly = subject[:counts_monthly] - - expect(counts_monthly[:projects]).to eq(1) - expect(counts_monthly[:packages]).to eq(1) - end - end - context 'when not relying on database records' do describe '.features_usage_data_ce' do subject { described_class.features_usage_data_ce } |