File tree Expand file tree Collapse file tree
src/test/java/ru/yandex/clickhouse Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ public class ClickHouseContainerForTest {
1717 private static final int NATIVE_PORT = 9000 ;
1818 private static final int MYSQL_PORT = 3306 ;
1919
20+ private static final String clickhouseVersion ;
2021 private static final GenericContainer <?> clickhouseContainer ;
2122
2223 static {
2324 String imageTag = System .getProperty ("clickhouseVersion" );
2425 if (imageTag == null || (imageTag = imageTag .trim ()).isEmpty ()) {
25- imageTag = "" ;
26+ clickhouseVersion = imageTag = "" ;
2627 } else {
28+ clickhouseVersion = imageTag ;
2729 imageTag = ":" + imageTag ;
2830 }
2931
@@ -33,6 +35,10 @@ public class ClickHouseContainerForTest {
3335 .withExposedPorts (HTTP_PORT , NATIVE_PORT , MYSQL_PORT );
3436 }
3537
38+ public static String getClickHouseVersion () {
39+ return clickhouseVersion ;
40+ }
41+
3642 public static GenericContainer <?> getClickHouseContainer () {
3743 return clickhouseContainer ;
3844 }
You can’t perform that action at this time.
0 commit comments