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 ea65220 commit ca41692
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
38 changes: 37 additions & 1 deletion integ/src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub(crate) mod test {
use std::str::FromStr;

use k8s_openapi::api::core::v1::{Pod, PodStatus};
use kube::api::{ListMeta, ObjectList, ObjectMeta};
use kube::api::{ListMeta, ObjectList, ObjectMeta, TypeMeta};

use models::node::{BottlerocketShadow, BottlerocketShadowState, BottlerocketShadowStatus};

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
2 changes: 1 addition & 1 deletion models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lazy_static = "1.4"
maplit = "1.0"
mockall = { version = "0.11", optional = true }
opentelemetry = { version = "0.22"}
opentelemetry_sdk = "0.22"
opentelemetry_sdk = { version = "0.22", features = ["rt-tokio-current-thread"]}
regex = "1.9"
reqwest = { version = "0.11", default-features = false, features = [ "json" ] }
schemars = "0.8.11"
Expand Down

0 comments on commit ca41692

Please sign in to comment.