diff --git a/Cargo.lock b/Cargo.lock index 66d928d5164..78d7074b8f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5212,6 +5212,7 @@ dependencies = [ "derivative", "filetime", "fs_extra", + "getrandom", "indexmap", "lazy_static", "libc", diff --git a/lib/vfs/Cargo.toml b/lib/vfs/Cargo.toml index 03c70a78ead..1b8ddbd120e 100644 --- a/lib/vfs/Cargo.toml +++ b/lib/vfs/Cargo.toml @@ -24,6 +24,12 @@ tokio = { version = "1", features = [ "io-util", "sync", "macros" ], default_fea pin-project-lite = "0.2.9" indexmap = "1.9.2" +[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dependencies] +getrandom = { version = "0.2" } + +[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies] +getrandom = { version = "0.2", features = [ "js" ] } + [dev-dependencies] tempfile = "3.4.0" tokio = { version = "1", features = [ "io-util", "rt" ], default_features = false } diff --git a/lib/vfs/src/builder.rs b/lib/vfs/src/builder.rs index a6aa9143d87..312f29ff6c7 100644 --- a/lib/vfs/src/builder.rs +++ b/lib/vfs/src/builder.rs @@ -1,3 +1,4 @@ +use crate::random_file::RandomFile; use crate::{FileSystem, VirtualFile}; use std::path::{Path, PathBuf}; use tracing::*; @@ -81,6 +82,9 @@ impl RootFileSystemBuilder { let _ = tmp .new_open_options_ext() .insert_device_file(PathBuf::from("/dev/zero"), Box::new(ZeroFile::default())); + let _ = tmp + .new_open_options_ext() + .insert_device_file(PathBuf::from("/dev/urandom"), Box::new(RandomFile::default())); let _ = tmp.new_open_options_ext().insert_device_file( PathBuf::from("/dev/stdin"), self.stdin diff --git a/lib/vfs/src/lib.rs b/lib/vfs/src/lib.rs index 580905e5983..67cd5f4e721 100644 --- a/lib/vfs/src/lib.rs +++ b/lib/vfs/src/lib.rs @@ -24,6 +24,7 @@ pub mod special_file; pub mod tmp_fs; pub mod union_fs; pub mod zero_file; +pub mod random_file; // tty_file -> see wasmer_wasi::tty_file pub mod pipe; #[cfg(feature = "static-fs")] diff --git a/lib/vfs/src/random_file.rs b/lib/vfs/src/random_file.rs new file mode 100644 index 00000000000..45cf3beea7e --- /dev/null +++ b/lib/vfs/src/random_file.rs @@ -0,0 +1,88 @@ +//! Used for /dev/zero - infinitely returns zero +//! which is useful for commands like `dd if=/dev/zero of=bigfile.img size=1G` + +use std::io::{self, *}; +use std::pin::Pin; +use std::task::{Context, Poll}; + +use tokio::io::{AsyncRead, AsyncSeek, AsyncWrite}; + +use crate::VirtualFile; + +#[derive(Debug, Default)] +pub struct RandomFile { } + +impl AsyncSeek for RandomFile { + fn start_seek(self: Pin<&mut Self>, _position: SeekFrom) -> io::Result<()> { + Ok(()) + } + fn poll_complete(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> { + Poll::Ready(Ok(0)) + } +} + +impl AsyncWrite for RandomFile { + fn poll_write( + self: Pin<&mut Self>, + _cx: &mut Context<'_>, + buf: &[u8], + ) -> Poll> { + Poll::Ready(Ok(buf.len())) + } + fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> { + Poll::Ready(Ok(())) + } + fn poll_shutdown(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> { + Poll::Ready(Ok(())) + } + fn poll_write_vectored( + self: Pin<&mut Self>, + _cx: &mut Context<'_>, + bufs: &[IoSlice<'_>], + ) -> Poll> { + Poll::Ready(Ok(bufs.len())) + } + fn is_write_vectored(&self) -> bool { + false + } +} + +impl AsyncRead for RandomFile { + fn poll_read( + self: Pin<&mut Self>, + _cx: &mut Context<'_>, + buf: &mut tokio::io::ReadBuf<'_>, + ) -> Poll> { + let mut data = vec! [0u8; buf.remaining()]; + getrandom::getrandom(&mut data).ok(); + buf.put_slice(&data[..]); + Poll::Ready(Ok(())) + } +} + +impl VirtualFile for RandomFile { + fn last_accessed(&self) -> u64 { + 0 + } + fn last_modified(&self) -> u64 { + 0 + } + fn created_time(&self) -> u64 { + 0 + } + fn size(&self) -> u64 { + 0 + } + fn set_len(&mut self, _new_size: u64) -> crate::Result<()> { + Ok(()) + } + fn unlink(&mut self) -> crate::Result<()> { + Ok(()) + } + fn poll_read_ready(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> { + Poll::Ready(Ok(0)) + } + fn poll_write_ready(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> { + Poll::Ready(Ok(0)) + } +} diff --git a/tests/integration/cli/tests/snapshot.rs b/tests/integration/cli/tests/snapshot.rs index d00f24dc41b..3b8d19b9dad 100644 --- a/tests/integration/cli/tests/snapshot.rs +++ b/tests/integration/cli/tests/snapshot.rs @@ -10,6 +10,15 @@ use insta::assert_json_snapshot; use tempfile::NamedTempFile; use wasmer_integration_tests_cli::get_wasmer_path; +#[derive(serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)] +pub struct TestSpecHttp { + pub url: String, + pub port: u16, + pub http_code: u16, + #[serde(skip_serializing)] + pub expected_response: Vec, +} + #[derive(serde::Serialize, serde::Deserialize, Clone, PartialEq, Eq)] pub struct TestSpec { pub name: Option, @@ -23,6 +32,7 @@ pub struct TestSpec { pub debug_output: bool, pub enable_threads: bool, pub enable_network: bool, + pub http_request: Option, } impl std::fmt::Debug for TestSpec { @@ -75,6 +85,7 @@ impl TestBuilder { debug_output: false, enable_threads: true, enable_network: false, + http_request: None, }, } } @@ -397,7 +408,14 @@ fn test_snapshot_execve() { fn test_snapshot_web_server() { let snapshot = TestBuilder::new() .with_name(function!()) - .run_wasm(include_bytes!("./wasm/web-server.wasm")); + .enable_network(true) + .use_coreutils() + .use_pkg("sharrattj/wasmer-sh") + .stdin_str(r#" +rm -f /cfg/config.toml +/bin/webserver --log-level info --root /public --port 7777 +"#) + .run_wasm(include_bytes!("./wasm/dash.wasm")); assert_json_snapshot!(snapshot); } */ @@ -581,6 +599,26 @@ fn test_snapshot_dash_python() { assert_json_snapshot!(snapshot); } +#[test] +fn test_snapshot_dash_dev_zero() { + let snapshot = TestBuilder::new() + .with_name(function!()) + .use_coreutils() + .stdin_str("head -c 10 /dev/zero") + .run_wasm(include_bytes!("./wasm/dash.wasm")); + assert_json_snapshot!(snapshot); +} + +#[test] +fn test_snapshot_dash_dev_urandom() { + let snapshot = TestBuilder::new() + .with_name(function!()) + .use_coreutils() + .stdin_str("head -c 10 /dev/urandom | wc -c") + .run_wasm(include_bytes!("./wasm/dash.wasm")); + assert_json_snapshot!(snapshot); +} + #[test] fn test_snapshot_dash_dash() { let snapshot = TestBuilder::new() diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_bash.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_bash.snap index 653d60879fa..a6320addebf 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_bash.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_bash.snap @@ -46,7 +46,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_dash.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_dash.snap index ed4e5c2e578..402d1f73b57 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_dash.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_dash.snap @@ -42,7 +42,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_echo.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_echo.snap index 5c13e379740..94a4c7eba4a 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_echo.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_echo.snap @@ -22,7 +22,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_ls.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_ls.snap index 52deb735941..28b6baf39e4 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_ls.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_ls.snap @@ -22,7 +22,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_pipe.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_pipe.snap index 798c05a89d7..74c2589c7b3 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_pipe.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_pipe.snap @@ -36,7 +36,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_python.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_python.snap index 3121fecb271..3953094d187 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_python.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_python.snap @@ -62,7 +62,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_catsay.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_catsay.snap index 5c0635e12eb..50d1f473491 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_catsay.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_catsay.snap @@ -18,7 +18,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_condvar.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_condvar.snap index ff531056de7..ca5d9c4721f 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_condvar.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_condvar.snap @@ -10,7 +10,8 @@ expression: snapshot "stdin": null, "debug_output": true, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_cowsay.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_cowsay.snap index 5a3fc406125..c6dd2d95330 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_cowsay.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_cowsay.snap @@ -16,7 +16,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_bash.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_bash.snap index 5c036dc217a..5da326d2010 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_bash.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_bash.snap @@ -42,7 +42,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dash.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dash.snap index 85903f61299..ce3d515e08b 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dash.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dash.snap @@ -42,7 +42,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dev_urandom.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dev_urandom.snap new file mode 100644 index 00000000000..c50cef341e0 --- /dev/null +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dev_urandom.snap @@ -0,0 +1,58 @@ +--- +source: tests/integration/cli/tests/snapshot.rs +assertion_line: 642 +expression: snapshot +--- +{ + "spec": { + "name": "snapshot::test_snapshot_dash_dev_urandom", + "use_packages": [ + "sharrattj/coreutils" + ], + "cli_args": [], + "stdin": [ + 104, + 101, + 97, + 100, + 32, + 45, + 99, + 32, + 49, + 48, + 32, + 47, + 100, + 101, + 118, + 47, + 117, + 114, + 97, + 110, + 100, + 111, + 109, + 32, + 124, + 32, + 119, + 99, + 32, + 45, + 99 + ], + "debug_output": false, + "enable_threads": true, + "enable_network": false, + "http_request": null + }, + "result": { + "Success": { + "stdout": "10\n", + "stderr": "# # \n", + "exit_code": 0 + } + } +} diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dev_zero.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dev_zero.snap new file mode 100644 index 00000000000..13cee4f078b --- /dev/null +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dev_zero.snap @@ -0,0 +1,47 @@ +--- +source: tests/integration/cli/tests/snapshot.rs +assertion_line: 622 +expression: snapshot +--- +{ + "spec": { + "name": "snapshot::test_snapshot_dash_dev_zero", + "use_packages": [ + "sharrattj/coreutils" + ], + "cli_args": [], + "stdin": [ + 104, + 101, + 97, + 100, + 32, + 45, + 99, + 32, + 49, + 48, + 32, + 47, + 100, + 101, + 118, + 47, + 122, + 101, + 114, + 111 + ], + "debug_output": false, + "enable_threads": true, + "enable_network": false, + "http_request": null + }, + "result": { + "Success": { + "stdout": "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000", + "stderr": "# # \n", + "exit_code": 0 + } + } +} diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_echo.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_echo.snap index b3b49154484..a3d5c0bfca6 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_echo.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_echo.snap @@ -17,7 +17,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_echo_to_cat.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_echo_to_cat.snap index 506d1533073..9e1b2a09523 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_echo_to_cat.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_echo_to_cat.snap @@ -30,7 +30,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_python.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_python.snap index 39c438f8953..213dd2cbbdc 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_python.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_python.snap @@ -61,7 +61,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_default_file_system_tree.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_default_file_system_tree.snap index e622e5a16df..573045dbc29 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_default_file_system_tree.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_default_file_system_tree.snap @@ -12,7 +12,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_epoll.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_epoll.snap index 813af8148fd..c4205921acf 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_epoll.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_epoll.snap @@ -11,7 +11,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_execve.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_execve.snap index 2ed76b2ecc9..0ce6ff4c839 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_execve.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_execve.snap @@ -13,7 +13,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_file_copy.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_file_copy.snap index ba40fbad555..6f25b67fb72 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_file_copy.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_file_copy.snap @@ -19,7 +19,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_fork.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_fork.snap index fd3c2839048..049ee3ad203 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_fork.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_fork.snap @@ -12,7 +12,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_fork_and_exec.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_fork_and_exec.snap index d3a5d64c00c..e58c77c3913 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_fork_and_exec.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_fork_and_exec.snap @@ -12,7 +12,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump.snap index 3b26d747c82..aa6345d9b29 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump.snap @@ -12,7 +12,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump2.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump2.snap index 5fd441d7732..d6780142a59 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump2.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump2.snap @@ -12,7 +12,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump_fork.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump_fork.snap index da8f064be20..2f89e959ad9 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump_fork.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_longjump_fork.snap @@ -10,7 +10,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_multithreading.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_multithreading.snap index b5ff32bc177..40bb25db821 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_multithreading.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_multithreading.snap @@ -10,7 +10,8 @@ expression: snapshot "stdin": null, "debug_output": true, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_pipes.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_pipes.snap index 8926c2586fc..89ca9b7d8b1 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_pipes.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_pipes.snap @@ -12,7 +12,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_process_spawn.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_process_spawn.snap index 2fbf2167051..8a2d5a8afdd 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_process_spawn.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_process_spawn.snap @@ -12,7 +12,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_quickjs.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_quickjs.snap index 9e428e5716b..ad5798ed06f 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_quickjs.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_quickjs.snap @@ -26,7 +26,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_signals.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_signals.snap index 50f17b90fa8..a8a7ca3e2d6 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_signals.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_signals.snap @@ -11,7 +11,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_sleep.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_sleep.snap index 092101369c6..46ecdebdf98 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_sleep.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_sleep.snap @@ -10,7 +10,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_stdin_stdout_stderr.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_stdin_stdout_stderr.snap index 10c6487e451..a6b934661e9 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_stdin_stdout_stderr.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_stdin_stdout_stderr.snap @@ -18,7 +18,8 @@ expression: snapshot ], "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_tcp_client.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_tcp_client.snap index 4595e1d8f63..65332fd7f59 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_tcp_client.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_tcp_client.snap @@ -12,7 +12,8 @@ expression: snapshot "cli_args": [], "stdin": null, "debug_output": false, - "enable_threads": true + "enable_threads": true, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_thread_locals.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_thread_locals.snap index 2df0a7dc311..2ea4303fc64 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_thread_locals.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_thread_locals.snap @@ -10,7 +10,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": { diff --git a/tests/integration/cli/tests/snapshots/snapshot__snapshot_vfork.snap b/tests/integration/cli/tests/snapshots/snapshot__snapshot_vfork.snap index 9b680785ef7..dca49a66a11 100644 --- a/tests/integration/cli/tests/snapshots/snapshot__snapshot_vfork.snap +++ b/tests/integration/cli/tests/snapshots/snapshot__snapshot_vfork.snap @@ -12,7 +12,8 @@ expression: snapshot "stdin": null, "debug_output": false, "enable_threads": true, - "enable_network": false + "enable_network": false, + "http_request": null }, "result": { "Success": {