From b7945a218ee193f6730b4b459e5ab28d13b1f040 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 2 May 2024 20:43:12 -0400 Subject: chore: move cert itests to spec tests (#23607) --- tests/testdata/cert/cafile_info.ts.out | 14 -------------- tests/testdata/cert/cafile_ts_fetch_unsafe_ssl.ts.out | 3 --- tests/testdata/cert/cafile_url_imports.ts.out | 2 -- tests/testdata/cert/cafile_url_imports_unsafe_ssl.ts.out | 3 --- tests/testdata/cert/deno_land_unsafe_ssl.ts | 2 -- tests/testdata/cert/deno_land_unsafe_ssl.ts.out | 2 -- tests/testdata/cert/ip_address_unsafe_ssl.ts | 2 -- tests/testdata/cert/ip_address_unsafe_ssl.ts.out | 2 -- tests/testdata/cert/localhost_unsafe_ssl.ts.out | 3 --- 9 files changed, 33 deletions(-) delete mode 100644 tests/testdata/cert/cafile_info.ts.out delete mode 100644 tests/testdata/cert/cafile_ts_fetch_unsafe_ssl.ts.out delete mode 100644 tests/testdata/cert/cafile_url_imports.ts.out delete mode 100644 tests/testdata/cert/cafile_url_imports_unsafe_ssl.ts.out delete mode 100644 tests/testdata/cert/deno_land_unsafe_ssl.ts delete mode 100644 tests/testdata/cert/deno_land_unsafe_ssl.ts.out delete mode 100644 tests/testdata/cert/ip_address_unsafe_ssl.ts delete mode 100644 tests/testdata/cert/ip_address_unsafe_ssl.ts.out delete mode 100644 tests/testdata/cert/localhost_unsafe_ssl.ts.out (limited to 'tests/testdata/cert') diff --git a/tests/testdata/cert/cafile_info.ts.out b/tests/testdata/cert/cafile_info.ts.out deleted file mode 100644 index 279453f88..000000000 --- a/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/tests/testdata/cert/cafile_ts_fetch_unsafe_ssl.ts.out b/tests/testdata/cert/cafile_ts_fetch_unsafe_ssl.ts.out deleted file mode 100644 index a0934e584..000000000 --- a/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/tests/testdata/cert/cafile_url_imports.ts.out b/tests/testdata/cert/cafile_url_imports.ts.out deleted file mode 100644 index 989ce33e9..000000000 --- a/tests/testdata/cert/cafile_url_imports.ts.out +++ /dev/null @@ -1,2 +0,0 @@ -Hello -success diff --git a/tests/testdata/cert/cafile_url_imports_unsafe_ssl.ts.out b/tests/testdata/cert/cafile_url_imports_unsafe_ssl.ts.out deleted file mode 100644 index daebcd766..000000000 --- a/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/tests/testdata/cert/deno_land_unsafe_ssl.ts b/tests/testdata/cert/deno_land_unsafe_ssl.ts deleted file mode 100644 index f5e8dcc80..000000000 --- a/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/tests/testdata/cert/deno_land_unsafe_ssl.ts.out b/tests/testdata/cert/deno_land_unsafe_ssl.ts.out deleted file mode 100644 index cbf52b076..000000000 --- a/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/tests/testdata/cert/ip_address_unsafe_ssl.ts b/tests/testdata/cert/ip_address_unsafe_ssl.ts deleted file mode 100644 index a3268888f..000000000 --- a/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/tests/testdata/cert/ip_address_unsafe_ssl.ts.out b/tests/testdata/cert/ip_address_unsafe_ssl.ts.out deleted file mode 100644 index d4ebb2617..000000000 --- a/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/tests/testdata/cert/localhost_unsafe_ssl.ts.out b/tests/testdata/cert/localhost_unsafe_ssl.ts.out deleted file mode 100644 index 81e490c1c..000000000 --- a/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] -- cgit v1.2.3