Skip to content

Commit 1a011e6

Browse files
committed
switched to a new cloud instance
1 parent 2b8d319 commit 1a011e6

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ jobs:
192192
</toolchains>
193193
EOF
194194
- name: Test Java client
195-
env:
196-
CLICKHOUSE_CLOUD_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }}
197-
CLICKHOUSE_CLOUD_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }}
195+
# env:
196+
# CLICKHOUSE_CLOUD_HOST: ${{ secrets.CLOUD_INSTANCE_HOST }}
197+
# CLICKHOUSE_CLOUD_PASSWORD: ${{ secrets.CLOUD_INSTANCE_PASSWORD }}
198198
run: |
199199
mvn --also-make --batch-mode --no-transfer-progress --projects clickhouse-http-client,client-v2 -DclickhouseVersion=${{ matrix.clickhouse }} verify
200200
- name: Upload test results
@@ -257,8 +257,8 @@ jobs:
257257
run: mvn --also-make --batch-mode --no-transfer-progress -DskipTests install
258258
- name: Test http client
259259
env:
260-
CLICKHOUSE_CLOUD_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }}
261-
CLICKHOUSE_CLOUD_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }}
260+
CLICKHOUSE_CLOUD_HOST: ${{ secrets.CLOUD_INSTANCE_HOST }}
261+
CLICKHOUSE_CLOUD_PASSWORD: ${{ secrets.CLOUD_INSTANCE_PASSWORD }}
262262
run: |
263263
mvn --batch-mode --no-transfer-progress --projects ${{ matrix.project }} -DclickhouseVersion=${{ matrix.clickhouse }} -Dprotocol=http verify
264264
- name: Upload test results

client-v2/src/test/java/com/clickhouse/client/query/QueryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,9 @@ public void testQueryExceptionHandling() throws Exception {
606606

607607
try {
608608
client.queryRecords("SELECT * FROM unknown_table").get(3, TimeUnit.SECONDS);
609-
Assert.fail("expected exception");
609+
Assert.fail("exception is expected");
610610
} catch (ServerException e) {
611-
Assert.assertTrue(e.getMessage().contains("Unknown table"));
611+
Assert.assertTrue(e.getMessage().contains("does not exist"), e.getMessage());
612612
} catch (ExecutionException e) {
613613
Assert.assertTrue(e.getCause() instanceof ServerException);
614614
} catch (ClientException e) {

jdbc-v2/src/test/java/com/clickhouse/jdbc/JdbcIntegrationTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ public Connection getJdbcConnection(Properties properties) throws SQLException {
3434
info.setProperty("user", "default");
3535
info.setProperty("password", ClickHouseServerForTest.getPassword());
3636

37-
LOGGER.info("Connecting to " + getEndpointString() + " database: " + ClickHouseServerForTest.getDatabase() );
3837
if (properties != null) {
3938
info.putAll(properties);
4039
}
4140

4241
info.setProperty(ClientConfigProperties.DATABASE.getKey(), ClickHouseServerForTest.getDatabase());
4342

4443
return new ConnectionImpl(getEndpointString(), info);
45-
//return DriverManager.getConnection(getEndpointString(), "default", ClickHouseServerForTest.getPassword());
4644
}
4745

4846
protected static String getDatabase() {

0 commit comments

Comments
 (0)