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
9d5e67c9
Commit
9d5e67c9
authored
Nov 16, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update specs for metrics_update_worker
parent
f6f55f4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
spec/workers/geo/metrics_update_worker_spec.rb
spec/workers/geo/metrics_update_worker_spec.rb
+1
-10
No files found.
spec/workers/geo/metrics_update_worker_spec.rb
View file @
9d5e67c9
...
...
@@ -13,16 +13,7 @@ RSpec.describe Geo::MetricsUpdateWorker, :geo do
stub_current_geo_node
(
secondary
)
end
it
'does not execute when Prometheus metrics are disabled'
do
allow
(
Gitlab
::
Metrics
).
to
receive
(
:prometheus_metrics_enabled?
).
and_return
(
false
)
expect
(
Geo
::
MetricsUpdateService
).
not_to
receive
(
:new
)
subject
.
perform
end
it
'executes when Prometheus metrics are enabled'
do
allow
(
Gitlab
::
Metrics
).
to
receive
(
:prometheus_metrics_enabled?
).
and_return
(
true
)
it
'executes MetricsUpdateService'
do
service
=
double
(
:service
,
execute:
true
)
expect
(
Geo
::
MetricsUpdateService
).
to
receive
(
:new
).
and_return
(
service
)
...
...
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