ClickHouse/tests/queries/0_stateless/02550_client_connections_credentials.reference
Azat Khuzhin 8782873e4f Fix overrides via connections_credentials in case of root directives exists
Before the following did not work, it always uses user `dev`, even with
`clickhouse-client --connection prod`:

  ```yaml
  user: dev

  connections_credentials:
    prod:
      name: prod
      user: prod
  ```

The problem was that before it was not possible to distinguish options
that had been set via command line options and via configuration file.

I've splitted this two actions, and embedded a call to
parseConnectionsCredentials() in between.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-27 20:03:50 +02:00

28 lines
632 B
Plaintext

connection
No such connection 'no_such_connection' in connections_credentials
hostname
Not found address of host: test_hostname_invalid.
1
system
system
port
Connection refused (localhost:0).
9000
secure
1
database
system
user
MySQL: Authentication failed
default
password
default: Authentication failed: password is incorrect, or there is no user with such name.
default
history_file
Cannot create file: /no/such/dir/.history
root overrides
foo: Authentication failed: password is incorrect, or there is no user with such name.
default
default
foo: Authentication failed: password is incorrect, or there is no user with such name.