about summary refs log tree commit diff stats
path: root/crates/rocie-server/tests/_testenv/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rocie-server/tests/_testenv/mod.rs')
-rw-r--r--crates/rocie-server/tests/_testenv/mod.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/crates/rocie-server/tests/_testenv/mod.rs b/crates/rocie-server/tests/_testenv/mod.rs
new file mode 100644
index 0000000..a37925e
--- /dev/null
+++ b/crates/rocie-server/tests/_testenv/mod.rs
@@ -0,0 +1,23 @@
+//! This code was taken from *fd* at 30-06-2025.
+
+use std::{path::PathBuf, process};
+
+use rocie_client::apis::configuration::Configuration;
+
+mod init;
+pub(crate) mod log;
+
+/// Environment for the integration tests.
+pub(crate) struct TestEnv {
+    pub(crate) name: &'static str,
+    pub(crate) port: String,
+    pub(crate) test_dir: PathBuf,
+    pub(crate) paths: Paths,
+    pub(crate) server_process: Option<process::Child>,
+    pub(crate) config: Configuration,
+}
+
+pub(crate) struct Paths {
+    pub(crate) db: PathBuf,
+    pub(crate) test_dir: PathBuf,
+}