summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-02-24 10:02:08 +0100
committerPetr Štetiar <ynezz@true.cz>2022-02-24 10:04:36 +0100
commitdc54d2b544a1cecec9143805529c3016c208d574 (patch)
tree7bf313813c4b678432b447f8a72c0a716e24ffde
parent6a6011df3429ffa5958d12b1327eeda4fd9daa47 (diff)
downloaduclient-dc54d2b544a1cecec9143805529c3016c208d574.tar.gz
tests: add certificate check against letsencrypt.org
In order to prevent regressions like #9283, lets add runtime check against letsencrypt.org. References: https://github.com/openwrt/openwrt/issues/9283 References: https://github.com/wolfSSL/wolfssl/issues/4879 Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--tests/cram/test-san_uclient-fetch.t2
-rw-r--r--tests/cram/test_uclient-fetch.t2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/cram/test-san_uclient-fetch.t b/tests/cram/test-san_uclient-fetch.t
index 3158bde..435659b 100644
--- a/tests/cram/test-san_uclient-fetch.t
+++ b/tests/cram/test-san_uclient-fetch.t
@@ -65,6 +65,8 @@ check that SSL works:
$ uc -q -O /dev/null 'https://www.openwrt.org'
+ $ uc -q -O /dev/null 'https://letsencrypt.org'
+
$ uc -O /dev/null 'https://downloads.openwrt.org/does-not-exist' 2>&1 | grep error
HTTP error 404
diff --git a/tests/cram/test_uclient-fetch.t b/tests/cram/test_uclient-fetch.t
index 4ffe719..e22aa40 100644
--- a/tests/cram/test_uclient-fetch.t
+++ b/tests/cram/test_uclient-fetch.t
@@ -65,6 +65,8 @@ check that SSL works:
$ uc -q -O /dev/null 'https://www.openwrt.org'
+ $ uc -q -O /dev/null 'https://letsencrypt.org'
+
$ uc -O /dev/null 'https://downloads.openwrt.org/does-not-exist' 2>&1 | grep error
HTTP error 404