diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 2 | ||||
-rw-r--r-- | cli/tests/deno_land_unsafe_ssl.ts | 2 | ||||
-rw-r--r-- | cli/tests/deno_land_unsafe_ssl.ts.out | 2 | ||||
-rw-r--r-- | cli/tests/integration/mod.rs | 14 | ||||
-rw-r--r-- | cli/tests/localhost_unsafe_ssl.ts.out | 3 |
5 files changed, 22 insertions, 1 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index a314415a6..a7fe7faa4 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -2,7 +2,7 @@ [package] name = "deno" -version = "1.12.2" +version = "1.13.0" authors = ["the Deno authors"] default-run = "deno" edition = "2018" diff --git a/cli/tests/deno_land_unsafe_ssl.ts b/cli/tests/deno_land_unsafe_ssl.ts new file mode 100644 index 000000000..f5e8dcc80 --- /dev/null +++ b/cli/tests/deno_land_unsafe_ssl.ts @@ -0,0 +1,2 @@ +const r = await fetch("https://google.com"); +console.log(r.status); diff --git a/cli/tests/deno_land_unsafe_ssl.ts.out b/cli/tests/deno_land_unsafe_ssl.ts.out new file mode 100644 index 000000000..5ca4d68e2 --- /dev/null +++ b/cli/tests/deno_land_unsafe_ssl.ts.out @@ -0,0 +1,2 @@ +DANGER: TLS ceritificate validation is disabled for: deno.land +200 diff --git a/cli/tests/integration/mod.rs b/cli/tests/integration/mod.rs index 392101e54..ee9c195f3 100644 --- a/cli/tests/integration/mod.rs +++ b/cli/tests/integration/mod.rs @@ -487,6 +487,20 @@ itest!(cafile_ts_fetch_unsafe_ssl { http_server: true, }); +itest!(deno_land_unsafe_ssl { + args: + "run --quiet --reload --allow-net --unsafely-ignore-certificate-errors=deno.land deno_land_unsafe_ssl.ts", + output: "deno_land_unsafe_ssl.ts.out", +}); + +itest!(localhost_unsafe_ssl { + args: + "run --quiet --reload --allow-net --unsafely-ignore-certificate-errors=deno.land cafile_url_imports.ts", + output: "localhost_unsafe_ssl.ts.out", + http_server: true, + exit_code: 1, +}); + #[test] #[ignore] fn cafile_env_fetch() { diff --git a/cli/tests/localhost_unsafe_ssl.ts.out b/cli/tests/localhost_unsafe_ssl.ts.out new file mode 100644 index 000000000..0bb6d0fb4 --- /dev/null +++ b/cli/tests/localhost_unsafe_ssl.ts.out @@ -0,0 +1,3 @@ +DANGER: TLS ceritificate validation is disabled for: deno.land +error: error sending request for url (https://localhost:5545/cli/tests/subdir/mod2.ts): error trying to connect: invalid certificate: UnknownIssuer + at [WILDCARD]tests/cafile_url_imports.ts:1:0 |