From 040a1e77438b2ca3d7e9ba925ed41eddc701e883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Freitag?= Date: Mon, 9 Nov 2020 22:26:02 +0100 Subject: 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. --- tests/roots/test-linkcheck-localserver-https/conf.py | 1 + tests/roots/test-linkcheck-localserver-https/index.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/roots/test-linkcheck-localserver-https/conf.py create mode 100644 tests/roots/test-linkcheck-localserver-https/index.rst (limited to 'tests/roots') 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 `_ -- cgit v1.2.1