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
1dd663ba
Commit
1dd663ba
authored
Apr 01, 2020
by
Vladimir Shushlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add method to notify about failed auto SSL
parent
b79c4c8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
app/services/notification_service.rb
app/services/notification_service.rb
+6
-0
spec/services/notification_service_spec.rb
spec/services/notification_service_spec.rb
+1
-0
No files found.
app/services/notification_service.rb
View file @
1dd663ba
...
...
@@ -489,6 +489,12 @@ class NotificationService
end
end
def
pages_domain_auto_ssl_failed
(
domain
)
project_maintainers_recipients
(
domain
,
action:
'disabled'
).
each
do
|
recipient
|
mailer
.
pages_domain_auto_ssl_failed_email
(
domain
,
recipient
.
user
).
deliver_later
end
end
def
issue_due
(
issue
)
recipients
=
NotificationRecipients
::
BuildService
.
build_recipients
(
issue
,
...
...
spec/services/notification_service_spec.rb
View file @
1dd663ba
...
...
@@ -2604,6 +2604,7 @@ describe NotificationService, :mailer do
pages_domain_disabled
pages_domain_verification_succeeded
pages_domain_verification_failed
pages_domain_auto_ssl_failed
]
.
each
do
|
sym
|
describe
"#
#{
sym
}
"
do
subject
(
:notify!
)
{
notification
.
send
(
sym
,
domain
)
}
...
...
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