chore: Update to Bollard v0.19.1

This commit is contained in:
Jack Wills
2025-06-17 19:23:49 +00:00
parent 8fb5ac4a94
commit 67e5888e00
7 changed files with 306 additions and 268 deletions
+3 -2
View File
@@ -149,7 +149,7 @@ async fn main() {
#[allow(clippy::unwrap_used)]
mod tests {
use std::sync::Arc;
use std::{str::FromStr, sync::Arc};
use bollard::service::{ContainerSummary, Port};
@@ -228,6 +228,7 @@ mod tests {
pub fn gen_container_summary(index: usize, state: &str) -> ContainerSummary {
ContainerSummary {
image_manifest_descriptor: None,
id: Some(format!("{index}")),
names: Some(vec![format!("container_{}", index)]),
image: Some(format!("image_{index}")),
@@ -243,7 +244,7 @@ mod tests {
size_rw: None,
size_root_fs: None,
labels: None,
state: Some(state.to_owned()),
state: Some(bollard::secret::ContainerSummaryStateEnum::from_str(state).unwrap()),
status: Some(format!("Up {index} hour")),
host_config: None,
network_settings: None,