hagent unittests
parent
3c04acdc9f
commit
cdcef60c18
|
|
@ -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() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use runner_rs::*;
|
// use runner_rs::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test() {
|
fn test() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue