Skip to content

Commit 88e6767

Browse files
authored
Merge pull request #22 from liubao68/work
Fix sslmode error
2 parents 3d4a69b + 283fb83 commit 88e6767

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Publisher<? extends Connection> connectionPublisher = connectionFactory.create()
7474

7575
| Option | Description
7676
|---------------------------------| -----------
77-
| `ssl` | Enables SSL usage (`SSLMode.VERIFY_FULL`).
77+
| `ssl` | Enables SSL usage, default to false. .
7878
| `driver` | Must be `gaussdb`.
7979
| `protocol` | Protocol specifier. Empty to use single-host operations. Supported: `failover` for multi-server failover operations. _(Optional)_
8080
| `host` | Server hostname to connect to. May contain a comma-separated list of hosts with ports when using the `failover` protocol.
@@ -83,7 +83,7 @@ Publisher<? extends Connection> connectionPublisher = connectionFactory.create()
8383
| `username` | Login username. Can be a plain `String`, `Supplier<String>`, or `Publisher<String>`.
8484
| `password` | Login password. Can be a plain `CharSequence`, `Supplier<CharSequence>`, or `Publisher<CharSequence>`. _(Optional when using TLS Certificate authentication)_
8585
| `database` | Database to select. _(Optional)_
86-
| `applicationName` | The name of the application connecting to the database. Defaults to `r2dbc-postgresql`. _(Optional)_
86+
| `applicationName` | The name of the application connecting to the database. Defaults to `r2dbc-gaussdb`. _(Optional)_
8787
| `autodetectExtensions` | Whether to auto-detect and register `Extension`s from the class path. Defaults to `true`. _(Optional)_
8888
| `compatibilityMode` | Enable compatibility mode for cursored fetching. Required when using newer pgpool versions. Defaults to `false`. _(Optional)_
8989
| `errorResponseLogLevel` | Log level for error responses. Any of `OFF`, `DEBUG`, `INFO`, `WARN` or `ERROR` Defaults to `DEBUG`. _(Optional)_
@@ -99,7 +99,7 @@ Publisher<? extends Connection> connectionPublisher = connectionFactory.create()
9999
| `preparedStatementCacheQueries` | Determine the number of queries that are cached in each connection. The default is `-1`, meaning there's no limit. The value of `0` disables the cache. Any other value specifies the cache size.
100100
| `options` | A `Map<String, String>` of connection parameters. These are applied to each database connection created by the `ConnectionFactory`. Useful for setting generic [PostgreSQL connection parameters][psql-runtime-config]. _(Optional)_
101101
| `schema` | The search path to set. _(Optional)_
102-
| `sslMode` | SSL mode to use, see `SSLMode` enum. Supported values: `DISABLE`, `ALLOW`, `PREFER`, `REQUIRE`, `VERIFY_CA`, `VERIFY_FULL`, `TUNNEL`. _(Optional)_
102+
| `sslMode` | SSL mode to use, see `SSLMode` enum. Supported values: `DISABLE`, `ALLOW`, `PREFER`, `REQUIRE`, `VERIFY_CA`, `VERIFY_FULL`, default to `VERIFY_FULL`. _(Optional)_
103103
| `sslRootCert` | Path to SSL CA certificate in PEM format. Can be also a resource path. _(Optional)_
104104
| `sslKey` | Path to SSL key for TLS authentication in PEM format. Can be also a resource path. _(Optional)_
105105
| `sslCert` | Path to SSL certificate for TLS authentication in PEM format. Can be also a resource path. _(Optional)_

src/test/java/io/r2dbc/gaussdb/util/GaussDBServerExtension.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,6 @@ public DatabaseContainer getGaussdb() {
188188

189189
private <T extends GaussDBContainer<T>> T container() {
190190
T container = new GaussDBContainer<T>(IMAGE_NAME)
191-
// TODO: not enable image customization now
192-
// .withCopyFileToContainer(getHostPath("server.crt", 0600), "/var/server.crt")
193-
// .withCopyFileToContainer(getHostPath("server.key", 0600), "/var/server.key")
194-
// .withCopyFileToContainer(getHostPath("client.crt", 0600), "/var/client.crt")
195-
// .withCopyFileToContainer(getHostPath("pg_hba.conf", 0600), "/var/pg_hba.conf")
196-
// .withCopyFileToContainer(getHostPath("setup.sh", 0755), "/var/setup.sh")
197-
// .withCopyFileToContainer(getHostPath("test-db-init-script.sql", 0755), "/docker-entrypoint-initdb.d/test-db-init-script.sql")
198-
// .withReuse(true)
199-
// .withNetworkAliases("r2dbc-postgres")
200-
// .withCommand("/var/setup.sh")
201191
.withNetwork(GaussDBServerExtension.containerNetwork);
202192

203193
return container;

0 commit comments

Comments
 (0)