summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-01-13 16:48:33 +0100
committerGitHub <noreply@github.com>2021-01-13 16:48:33 +0100
commit18b31504011aef2c9e414287eae1bd9745cdaef5 (patch)
tree8ab55ac292374b59cba6e719b8dbefceb35b7d25 /cli/tests
parent1728b3ba1972faf532f261d2a7cfd6130d0f548f (diff)
build: disable cafile_* tests and use slow runners (#9089)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration_tests.rs57
1 files changed, 32 insertions, 25 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 5067b87eb..586c405e3 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -3269,31 +3269,32 @@ itest!(cache_random_extension {
http_server: true,
});
-itest!(cafile_url_imports {
- args: "run --quiet --reload --cert tls/RootCA.pem cafile_url_imports.ts",
- output: "cafile_url_imports.ts.out",
- http_server: true,
-});
-
-itest!(cafile_ts_fetch {
- args:
- "run --quiet --reload --allow-net --cert tls/RootCA.pem cafile_ts_fetch.ts",
- output: "cafile_ts_fetch.ts.out",
- http_server: true,
-});
-
-itest!(cafile_eval {
- args: "eval --cert tls/RootCA.pem fetch('https://localhost:5545/cli/tests/cafile_ts_fetch.ts.out').then(r=>r.text()).then(t=>console.log(t.trimEnd()))",
- output: "cafile_ts_fetch.ts.out",
- http_server: true,
-});
-
-itest!(cafile_info {
- args:
- "info --quiet --cert tls/RootCA.pem https://localhost:5545/cli/tests/cafile_info.ts",
- output: "cafile_info.ts.out",
- http_server: true,
-});
+// TODO(lucacasonato): reenable these tests once we figure out what is wrong with cafile tests
+// itest!(cafile_url_imports {
+// args: "run --quiet --reload --cert tls/RootCA.pem cafile_url_imports.ts",
+// output: "cafile_url_imports.ts.out",
+// http_server: true,
+// });
+
+// itest!(cafile_ts_fetch {
+// args:
+// "run --quiet --reload --allow-net --cert tls/RootCA.pem cafile_ts_fetch.ts",
+// output: "cafile_ts_fetch.ts.out",
+// http_server: true,
+// });
+
+// itest!(cafile_eval {
+// args: "eval --cert tls/RootCA.pem fetch('https://localhost:5545/cli/tests/cafile_ts_fetch.ts.out').then(r=>r.text()).then(t=>console.log(t.trimEnd()))",
+// output: "cafile_ts_fetch.ts.out",
+// http_server: true,
+// });
+
+// itest!(cafile_info {
+// args:
+// "info --quiet --cert tls/RootCA.pem https://localhost:5545/cli/tests/cafile_info.ts",
+// output: "cafile_info.ts.out",
+// http_server: true,
+// });
itest!(disallow_http_from_https_js {
args: "run --quiet --reload --cert tls/RootCA.pem https://localhost:5545/cli/tests/disallow_http_from_https.js",
@@ -3620,6 +3621,7 @@ fn no_validate_asm() {
}
#[test]
+#[ignore]
fn cafile_env_fetch() {
use deno_core::url::Url;
let _g = util::http_server();
@@ -3640,6 +3642,7 @@ fn cafile_env_fetch() {
}
#[test]
+#[ignore]
fn cafile_fetch() {
use deno_core::url::Url;
let _g = util::http_server();
@@ -3663,6 +3666,7 @@ fn cafile_fetch() {
}
#[test]
+#[ignore]
fn cafile_install_remote_module() {
let _g = util::http_server();
let temp_dir = TempDir::new().expect("tempdir fail");
@@ -3684,6 +3688,8 @@ fn cafile_install_remote_module() {
.arg("https://localhost:5545/cli/tests/echo.ts")
.output()
.expect("Failed to spawn script");
+ println!("{}", std::str::from_utf8(&install_output.stdout).unwrap());
+ eprintln!("{}", std::str::from_utf8(&install_output.stderr).unwrap());
assert!(install_output.status.success());
let mut echo_test_path = bin_dir.join("echo_test");
@@ -3703,6 +3709,7 @@ fn cafile_install_remote_module() {
}
#[test]
+#[ignore]
fn cafile_bundle_remote_exports() {
let _g = util::http_server();