Skip to content

Commit

Permalink
chore(deps): fix tests after testcontainers update
Browse files Browse the repository at this point in the history
The API of testcontainers changed, our code had to be updated to build.

Signed-off-by: Flavio Castelli <[email protected]>
  • Loading branch information
flavio committed Oct 24, 2023
1 parent 9500b31 commit b775953
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit b775953

Please sign in to comment.