Skip to content

Commit

Permalink
Update clone tests to check schema replication
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Dec 14, 2023
1 parent b10869e commit fd79ec5
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ca-clone-replicated-ds-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,32 @@ jobs:
-v \
primaryds-to-secondaryds
- name: Check schema in primary DS and secondary DS
run: |
docker exec primaryds ldapsearch \
-H ldap://primaryds.example.com:3389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b cn=schema \
-o ldif_wrap=no \
-LLL \
objectClasses attributeTypes \
| grep "\-oid" | sort | tee primaryds.schema
docker exec secondaryds ldapsearch \
-H ldap://secondaryds.example.com:3389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b cn=schema \
-o ldif_wrap=no \
-LLL \
objectClasses attributeTypes \
| grep "\-oid" | sort | tee secondaryds.schema
diff primaryds.schema secondaryds.schema
- name: Check entries in primary DS and secondary DS
run: |
# get DNs from primary DS
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/ca-clone-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,33 @@ jobs:
docker exec secondary pki-server cert-find
- name: Check schema in primary DS and secondary DS
if: always()
run: |
docker exec primaryds ldapsearch \
-H ldap://primaryds.example.com:3389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b cn=schema \
-o ldif_wrap=no \
-LLL \
objectClasses attributeTypes \
| grep "\-oid" | sort | tee primaryds.schema
docker exec secondaryds ldapsearch \
-H ldap://secondaryds.example.com:3389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b cn=schema \
-o ldif_wrap=no \
-LLL \
objectClasses attributeTypes \
| grep "\-oid" | sort | tee secondaryds.schema
diff primaryds.schema secondaryds.schema
- name: Check replication manager on primary DS
if: always()
run: |
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/ipa-clone-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,33 @@ jobs:
run: |
docker exec secondary ipa-kra-install -p Secret.123
- name: Check schema in primary DS and secondary DS
if: always()
run: |
docker exec primary ldapsearch \
-H ldap://primary.example.com:389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b cn=schema \
-o ldif_wrap=no \
-LLL \
objectClasses attributeTypes \
| grep "\-oid" | sort | tee primary.schema
docker exec secondary ldapsearch \
-H ldap://secondary.example.com:389 \
-D "cn=Directory Manager" \
-w Secret.123 \
-x \
-b cn=schema \
-o ldif_wrap=no \
-LLL \
objectClasses attributeTypes \
| grep "\-oid" | sort | tee secondary.schema
diff primary.schema secondary.schema
- name: Check replication managers on primary DS
if: always()
run: |
Expand Down

0 comments on commit fd79ec5

Please sign in to comment.