Skip to content

Commit

Permalink
Update tests for new struct
Browse files Browse the repository at this point in the history
  • Loading branch information
yeazelm committed Mar 15, 2024
1 parent 75a8e9a commit 8599f25
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion integ/src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use async_trait::async_trait;
use k8s_openapi::api::core::v1::Pod;
use kube::api::{Api, ListParams, ObjectList};
use kube::api::{Api, ListParams, ObjectList, TypeMeta};
use snafu::OptionExt;
use snafu::ResultExt;
use std::time::SystemTime;
Expand Down Expand Up @@ -316,6 +316,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
true,
),
Expand All @@ -332,6 +336,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
false,
),
Expand All @@ -344,6 +352,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
false,
),
Expand Down Expand Up @@ -408,6 +420,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
true,
),
Expand All @@ -430,6 +446,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
false,
),
Expand All @@ -442,6 +462,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
false,
),
Expand Down Expand Up @@ -485,6 +509,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
false,
),
Expand Down Expand Up @@ -516,6 +544,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
true,
),
Expand Down Expand Up @@ -547,6 +579,10 @@ pub(crate) mod test {
resource_version: Some("83212702".to_string()),
self_link: None,
},
types: TypeMeta {
api_version: "v1".to_string(),
kind: "Custom".to_string(),
},
},
false,
),
Expand Down

0 comments on commit 8599f25

Please sign in to comment.