summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/cert
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/cert')
-rw-r--r--cli/tests/testdata/cert/cafile_info.ts24
-rw-r--r--cli/tests/testdata/cert/cafile_info.ts.out14
-rw-r--r--cli/tests/testdata/cert/cafile_ts_fetch.ts3
-rw-r--r--cli/tests/testdata/cert/cafile_ts_fetch.ts.out2
-rw-r--r--cli/tests/testdata/cert/cafile_ts_fetch_unsafe_ssl.ts.out3
-rw-r--r--cli/tests/testdata/cert/cafile_url_imports.ts3
-rw-r--r--cli/tests/testdata/cert/cafile_url_imports.ts.out2
-rw-r--r--cli/tests/testdata/cert/cafile_url_imports_unsafe_ssl.ts.out3
-rw-r--r--cli/tests/testdata/cert/deno_land_unsafe_ssl.ts2
-rw-r--r--cli/tests/testdata/cert/deno_land_unsafe_ssl.ts.out2
-rw-r--r--cli/tests/testdata/cert/ip_address_unsafe_ssl.ts2
-rw-r--r--cli/tests/testdata/cert/ip_address_unsafe_ssl.ts.out2
-rw-r--r--cli/tests/testdata/cert/listen_tls_alpn.ts14
-rw-r--r--cli/tests/testdata/cert/listen_tls_alpn_fail.ts20
-rw-r--r--cli/tests/testdata/cert/localhost_unsafe_ssl.ts.out3
15 files changed, 0 insertions, 99 deletions
diff --git a/cli/tests/testdata/cert/cafile_info.ts b/cli/tests/testdata/cert/cafile_info.ts
deleted file mode 100644
index b41873f73..000000000
--- a/cli/tests/testdata/cert/cafile_info.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-// When run against the test HTTP server, it will serve different media types
-// based on the URL containing `.t#.` strings, which exercises the different
-// mapping of media types end to end.
-
-import { loaded as loadedTs1 } from "https://localhost:5545/subdir/mt_text_typescript.t1.ts";
-import { loaded as loadedTs2 } from "https://localhost:5545/subdir/mt_video_vdn.t2.ts";
-import { loaded as loadedTs3 } from "https://localhost:5545/subdir/mt_video_mp2t.t3.ts";
-import { loaded as loadedTs4 } from "https://localhost:5545/subdir/mt_application_x_typescript.t4.ts";
-import { loaded as loadedJs1 } from "https://localhost:5545/subdir/mt_text_javascript.j1.js";
-import { loaded as loadedJs2 } from "https://localhost:5545/subdir/mt_application_ecmascript.j2.js";
-import { loaded as loadedJs3 } from "https://localhost:5545/subdir/mt_text_ecmascript.j3.js";
-import { loaded as loadedJs4 } from "https://localhost:5545/subdir/mt_application_x_javascript.j4.js";
-
-console.log(
- "success",
- loadedTs1,
- loadedTs2,
- loadedTs3,
- loadedTs4,
- loadedJs1,
- loadedJs2,
- loadedJs3,
- loadedJs4,
-);
diff --git a/cli/tests/testdata/cert/cafile_info.ts.out b/cli/tests/testdata/cert/cafile_info.ts.out
deleted file mode 100644
index 279453f88..000000000
--- a/cli/tests/testdata/cert/cafile_info.ts.out
+++ /dev/null
@@ -1,14 +0,0 @@
-local: [WILDCARD]https[WILDCARD]localhost_PORT5545[WILDCARD]
-type: TypeScript
-dependencies: 8 unique
-size: [WILDCARD]
-
-https://localhost:5545/cert/cafile_info.ts ([WILDCARD])
-├── https://localhost:5545/subdir/mt_text_typescript.t1.ts ([WILDCARD])
-├── https://localhost:5545/subdir/mt_video_vdn.t2.ts ([WILDCARD])
-├── https://localhost:5545/subdir/mt_video_mp2t.t3.ts ([WILDCARD])
-├── https://localhost:5545/subdir/mt_application_x_typescript.t4.ts ([WILDCARD])
-├── https://localhost:5545/subdir/mt_text_javascript.j1.js ([WILDCARD])
-├── https://localhost:5545/subdir/mt_application_ecmascript.j2.js ([WILDCARD])
-├── https://localhost:5545/subdir/mt_text_ecmascript.j3.js ([WILDCARD])
-└── https://localhost:5545/subdir/mt_application_x_javascript.j4.js ([WILDCARD])
diff --git a/cli/tests/testdata/cert/cafile_ts_fetch.ts b/cli/tests/testdata/cert/cafile_ts_fetch.ts
deleted file mode 100644
index 12fcda007..000000000
--- a/cli/tests/testdata/cert/cafile_ts_fetch.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-fetch("https://localhost:5545/cert/cafile_ts_fetch.ts.out")
- .then((r) => r.text())
- .then((t) => console.log(t.trimEnd()));
diff --git a/cli/tests/testdata/cert/cafile_ts_fetch.ts.out b/cli/tests/testdata/cert/cafile_ts_fetch.ts.out
deleted file mode 100644
index 699b756ed..000000000
--- a/cli/tests/testdata/cert/cafile_ts_fetch.ts.out
+++ /dev/null
@@ -1,2 +0,0 @@
-[WILDCARD]
-Hello
diff --git a/cli/tests/testdata/cert/cafile_ts_fetch_unsafe_ssl.ts.out b/cli/tests/testdata/cert/cafile_ts_fetch_unsafe_ssl.ts.out
deleted file mode 100644
index a0934e584..000000000
--- a/cli/tests/testdata/cert/cafile_ts_fetch_unsafe_ssl.ts.out
+++ /dev/null
@@ -1,3 +0,0 @@
-DANGER: TLS certificate validation is disabled for all hostnames
-[WILDCARD]
-Hello
diff --git a/cli/tests/testdata/cert/cafile_url_imports.ts b/cli/tests/testdata/cert/cafile_url_imports.ts
deleted file mode 100644
index 2355a8628..000000000
--- a/cli/tests/testdata/cert/cafile_url_imports.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { printHello } from "https://localhost:5545/subdir/mod2.ts";
-printHello();
-console.log("success");
diff --git a/cli/tests/testdata/cert/cafile_url_imports.ts.out b/cli/tests/testdata/cert/cafile_url_imports.ts.out
deleted file mode 100644
index 989ce33e9..000000000
--- a/cli/tests/testdata/cert/cafile_url_imports.ts.out
+++ /dev/null
@@ -1,2 +0,0 @@
-Hello
-success
diff --git a/cli/tests/testdata/cert/cafile_url_imports_unsafe_ssl.ts.out b/cli/tests/testdata/cert/cafile_url_imports_unsafe_ssl.ts.out
deleted file mode 100644
index daebcd766..000000000
--- a/cli/tests/testdata/cert/cafile_url_imports_unsafe_ssl.ts.out
+++ /dev/null
@@ -1,3 +0,0 @@
-DANGER: TLS certificate validation is disabled for: localhost
-Hello
-success
diff --git a/cli/tests/testdata/cert/deno_land_unsafe_ssl.ts b/cli/tests/testdata/cert/deno_land_unsafe_ssl.ts
deleted file mode 100644
index f5e8dcc80..000000000
--- a/cli/tests/testdata/cert/deno_land_unsafe_ssl.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-const r = await fetch("https://google.com");
-console.log(r.status);
diff --git a/cli/tests/testdata/cert/deno_land_unsafe_ssl.ts.out b/cli/tests/testdata/cert/deno_land_unsafe_ssl.ts.out
deleted file mode 100644
index cbf52b076..000000000
--- a/cli/tests/testdata/cert/deno_land_unsafe_ssl.ts.out
+++ /dev/null
@@ -1,2 +0,0 @@
-DANGER: TLS certificate validation is disabled for: deno.land
-200
diff --git a/cli/tests/testdata/cert/ip_address_unsafe_ssl.ts b/cli/tests/testdata/cert/ip_address_unsafe_ssl.ts
deleted file mode 100644
index a3268888f..000000000
--- a/cli/tests/testdata/cert/ip_address_unsafe_ssl.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-const r = await fetch("https://1.1.1.1");
-console.log(r.status);
diff --git a/cli/tests/testdata/cert/ip_address_unsafe_ssl.ts.out b/cli/tests/testdata/cert/ip_address_unsafe_ssl.ts.out
deleted file mode 100644
index d4ebb2617..000000000
--- a/cli/tests/testdata/cert/ip_address_unsafe_ssl.ts.out
+++ /dev/null
@@ -1,2 +0,0 @@
-DANGER: TLS certificate validation is disabled for: 1.1.1.1
-200
diff --git a/cli/tests/testdata/cert/listen_tls_alpn.ts b/cli/tests/testdata/cert/listen_tls_alpn.ts
deleted file mode 100644
index 6b92364ba..000000000
--- a/cli/tests/testdata/cert/listen_tls_alpn.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-const listener = Deno.listenTls({
- port: Number(Deno.args[0]),
- cert: Deno.readTextFileSync("./tls/localhost.crt"),
- key: Deno.readTextFileSync("./tls/localhost.key"),
- alpnProtocols: ["h2", "http/1.1", "foobar"],
-});
-
-console.log("READY");
-
-const conn = await listener.accept() as Deno.TlsConn;
-await conn.handshake();
-conn.close();
-
-listener.close();
diff --git a/cli/tests/testdata/cert/listen_tls_alpn_fail.ts b/cli/tests/testdata/cert/listen_tls_alpn_fail.ts
deleted file mode 100644
index e321c9bd3..000000000
--- a/cli/tests/testdata/cert/listen_tls_alpn_fail.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { assertRejects } from "../../../../test_util/std/assert/mod.ts";
-
-const listener = Deno.listenTls({
- port: Number(Deno.args[0]),
- cert: Deno.readTextFileSync("./tls/localhost.crt"),
- key: Deno.readTextFileSync("./tls/localhost.key"),
- alpnProtocols: ["h2", "http/1.1", "foobar"],
-});
-
-console.log("READY");
-
-const conn = await listener.accept() as Deno.TlsConn;
-await assertRejects(
- () => conn.handshake(),
- Deno.errors.InvalidData,
- "peer doesn't support any known protocol",
-);
-conn.close();
-
-listener.close();
diff --git a/cli/tests/testdata/cert/localhost_unsafe_ssl.ts.out b/cli/tests/testdata/cert/localhost_unsafe_ssl.ts.out
deleted file mode 100644
index 81e490c1c..000000000
--- a/cli/tests/testdata/cert/localhost_unsafe_ssl.ts.out
+++ /dev/null
@@ -1,3 +0,0 @@
-DANGER: TLS certificate validation is disabled for: deno.land
-error: Import 'https://localhost:5545/subdir/mod2.ts' failed: error sending request for url (https://localhost:5545/subdir/mod2.ts): error trying to connect: invalid peer certificate: UnknownIssuer
- at file:///[WILDCARD]/cafile_url_imports.ts:[WILDCARD]