Skip to content

Commit bafcb32

Browse files
authored
fix checkstyle and javadoc issues (#2434)
* fix checkstyle and javadoc issues * add additional logging * fix pg_hba.conf due to clientcert change in postgres
1 parent 8a363a7 commit bafcb32

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
java-version: ${{ matrix.jdk }}
7474
- name: Prepare ssltest.local.properties
7575
run: echo enable_ssl_tests=true > ssltest.local.properties
76+
- name: Get Docker logs
77+
working-directory: docker
78+
run: docker-compose logs
7679
- uses: burrunan/gradle-cache-action@v1
7780
name: Test
7881
env:

certdir/server/pg_hba.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ host all postgres 127.0.0.1/32 trust
7777
host test all 127.0.0.1/32 md5
7878
host hostdb all 127.0.0.1/32 md5
7979
hostnossl hostnossldb all 127.0.0.1/32 md5
80-
hostssl hostssldb all 127.0.0.1/32 md5 clientcert=0
81-
hostssl hostsslcertdb all 127.0.0.1/32 md5 clientcert=1
80+
hostssl hostssldb all 127.0.0.1/32 md5
81+
hostssl hostsslcertdb all 127.0.0.1/32 md5 clientcert=verify-full
8282
hostssl certdb all 127.0.0.1/32 cert

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ services:
33
pgdb:
44
image: postgres:${PGV:-latest}
55
ports:
6-
- 5432:5432
6+
- 127.0.0.1:5432:5432
77
security_opt:
88
- seccomp:unconfined
99
volumes:

pgjdbc/src/main/java/org/postgresql/util/ObjectFactory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public class ObjectFactory {
2323
* single String argument is searched if it fails, or tryString is true a no argument constructor
2424
* is tried.
2525
*
26+
* @param <T> type of expected class
27+
* @param expectedClass expected class of type T, if the classname instantiated doesn't match
28+
* the expected type of this class this method will fail
2629
* @param classname name of the class to instantiate
2730
* @param info parameter to pass as Properties
2831
* @param tryString whether to look for a single String argument constructor

pgjdbc/src/test/java/org/postgresql/test/util/ObjectFactoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
package org.postgresql.test.util;
77

8-
import static org.junit.jupiter.api.Assertions.assertThrows;
98
import static org.junit.jupiter.api.Assertions.assertEquals;
109
import static org.junit.jupiter.api.Assertions.assertFalse;
10+
import static org.junit.jupiter.api.Assertions.assertThrows;
1111

1212
import org.postgresql.PGProperty;
1313
import org.postgresql.jdbc.SslMode;
1414
import org.postgresql.test.TestUtil;
1515
import org.postgresql.util.ObjectFactory;
1616
import org.postgresql.util.PSQLState;
1717

18-
import org.junit.jupiter.api.Test;
1918
import org.junit.jupiter.api.Assertions;
19+
import org.junit.jupiter.api.Test;
2020
import org.opentest4j.MultipleFailuresError;
2121

2222
import java.sql.SQLException;

0 commit comments

Comments
 (0)