Skip to content
Snippets Groups Projects
Commit 71a9e5db authored by ale's avatar ale
Browse files

Add support for WebDAV probes

See issue ai3/prod#185.
parent a030b7a0
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,20 @@ pannello_template = Probe(
PROBES.extend(parameterize(
pannello_template, 'credentials', test_credentials))
# WebDAV.
# Can't use "parameterize" because credentials are bound to the URL.
{% for c in service_prober_webdav_credentials | default([]) %}
PROBES.append(Probe(
probe_webdav,
'webdav_{{ c.username }}',
{
'url': 'https://www.{{ domain_public[0] }}/dav/{{ c.username }}/',
'credentials': Credentials(
username='{{ c.username }}',
password={{ c.password | to_json }}),
}))
{% endfor %}
# IMAP logins.
imap_template = Probe(
probe_imap,
......@@ -60,6 +74,7 @@ PROBES.extend(
imap_template, 'credentials', test_credentials),
'addr', frontends))
# SMTP (inbound / outbound).
smtp_template = Probe(
probe_mail_local_delivery,
'mail_local_delivery',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment