Skip to content

Commit

Permalink
Update PostgreSQL test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
edewata committed Sep 7, 2023
1 parent fc34a1a commit 1c2d204
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/external-application-connection-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 1c2d204

Please sign in to comment.