summaryrefslogtreecommitdiff
path: root/tests/specs/cert/cafile_ts_fetch_unsafe_ssl
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-02 20:43:12 -0400
committerGitHub <noreply@github.com>2024-05-03 00:43:12 +0000
commitb7945a218ee193f6730b4b459e5ab28d13b1f040 (patch)
tree690bc84008a60f3cd13d4dee11df39a8f66c85c7 /tests/specs/cert/cafile_ts_fetch_unsafe_ssl
parentcf0579c7d4b69fcb205fb0d5320e0a00012720ee (diff)
chore: move cert itests to spec tests (#23607)
Diffstat (limited to 'tests/specs/cert/cafile_ts_fetch_unsafe_ssl')
-rw-r--r--tests/specs/cert/cafile_ts_fetch_unsafe_ssl/__test__.jsonc5
-rw-r--r--tests/specs/cert/cafile_ts_fetch_unsafe_ssl/cafile_ts_fetch.ts3
-rw-r--r--tests/specs/cert/cafile_ts_fetch_unsafe_ssl/cafile_ts_fetch_unsafe_ssl.ts.out3
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/__test__.jsonc b/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/__test__.jsonc
new file mode 100644
index 000000000..bb4a95f79
--- /dev/null
+++ b/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "args": "run --quiet --reload --allow-net --unsafely-ignore-certificate-errors cafile_ts_fetch.ts",
+ "flaky": true,
+ "output": "cafile_ts_fetch_unsafe_ssl.ts.out"
+}
diff --git a/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/cafile_ts_fetch.ts b/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/cafile_ts_fetch.ts
new file mode 100644
index 000000000..12fcda007
--- /dev/null
+++ b/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/cafile_ts_fetch.ts
@@ -0,0 +1,3 @@
+fetch("https://localhost:5545/cert/cafile_ts_fetch.ts.out")
+ .then((r) => r.text())
+ .then((t) => console.log(t.trimEnd()));
diff --git a/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/cafile_ts_fetch_unsafe_ssl.ts.out b/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/cafile_ts_fetch_unsafe_ssl.ts.out
new file mode 100644
index 000000000..a0934e584
--- /dev/null
+++ b/tests/specs/cert/cafile_ts_fetch_unsafe_ssl/cafile_ts_fetch_unsafe_ssl.ts.out
@@ -0,0 +1,3 @@
+DANGER: TLS certificate validation is disabled for all hostnames
+[WILDCARD]
+Hello