Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8330b992
Commit
8330b992
authored
Jun 29, 2020
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix usage data spec names
parent
4a8e1e7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
ee/spec/lib/ee/gitlab/usage_data_spec.rb
ee/spec/lib/ee/gitlab/usage_data_spec.rb
+1
-1
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+12
-12
No files found.
ee/spec/lib/ee/gitlab/usage_data_spec.rb
View file @
8330b992
...
@@ -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
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
8330b992
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment