Commit 8330b992 authored by Alper Akgun's avatar Alper Akgun

Fix usage data spec names

parent 4a8e1e7a
...@@ -265,7 +265,7 @@ RSpec.describe Gitlab::UsageData do ...@@ -265,7 +265,7 @@ RSpec.describe Gitlab::UsageData do
end end
end end
describe '#operations_dashboard_usage' do describe '.operations_dashboard_usage' do
subject { described_class.operations_dashboard_usage } subject { described_class.operations_dashboard_usage }
before_all do before_all do
......
...@@ -87,7 +87,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -87,7 +87,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#data' do describe '.data' do
let!(:ud) { build(:usage_data) } let!(:ud) { build(:usage_data) }
before do before do
...@@ -267,7 +267,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -267,7 +267,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#usage_data_counters' do describe '.usage_data_counters' do
subject { described_class.usage_data_counters } subject { described_class.usage_data_counters }
it { is_expected.to all(respond_to :totals) } it { is_expected.to all(respond_to :totals) }
...@@ -294,7 +294,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -294,7 +294,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#license_usage_data' do describe '.license_usage_data' do
subject { described_class.license_usage_data } subject { described_class.license_usage_data }
it 'gathers license data' do it 'gathers license data' do
...@@ -307,7 +307,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -307,7 +307,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
context 'when not relying on database records' do context 'when not relying on database records' do
describe '#features_usage_data_ce' do describe '.features_usage_data_ce' do
subject { described_class.features_usage_data_ce } subject { described_class.features_usage_data_ce }
it 'gathers feature usage data', :aggregate_failures do it 'gathers feature usage data', :aggregate_failures do
...@@ -340,7 +340,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -340,7 +340,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#components_usage_data' do describe '.components_usage_data' do
subject { described_class.components_usage_data } subject { described_class.components_usage_data }
it 'gathers basic components usage data' do it 'gathers basic components usage data' do
...@@ -364,7 +364,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -364,7 +364,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#app_server_type' do describe '.app_server_type' do
subject { described_class.app_server_type } subject { described_class.app_server_type }
it 'successfully identifies runtime and returns the identifier' do it 'successfully identifies runtime and returns the identifier' do
...@@ -386,7 +386,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -386,7 +386,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#object_store_config' do describe '.object_store_config' do
let(:component) { 'lfs' } let(:component) { 'lfs' }
subject { described_class.object_store_config(component) } subject { described_class.object_store_config(component) }
...@@ -427,7 +427,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -427,7 +427,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#object_store_usage_data' do describe '.object_store_usage_data' do
subject { described_class.object_store_usage_data } subject { described_class.object_store_usage_data }
it 'fetches object store config of five components' do it 'fetches object store config of five components' do
...@@ -446,7 +446,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -446,7 +446,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#cycle_analytics_usage_data' do describe '.cycle_analytics_usage_data' do
subject { described_class.cycle_analytics_usage_data } subject { described_class.cycle_analytics_usage_data }
it 'works when queries time out in new' do it 'works when queries time out in new' do
...@@ -464,7 +464,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -464,7 +464,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#ingress_modsecurity_usage' do describe '.ingress_modsecurity_usage' do
subject { described_class.ingress_modsecurity_usage } subject { described_class.ingress_modsecurity_usage }
let(:environment) { create(:environment) } let(:environment) { create(:environment) }
...@@ -596,7 +596,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -596,7 +596,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#grafana_embed_usage_data' do describe '.grafana_embed_usage_data' do
subject { described_class.grafana_embed_usage_data } subject { described_class.grafana_embed_usage_data }
let(:project) { create(:project) } let(:project) { create(:project) }
...@@ -662,7 +662,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do ...@@ -662,7 +662,7 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
end end
end end
describe '#merge_requests_usage' do describe '.merge_requests_usage' do
let(:time_period) { { created_at: 2.days.ago..Time.current } } let(:time_period) { { created_at: 2.days.ago..Time.current } }
let(:merge_request) { create(:merge_request) } let(:merge_request) { create(:merge_request) }
let(:other_user) { create(:user) } let(:other_user) { create(:user) }
......
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