File tree Expand file tree Collapse file tree 6 files changed +16
-22
lines changed
main/java/org/testcontainers
test/java/org/testcontainers Expand file tree Collapse file tree 6 files changed +16
-22
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,9 @@ public class TimeplusContainer extends JdbcDatabaseContainer<TimeplusContainer>
15
15
16
16
public static final String NAME = "timeplus" ;
17
17
18
- private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName .parse (
19
- "ghcr.io/timeplus-io/proton:latest"
20
- );
18
+ private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName .parse ("timeplus/timeplusd:2.2.10" );
21
19
22
- private static final DockerImageName TIMEPLUS_IMAGE_NAME = DockerImageName .parse (
23
- "ghcr.io/timeplus-io/proton:latest"
24
- );
20
+ private static final DockerImageName TIMEPLUS_IMAGE_NAME = DockerImageName .parse ("timeplus/timeplusd:2.3.3" );
25
21
26
22
@ Deprecated
27
23
public static final String IMAGE = DEFAULT_IMAGE_NAME .getUnversionedPart ();
Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ public class TimeplusContainer extends JdbcDatabaseContainer<TimeplusContainer>
15
15
16
16
private static final String NAME = "timeplus" ;
17
17
18
- private static final DockerImageName TIMEPLUS_IMAGE_NAME = DockerImageName .parse (
19
- "ghcr.io/timeplus-io/proton:latest"
20
- );
18
+ private static final DockerImageName TIMEPLUS_IMAGE_NAME = DockerImageName .parse ("timeplus/timeplusd:2.3.3" );
21
19
22
20
private static final Integer HTTP_PORT = 3128 ;
23
21
Original file line number Diff line number Diff line change
1
+ package org .testcontainers ;
2
+
3
+ import org .testcontainers .utility .DockerImageName ;
4
+
5
+ public interface TimeplusImages {
6
+ DockerImageName TIMEPLUS_PROTON_IMAGE = DockerImageName .parse ("timeplus/timeplusd:2.2.10" );
7
+ DockerImageName TIMEPLUS_IMAGE = DockerImageName .parse ("timeplus/timeplusd:2.3.3" );
8
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
import org .junit .Test ;
4
4
import org .junit .runner .RunWith ;
5
5
import org .junit .runners .Parameterized ;
6
- import org .testcontainers .TimeplusTestImages ;
6
+ import org .testcontainers .TimeplusImages ;
7
7
import org .testcontainers .containers .TimeplusContainer ;
8
8
import org .testcontainers .db .AbstractContainerDatabaseTest ;
9
9
import org .testcontainers .utility .DockerImageName ;
@@ -25,8 +25,8 @@ public SimpleTimeplusTest(DockerImageName imageName) {
25
25
@ Parameterized .Parameters (name = "{0}" )
26
26
public static Object [][] data () {
27
27
return new Object [][] { //
28
- { TimeplusTestImages .TIMEPLUS_PROTON_IMAGE },
29
- { TimeplusTestImages .TIMEPLUS_IMAGE },
28
+ { TimeplusImages .TIMEPLUS_PROTON_IMAGE },
29
+ { TimeplusImages .TIMEPLUS_IMAGE },
30
30
};
31
31
}
32
32
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ public class TimeplusContainerTest extends AbstractContainerDatabaseTest {
12
12
13
13
@ Test
14
14
public void testSimple () throws SQLException {
15
- try (TimeplusContainer timeplus = new TimeplusContainer ("ghcr.io/ timeplus-io/proton:latest " )) {
15
+ try (TimeplusContainer timeplus = new TimeplusContainer ("timeplus/timeplusd:2.3.3 " )) {
16
16
timeplus .start ();
17
17
18
18
ResultSet resultSet = performQuery (timeplus , "SELECT 1" );
@@ -25,7 +25,7 @@ public void testSimple() throws SQLException {
25
25
@ Test
26
26
public void customCredentialsWithUrlParams () throws SQLException {
27
27
try (
28
- TimeplusContainer timeplus = new TimeplusContainer ("ghcr.io/ timeplus-io/proton:latest " )
28
+ TimeplusContainer timeplus = new TimeplusContainer ("timeplus/timeplusd:2.3.3 " )
29
29
.withUsername ("test" )
30
30
.withPassword ("test" )
31
31
.withDatabaseName ("test" )
You can’t perform that action at this time.
0 commit comments