Skip to content

Commit ce6baa2

Browse files
pendula95vietj
authored andcommitted
Added instructions for running external database with forced SSL configuration
1 parent 0be1df0 commit ce6baa2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vertx-pg-client/README.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ mvn test -DcontainerFixedPort
307307
You can run tests with an external database:
308308

309309
- the script `src/test/resources/create-postgres.sql` creates the test data
310-
- the `TLSTest` expects the database to be configured with SSL with `src/test/resources/tls/server.key` / `src/test/resources/tls/server.cert``
310+
- the `TLSTest` expects the database to be configured with SSL with `src/test/resources/tls/server.key` / `src/test/resources/tls/server.cert` `src/test/resources/tls/pg_hba.conf` as an example how to force SSL
311311

312312
You need to add some properties for testing:
313313

@@ -317,6 +317,7 @@ You need to add some properties for testing:
317317

318318
- connection.uri(mandatory): configure the client to connect the specified database
319319
- tls.connection.uri(mandatory): configure the client to run `TLSTest` with the specified Postgres with SSL enabled
320+
- tls.force.connection.uri(mandatory): configure the client to run `TLSTest` with the specified Postgres with SSL forced (only option)
320321
- unix.socket.directory(optional): the single unix socket directory(multiple socket directories are not supported) to test Unix domain socket with a specified database, domain socket tests will be skipped if this property is not specified
321322
(Note: Make sure you can access the unix domain socket with this directory under your host machine)
322323
- unix.socket.port(optional): unix socket file is named `.s.PGSQL.nnnn` and `nnnn` is the server's port number,
@@ -335,5 +336,5 @@ Run the Postgres containers with `docker-compose`:
335336
Run tests:
336337

337338
```
338-
> mvn test -Dconnection.uri=postgres://$username:$password@$host:$port/$database -Dtls.connection.uri=postgres://$username:$password@$host:$port/$database -Dunix.socket.directory=$path -Dunix.socket.port=$port
339+
> mvn test -Dconnection.uri=postgres://$username:$password@$host:$port/$database -Dtls.connection.uri=postgres://$username:$password@$host:$port/$database -Dtls.force.connection.uri=postgres://$username:$password@$host:$port/$database -Dunix.socket.directory=$path -Dunix.socket.port=$port
339340
```

0 commit comments

Comments
 (0)