Skip to content

Commit

Permalink
Update testcontainers to 1.16.0. (#11325)
Browse files Browse the repository at this point in the history
* Update testcontainers to 1.16.0.

* Declare exposed ports for OpenLDAP container.

Co-authored-by: Bernd Ahlers <[email protected]>
  • Loading branch information
Donald Morton and bernd authored Sep 23, 2021
1 parent 4ca4a5b commit 1c99273
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public static OpenLDAPContainer createWithTLS() {
.withFileSystemBind(LDAPTestUtils.testTLSCertsPath("server-cert.pem"), CONTAINER_CERTS_PATH + "/server-cert.pem", BindMode.READ_ONLY)
.withFileSystemBind(LDAPTestUtils.testTLSCertsPath("server-key.pem"), CONTAINER_CERTS_PATH + "/server-key.pem", BindMode.READ_ONLY)
.withFileSystemBind(LDAPTestUtils.testTLSCertsPath("CA-cert.pem"), CONTAINER_CERTS_PATH + "/CA-cert.pem", BindMode.READ_ONLY)
.withFileSystemBind(LDAPTestUtils.testTLSCertsPath("dhparam.pem"), CONTAINER_CERTS_PATH + "/dhparam.pem", BindMode.READ_ONLY);
.withFileSystemBind(LDAPTestUtils.testTLSCertsPath("dhparam.pem"), CONTAINER_CERTS_PATH + "/dhparam.pem", BindMode.READ_ONLY)
.withExposedPorts(PORT, TLS_PORT);
}

public OpenLDAPContainer() {
Expand All @@ -74,6 +75,7 @@ public OpenLDAPContainer() {
withNetwork(Network.newNetwork());
withNetworkAliases("openldap");
withStartupTimeout(Duration.ofSeconds(10));
withExposedPorts(PORT);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
<nosqlunit.version>1.0.0-rc.5</nosqlunit.version>
<restassured.version>4.3.1</restassured.version>
<system-rules.version>1.19.0</system-rules.version>
<testcontainers.version>1.15.2</testcontainers.version>
<testcontainers.version>1.16.0</testcontainers.version>

<!-- Nodejs dependencies -->
<nodejs.version>v14.15.4</nodejs.version>
Expand Down

0 comments on commit 1c99273

Please sign in to comment.