Skip to content

Commit eb68c76

Browse files
committed
Fixed missing isSecure for cloud tests
1 parent 1b81ce5 commit eb68c76

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clickhouse-client/src/test/java/com/clickhouse/client/ClickHouseServerForTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ public static void beforeSuite() {
358358
@AfterSuite(groups = {"integration"})
359359
public static void afterSuite() {
360360
if (clickhouseContainer != null) {
361+
// clickhouseContainer.copyFileFromContainer("/var/log/clickhouse-server/clickhouse-server.log", "server-container.log");
361362
clickhouseContainer.stop();
362363
}
363364

client-v2/src/test/java/com/clickhouse/client/datatypes/DataTypeTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public DataTypeTests() {
5858
public void setUp() throws IOException {
5959
ClickHouseNode node = getServer(ClickHouseProtocol.HTTP);
6060
client = new Client.Builder()
61-
.addEndpoint(Protocol.HTTP, node.getHost(), node.getPort(), false)
61+
.addEndpoint(Protocol.HTTP, node.getHost(), node.getPort(), isCloud())
6262
.setUsername("default")
6363
.setPassword(ClickHouseServerForTest.getPassword())
6464
.compressClientRequest(useClientCompression)
@@ -179,9 +179,9 @@ public void testVariantWithSimpleDataTypes() throws Exception {
179179
continue dataTypesLoop;
180180

181181
}
182-
b.append(")) Engine = MergeTree ORDER BY ()");
182+
b.append(")) Engine = MergeTree ORDER BY () SETTINGS enable_variant_type=1");
183183

184-
client.execute(b.toString(), (CommandSettings) new CommandSettings().serverSetting("enable_variant_type", "1"));
184+
client.execute(b.toString());
185185
client.register(DTOForVariantPrimitivesTests.class, client.getTableSchema(table));
186186

187187
Object value = null;

0 commit comments

Comments
 (0)