about summary refs log tree commit diff stats
path: root/crates/rocie-server/tests/_testenv/mod.rs
blob: 56cea71ae88f0cbac5c4cbd8b2db396a47c95b5c (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;

pub(crate) 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,
}