diff --git a/.github/workflows/ca-ds-connection-test.yml b/.github/workflows/ca-ds-connection-test.yml index fc542c606f5..0df812deb67 100644 --- a/.github/workflows/ca-ds-connection-test.yml +++ b/.github/workflows/ca-ds-connection-test.yml @@ -59,6 +59,37 @@ jobs: docker exec pki pki-server restart --wait docker exec pki curl -s http://pki.example.com:8080/ca/admin/ca/getStatus + - name: Check DS backends + run: | + cat > expected << EOF + dc=ca,dc=pki,dc=example,dc=com (ca) + dc=example,dc=com (userroot) + EOF + + docker exec ds dsconf localhost backend suffix list | tee actual + + diff expected actual + + - name: Check DS user + run: | + cat > expected << EOF + dn: uid=pkidbuser,ou=People,dc=ca,dc=pki,dc=example,dc=com + nsPagedSizeLimit: 20000 + + EOF + + docker exec ds ldapsearch \ + -H ldap://ds.example.com:3389 \ + -D "cn=Directory Manager" \ + -w Secret.123 \ + -o ldif_wrap=no \ + -LLL \ + -b "uid=pkidbuser,ou=People,dc=ca,dc=pki,dc=example,dc=com" \ + nsPagedSizeLimit \ + | tee actual + + diff expected actual + - name: Initialize PKI client run: | docker exec pki pki-server cert-export ca_signing --cert-file ca_signing.crt diff --git a/.github/workflows/ca-existing-ds-test.yml b/.github/workflows/ca-existing-ds-test.yml index 83cb4c4f00d..d48e1971f07 100644 --- a/.github/workflows/ca-existing-ds-test.yml +++ b/.github/workflows/ca-existing-ds-test.yml @@ -235,28 +235,6 @@ jobs: --pkcs12-password Secret.123 docker exec pki pki -n caadmin ca-user-show caadmin - - name: Check DS suffix - run: | - echo "dc=example,dc=com (userroot)" > expected - docker exec ds dsconf localhost backend suffix list | tee actual - diff expected actual - - - name: Check users have nsPagedSizeLimit attribute set - run: | - printf "dn: uid=pkidbuser,ou=People,dc=ca,dc=pki,dc=example,dc=com\nnsPagedSizeLimit: 20000\n\n" > expected - - docker exec ds ldapsearch \ - -H ldap://ds.example.com:3389 \ - -D "cn=Directory Manager" \ - -w Secret.123 \ - -o ldif_wrap=no \ - -LLL \ - -b "uid=pkidbuser,ou=People,dc=ca,dc=pki,dc=example,dc=com" \ - nsPagedSizeLimit \ - | tee actual - - diff expected actual - - name: Gather artifacts if: always() run: |