summaryrefslogtreecommitdiff
path: root/tests/roots/test-linkcheck-localserver-https
diff options
context:
space:
mode:
authorFrançois Freitag <mail@franek.fr>2020-11-09 22:26:02 +0100
committerFrançois Freitag <mail@franek.fr>2020-11-12 19:58:04 +0100
commit040a1e77438b2ca3d7e9ba925ed41eddc701e883 (patch)
tree556d6ae6ab3aa3dbb5c5f21cd6d3eee95f08742d /tests/roots/test-linkcheck-localserver-https
parent88cb385289db91ba65104c93707cec0d5d0fc854 (diff)
downloadsphinx-git-040a1e77438b2ca3d7e9ba925ed41eddc701e883.tar.gz
linkcheck: test invalid SSL is reported as broken
`linkcheck` logic suggests that SSL errors were originally expected to be ignored. Blaming the corresponding lines point to issue #3008: linkcheck to website with self-signed certificates. That issue was fixed by commit 4c7bec6460ae6154705bfd023e363e458f16d1b6, which ignored SSL errors. Probably because back then, users could not specify a CA bundle. A broken SSL certificate is a real issue, it should not be ignored. Users wishing to ignore issues for a specific link can use the `linkcheck_ignore` option. The current behavior is to report the site as broken, keep it.
Diffstat (limited to 'tests/roots/test-linkcheck-localserver-https')
-rw-r--r--tests/roots/test-linkcheck-localserver-https/conf.py1
-rw-r--r--tests/roots/test-linkcheck-localserver-https/index.rst1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/roots/test-linkcheck-localserver-https/conf.py b/tests/roots/test-linkcheck-localserver-https/conf.py
new file mode 100644
index 000000000..a45d22e28
--- /dev/null
+++ b/tests/roots/test-linkcheck-localserver-https/conf.py
@@ -0,0 +1 @@
+exclude_patterns = ['_build']
diff --git a/tests/roots/test-linkcheck-localserver-https/index.rst b/tests/roots/test-linkcheck-localserver-https/index.rst
new file mode 100644
index 000000000..fea598359
--- /dev/null
+++ b/tests/roots/test-linkcheck-localserver-https/index.rst
@@ -0,0 +1 @@
+`HTTPS server <https://localhost:7777/>`_