File tree 2 files changed +7
-13
lines changed
modules/oceanbase-ce/src/main/java/org/testcontainers/containers
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,15 @@ public class OceanBaseContainer extends JdbcDatabaseContainer<OceanBaseContainer
22
22
23
23
static final String DOCKER_IMAGE_NAME = "oceanbase/oceanbase-ce" ;
24
24
25
- static final String DEFAULT_TAG = "4.1.0.0" ;
26
-
27
25
private static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName .parse (DOCKER_IMAGE_NAME );
28
26
29
27
private static final Integer SQL_PORT = 2881 ;
30
28
31
29
private static final Integer RPC_PORT = 2882 ;
32
30
33
- private final String databaseName ;
34
-
35
- private final String username ;
36
-
37
- private final String password ;
31
+ private final String databaseName = "test" ;
32
+ private final String username = "root@test" ;
33
+ private final String password = "" ;
38
34
39
35
public OceanBaseContainer (String dockerImageName ) {
40
36
this (DockerImageName .parse (dockerImageName ));
@@ -44,11 +40,7 @@ public OceanBaseContainer(DockerImageName dockerImageName) {
44
40
super (dockerImageName );
45
41
dockerImageName .assertCompatibleWith (DEFAULT_IMAGE_NAME );
46
42
47
- this .databaseName = "test" ;
48
- this .username = "root@test" ;
49
- this .password = "" ;
50
-
51
- this .waitStrategy = Wait .forLogMessage (".*boot success!.*" , 1 ).withStartupTimeout (Duration .ofMinutes (5 ));
43
+ this .waitStrategy = Wait .forLogMessage (".*boot success!.*" , 1 ).withStartupTimeout (Duration .ofMinutes (3 ));
52
44
53
45
addExposedPorts (SQL_PORT , RPC_PORT );
54
46
}
Original file line number Diff line number Diff line change 7
7
*/
8
8
public class OceanBaseContainerProvider extends JdbcDatabaseContainerProvider {
9
9
10
+ private static final String DEFAULT_TAG = "4.1.0.0" ;
11
+
10
12
@ Override
11
13
public boolean supports (String databaseType ) {
12
14
return databaseType .equals (OceanBaseContainer .NAME );
13
15
}
14
16
15
17
@ Override
16
18
public JdbcDatabaseContainer newInstance () {
17
- return newInstance (OceanBaseContainer . DEFAULT_TAG );
19
+ return newInstance (DEFAULT_TAG );
18
20
}
19
21
20
22
@ Override
You can’t perform that action at this time.
0 commit comments