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
efa246cd
Commit
efa246cd
authored
Apr 14, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix call to Prometheus::CreateDefaultAlertsWorker
parent
b9997292
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/models/project_services/prometheus_service.rb
app/models/project_services/prometheus_service.rb
+1
-1
spec/models/project_services/prometheus_service_spec.rb
spec/models/project_services/prometheus_service_spec.rb
+1
-1
No files found.
app/models/project_services/prometheus_service.rb
View file @
efa246cd
...
...
@@ -153,6 +153,6 @@ class PrometheusService < MonitoringService
def
create_default_alerts
return
unless
project_id
Prometheus
::
CreateDefaultAlertsWorker
.
perform_async
(
project_id
:
project_id
)
Prometheus
::
CreateDefaultAlertsWorker
.
perform_async
(
project_id
)
end
end
spec/models/project_services/prometheus_service_spec.rb
View file @
efa246cd
...
...
@@ -133,7 +133,7 @@ describe PrometheusService, :use_clean_rails_memory_store_caching do
it
'creates default alerts'
do
expect
(
Prometheus
::
CreateDefaultAlertsWorker
)
.
to
receive
(
:perform_async
)
.
with
(
project
_id:
project
.
id
)
.
with
(
project
.
id
)
create_service
end
...
...
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