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
0cf571fc
Commit
0cf571fc
authored
Mar 18, 2020
by
Ryan Cobb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec for multiple metrics in response
parent
7b5e4cb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
spec/lib/gitlab/metrics/dashboard/processor_spec.rb
spec/lib/gitlab/metrics/dashboard/processor_spec.rb
+10
-0
No files found.
spec/lib/gitlab/metrics/dashboard/processor_spec.rb
View file @
0cf571fc
...
@@ -74,6 +74,16 @@ describe Gitlab::Metrics::Dashboard::Processor do
...
@@ -74,6 +74,16 @@ describe Gitlab::Metrics::Dashboard::Processor do
expect
(
actual_metrics_order
).
to
eq
expected_metrics_order
expect
(
actual_metrics_order
).
to
eq
expected_metrics_order
end
end
context
'when the project has multiple metrics in the same group'
do
let!
(
:project_response_metric
)
{
create
(
:prometheus_metric
,
project:
project
,
group: :response
)
}
let!
(
:project_response_metric_2
)
{
create
(
:prometheus_metric
,
project:
project
,
group: :response
)
}
it
'includes multiple metrics'
do
expect
(
all_metrics
).
to
include
get_metric_details
(
project_response_metric
)
expect
(
all_metrics
).
to
include
get_metric_details
(
project_response_metric_2
)
end
end
context
'when the dashboard should not include project metrics'
do
context
'when the dashboard should not include project metrics'
do
let
(
:sequence
)
do
let
(
:sequence
)
do
[
[
...
...
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