Skip to content

Commit

Permalink
Update IPA tests to check CA database config
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Jan 23, 2025
1 parent 930248a commit 58bd7fc
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ipa-basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,30 @@ jobs:
grep "(orphan)" output | wc -l > actual
diff expected actual
- name: Check CA database config
run: |
docker exec ipa pki-server ca-config-find | grep "^internaldb\." | tee output
cat > expected << EOF
internaldb._000=##
internaldb._001=## Internal Database
internaldb._002=##
internaldb.basedn=o=ipaca
internaldb.database=ipaca
internaldb.ldapauth.authtype=SslClientAuth
internaldb.ldapauth.bindDN=cn=Directory Manager
internaldb.ldapauth.bindPWPrompt=internaldb
internaldb.ldapauth.clientCertNickname=subsystemCert cert-pki-ca
internaldb.ldapconn.host=ipa.example.com
internaldb.ldapconn.port=636
internaldb.ldapconn.secureConn=true
internaldb.maxConns=15
internaldb.minConns=3
internaldb.multipleSuffix.enable=false
EOF
diff expected output
- name: Check CA users
run: |
docker exec ipa pki-server ca-user-find
Expand Down
54 changes: 51 additions & 3 deletions .github/workflows/ipa-clone-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,31 @@ jobs:
--no-host-dns \
--no-ntp
- name: Check CA config in primary IPA
- name: Check CA database config in primary IPA
run: |
docker exec primary pki-server ca-config-find | grep "^internaldb\." | tee output
cat > expected << EOF
internaldb._000=##
internaldb._001=## Internal Database
internaldb._002=##
internaldb.basedn=o=ipaca
internaldb.database=ipaca
internaldb.ldapauth.authtype=SslClientAuth
internaldb.ldapauth.bindDN=cn=Directory Manager
internaldb.ldapauth.bindPWPrompt=internaldb
internaldb.ldapauth.clientCertNickname=subsystemCert cert-pki-ca
internaldb.ldapconn.host=primary.example.com
internaldb.ldapconn.port=636
internaldb.ldapconn.secureConn=true
internaldb.maxConns=15
internaldb.minConns=3
internaldb.multipleSuffix.enable=false
EOF
diff expected output
- name: Check CA CRL config in primary IPA
run: |
docker exec primary pki-server ca-config-find | grep ca.crl.MasterCRL
Expand Down Expand Up @@ -155,7 +179,31 @@ jobs:
docker exec secondary ipa config-show
- name: Check CA config in primary IPA
- name: Check CA database config in secondary IPA
run: |
docker exec secondary pki-server ca-config-find | grep "^internaldb\." | tee output
cat > expected << EOF
internaldb._000=##
internaldb._001=## Internal Database
internaldb._002=##
internaldb.basedn=o=ipaca
internaldb.database=ipaca
internaldb.ldapauth.authtype=SslClientAuth
internaldb.ldapauth.bindDN=cn=Directory Manager
internaldb.ldapauth.bindPWPrompt=internaldb
internaldb.ldapauth.clientCertNickname=subsystemCert cert-pki-ca
internaldb.ldapconn.host=secondary.example.com
internaldb.ldapconn.port=636
internaldb.ldapconn.secureConn=true
internaldb.maxConns=15
internaldb.minConns=3
internaldb.multipleSuffix.enable=false
EOF
diff expected output
- name: Check CA CRL config in primary IPA
run: |
docker exec primary pki-server ca-config-find | grep ca.crl.MasterCRL
Expand All @@ -174,7 +222,7 @@ jobs:
docker exec primary pki-server ca-config-show ca.listenToCloneModifications | tee actual
diff expected actual
- name: Check CA config in secondary IPA
- name: Check CA CRL config in secondary IPA
run: |
docker exec secondary pki-server ca-config-find | grep ca.crl.MasterCRL
Expand Down

0 comments on commit 58bd7fc

Please sign in to comment.