summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorAleksei Kosyrev <albnnc@gmail.com>2022-05-18 14:32:12 +0300
committerGitHub <noreply@github.com>2022-05-18 13:32:12 +0200
commit037466e9cdec913d0f146532fde28b26093267f1 (patch)
treec30c4aea060be94e3fcbc24b6723327e4b84379c /cli/tests/testdata
parent4d8261070095e49de68ca21ac3b564887039bd24 (diff)
fix(ext/tls): ability to ignore IP-address certificate errors (#14610)
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/ip_address_unsafe_ssl.ts2
-rw-r--r--cli/tests/testdata/ip_address_unsafe_ssl.ts.out2
2 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/ip_address_unsafe_ssl.ts b/cli/tests/testdata/ip_address_unsafe_ssl.ts
new file mode 100644
index 000000000..a3268888f
--- /dev/null
+++ b/cli/tests/testdata/ip_address_unsafe_ssl.ts
@@ -0,0 +1,2 @@
+const r = await fetch("https://1.1.1.1");
+console.log(r.status);
diff --git a/cli/tests/testdata/ip_address_unsafe_ssl.ts.out b/cli/tests/testdata/ip_address_unsafe_ssl.ts.out
new file mode 100644
index 000000000..d4ebb2617
--- /dev/null
+++ b/cli/tests/testdata/ip_address_unsafe_ssl.ts.out
@@ -0,0 +1,2 @@
+DANGER: TLS certificate validation is disabled for: 1.1.1.1
+200