From b7759538a45c1ba8190daf2fa052981ae71fcb53 Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Tue, 24 Oct 2023 16:13:52 +0200 Subject: [PATCH] chore(deps): fix tests after testcontainers update The API of testcontainers changed, our code had to be updated to build. Signed-off-by: Flavio Castelli --- src/client.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/client.rs b/src/client.rs index 02a6437a..ca284fd1 100644 --- a/src/client.rs +++ b/src/client.rs @@ -1651,11 +1651,7 @@ mod test { use tokio_util::io::StreamReader; #[cfg(feature = "test-registry")] - use testcontainers::{ - clients, - core::WaitFor, - images::{self, generic::GenericImage}, - }; + use testcontainers::{clients, core::WaitFor, GenericImage}; const HELLO_IMAGE_NO_TAG: &str = "webassembly.azurecr.io/hello-wasm"; const HELLO_IMAGE_TAG: &str = "webassembly.azurecr.io/hello-wasm:v1"; @@ -2368,13 +2364,13 @@ mod test { #[cfg(feature = "test-registry")] fn registry_image() -> GenericImage { - images::generic::GenericImage::new("docker.io/library/registry", "2") + GenericImage::new("docker.io/library/registry", "2") .with_wait_for(WaitFor::message_on_stderr("listening on ")) } #[cfg(feature = "test-registry")] fn registry_image_basic_auth(auth_path: &str) -> GenericImage { - images::generic::GenericImage::new("docker.io/library/registry", "2") + GenericImage::new("docker.io/library/registry", "2") .with_env_var("REGISTRY_AUTH", "htpasswd") .with_env_var("REGISTRY_AUTH_HTPASSWD_REALM", "Registry Realm") .with_env_var("REGISTRY_AUTH_HTPASSWD_PATH", "/auth/htpasswd")