diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-05-02 20:43:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 00:43:12 +0000 |
| commit | b7945a218ee193f6730b4b459e5ab28d13b1f040 (patch) | |
| tree | 690bc84008a60f3cd13d4dee11df39a8f66c85c7 /tests/specs/cert/localhost_unsafe_ssl | |
| parent | cf0579c7d4b69fcb205fb0d5320e0a00012720ee (diff) | |
chore: move cert itests to spec tests (#23607)
Diffstat (limited to 'tests/specs/cert/localhost_unsafe_ssl')
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/specs/cert/localhost_unsafe_ssl/__test__.jsonc b/tests/specs/cert/localhost_unsafe_ssl/__test__.jsonc new file mode 100644 index 000000000..90ca827dc --- /dev/null +++ b/tests/specs/cert/localhost_unsafe_ssl/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "run --quiet --reload --allow-net --unsafely-ignore-certificate-errors=deno.land cafile_url_imports.ts", + "output": "localhost_unsafe_ssl.ts.out", + "exitCode": 1 +} diff --git a/tests/specs/cert/localhost_unsafe_ssl/cafile_url_imports.ts b/tests/specs/cert/localhost_unsafe_ssl/cafile_url_imports.ts new file mode 100644 index 000000000..2355a8628 --- /dev/null +++ b/tests/specs/cert/localhost_unsafe_ssl/cafile_url_imports.ts @@ -0,0 +1,3 @@ +import { printHello } from "https://localhost:5545/subdir/mod2.ts"; +printHello(); +console.log("success"); diff --git a/tests/specs/cert/localhost_unsafe_ssl/localhost_unsafe_ssl.ts.out b/tests/specs/cert/localhost_unsafe_ssl/localhost_unsafe_ssl.ts.out new file mode 100644 index 000000000..81e490c1c --- /dev/null +++ b/tests/specs/cert/localhost_unsafe_ssl/localhost_unsafe_ssl.ts.out @@ -0,0 +1,3 @@ +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] |
