File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
client-v2/src/test/java/com/clickhouse/client/query
jdbc-v2/src/test/java/com/clickhouse/jdbc Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments