Skip to content

Commit c8b46bf

Browse files
iainhDDtKey
andauthored
fix: OpenLDAP docker image reference (#408)
## Summary - switch the OpenLDAP module to `bitnamilegacy/openldap` - bump the image tag to 2.6.10 (the latest) --------- Co-authored-by: Artem Medvedev <[email protected]>
1 parent 288e97f commit c8b46bf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/openldap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenLDAP Testcontainer
22

3-
This modules provides the `bitnami/openldap` image as a testcontainer.
3+
This modules provides the `bitnamilegacy/openldap` image as a testcontainer.
44

55

66
## Testing

src/openldap/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ use testcontainers::{
66
CopyDataSource, CopyToContainer, Image,
77
};
88

9-
const NAME: &str = "bitnami/openldap";
10-
const TAG: &str = "2.6.8";
9+
const NAME: &str = "bitnamilegacy/openldap";
10+
const TAG: &str = "2.6.10";
1111
const OPENLDAP_PORT: ContainerPort = ContainerPort::Tcp(1389);
1212
const OPENLDAPS_PORT: ContainerPort = ContainerPort::Tcp(1636);
1313

1414
/// Module to work with [`OpenLDAP`] inside of tests.
1515
///
1616
/// Starts an instance of OpenLDAP.
17-
/// This module is based on the [`bitnami/openldap docker image`].
17+
/// This module is based on the [`bitnamilegacy/openldap docker image`].
1818
/// See the [`OpenLDAP configuration guide`] for further configuration options.
1919
///
2020
/// # Example
@@ -41,7 +41,7 @@ const OPENLDAPS_PORT: ContainerPort = ContainerPort::Tcp(1636);
4141
/// ```
4242
///
4343
/// [`OpenLDAP`]: https://www.openldap.org/
44-
/// [`bitnami/openldap docker image`]: https://hub.docker.com/r/bitnami/openldap
44+
/// [`bitnamilegacy/openldap docker image`]: https://hub.docker.com/r/bitnamilegacy/openldap
4545
/// [`OpenLDAP configuration guide`]: https://www.openldap.org/doc/admin26/guide.html
4646
#[derive(Debug, Clone)]
4747
pub struct OpenLDAP {
@@ -547,7 +547,7 @@ mod tests {
547547
.await?
548548
.success()?;
549549
let users = read_users(&mut ldap, "(cn=*)", &["cn"]).await?;
550-
assert_eq!(users.len(), 2); // cn=maximiliane and cn=readers
550+
assert_eq!(users.len(), 1); // cn=maximiliane
551551
ldap.unbind().await?;
552552
Ok(())
553553
}
@@ -574,7 +574,7 @@ mod tests {
574574
assert_eq!(access.len(), 0, "no search until now");
575575

576576
let users = read_users(&mut ldap, "(cn=*)", &["cn"]).await?;
577-
assert_eq!(users.len(), 3, "cn=readers should be read");
577+
assert_eq!(users.len(), 2, "cn=readers should be read");
578578

579579
let access = read_access_log(&mut ldap, "(reqType=search)", &["*"]).await?;
580580
assert_eq!(access.len(), 1, "access log contains 1xread_users");
@@ -741,7 +741,7 @@ H32P9zbIKaSiPxFg5JVRW5hpQWUI1dYr3CpKP4i98w==
741741
.await?
742742
.success()?;
743743
let users = read_users(&mut ldap, "(cn=*)", &["cn"]).await?;
744-
assert_eq!(users.len(), 2); // cn=maximiliane and cn=readers
744+
assert_eq!(users.len(), 1); // cn=maximiliane
745745
ldap.unbind().await?;
746746
Ok(())
747747
}

0 commit comments

Comments
 (0)