smolnar82 opened a new pull request #444:
URL: https://github.com/apache/knox/pull/444
## What changes were proposed in this pull request?
Instead of declaring connection properties one-by-one in `gateway-site.xml`
a simple `connection URL` is enough to create connections to PostgreSQL DB
server.
## How was this patch tested?
Updated and ran JUnit tests as well as executing the following manual test
steps:
1. Configured the Knox Gateway as follows and started it successfully
```
<property>
<name>gateway.service.tokenstate.impl</name>
<value>org.apache.knox.gateway.services.token.impl.JDBCTokenStateService</value>
</property>
<property>
<name>gateway.database.type</name>
<value>postgresql</value>
</property>
<property>
<name>gateway.database.connection.url</name>
<value>jdbc:postgresql://smolnar-MBP15.local:5432/postgres?user=postgres&ssl=true&sslmode=verify-full&sslrootcert=/usr/local/var/postgresql@10/data/root.crt</value>
</property>
```
2. Generated some tokens with our `tokengen` application
3. Confirmed that the tokens were successfully saved in my local PostgreSQL
DB
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]