hagent unittests

pull/9/head
prplV 2024-10-31 10:39:16 +03:00
parent 3c04acdc9f
commit cdcef60c18
2 changed files with 23 additions and 1 deletions

22
src/utils/hagent.rs Normal file
View File

@ -0,0 +1,22 @@
// module needed to check host-agent health condition and to communicate with it
//
// code will be here
//
#[cfg(test)]
mod hagent_unittets {
#[tokio::test]
// maybe bool : true -> alive, false -> dead
// simple request on api
async fn hagent_healthcheck() {
}
#[tokio::test]
// Result<maybe Response>
// one-shot func
async fn send_metrics_to_hagent() {
}
}

View File

@ -1,4 +1,4 @@
use runner_rs::*; // use runner_rs::*;
#[test] #[test]
fn test() { fn test() {