about summary refs log tree commit diff stats
path: root/crates/rocie-server/tests/_testenv/mod.rs
blob: a37925e17d2423faa26884edf0489a9f6bca68d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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,
}