File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
main/java/com/clickhouse/client/api
test/java/com/clickhouse/client Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public enum ClientConfigProperties {
2222
2323 USER ("user" , "default" ),
2424
25- PASSWORD ("password" , "" ),
25+ PASSWORD ("password" ),
2626
2727 /**
2828 * Maximum number of active connection in internal connection pool.
Original file line number Diff line number Diff line change @@ -197,7 +197,8 @@ public void testDisableNative() {
197197
198198 @ Test (groups = {"integration" })
199199 public void testDefaultSettings () {
200- try (Client client = new Client .Builder ().setUsername ("default" ).addEndpoint ("http://localhost:8123" ).build ()) {
200+ try (Client client = new Client .Builder ().setUsername ("default" ).setPassword ("secret" )
201+ .addEndpoint ("http://localhost:8123" ).build ()) {
201202 Map <String , String > config = client .getConfiguration ();
202203 for (ClientConfigProperties p : ClientConfigProperties .values ()) {
203204 if (p .getDefaultValue () != null ) {
@@ -210,6 +211,7 @@ public void testDefaultSettings() {
210211
211212 try (Client client = new Client .Builder ()
212213 .setUsername ("default" )
214+ .setPassword ("secret" )
213215 .addEndpoint ("http://localhost:8123" )
214216 .setDefaultDatabase ("mydb" )
215217 .setExecutionTimeout (10 , MILLIS )
@@ -268,6 +270,7 @@ public void testDefaultSettings() {
268270 public void testWithOldDefaults () {
269271 try (Client client = new Client .Builder ()
270272 .setUsername ("default" )
273+ .setPassword ("seceret" )
271274 .addEndpoint ("http://localhost:8123" )
272275 .setDefaultDatabase ("default" )
273276 .setExecutionTimeout (0 , MILLIS )
You can’t perform that action at this time.
0 commit comments