From 1c2d20451cee32f15c897ba2248fc15db558aba9 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 7 Sep 2023 12:30:10 -0500 Subject: [PATCH] Update PostgreSQL test The PostgreSQL test has been updated to use LDAP SDK and PKI packages from Quay instead of COPR since it is generally more reliable and older packages will not expire. --- .../external-application-connection-tests.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/external-application-connection-tests.yml b/.github/workflows/external-application-connection-tests.yml index 8dde0ca36..8da9925e5 100644 --- a/.github/workflows/external-application-connection-tests.yml +++ b/.github/workflows/external-application-connection-tests.yml @@ -70,9 +70,23 @@ jobs: docker exec jss dnf install -y postgresql-jdbc docker exec -t jss sh -c 'dnf install -y /root/jss/build/RPMS/*.rpm' + - name: Import LDAP SDK packages + run: | + docker create --name=ldapjdk-dist quay.io/dogtagpki/ldapjdk-dist:latest + docker cp ldapjdk-dist:/root/RPMS/. /tmp/RPMS/ + docker rm -f ldapjdk-dist + + - name: Import PKI packages + run: | + docker create --name=pki-dist quay.io/dogtagpki/pki-dist:latest + docker cp pki-dist:/root/RPMS/. /tmp/RPMS/ + docker rm -f pki-dist + - name: Create postgresql certificates run: | - docker exec jss dnf install -y dogtag-pki + docker cp /tmp/RPMS/. jss:/root/RPMS/ + docker exec jss bash -c "dnf localinstall -y /root/RPMS/*" + docker exec jss pki nss-cert-request --subject "CN=postgresql.example.com" \ --csr /root/sslserver.csr --ext /usr/share/pki/server/certs/sslserver.conf docker exec jss pki nss-cert-issue --csr /root/sslserver.csr \