-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update PKI tests to run DS in separate container
- Loading branch information
Showing
2 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,14 @@ jobs: | |
- name: Create network | ||
run: docker network create example | ||
|
||
- name: Set up DS container | ||
run: | | ||
tests/bin/runner-init.sh \ | ||
--hostname=ds.example.com \ | ||
--network=example \ | ||
--network-alias=ds.example.com \ | ||
ds | ||
- name: Set up server container | ||
run: | | ||
tests/bin/runner-init.sh \ | ||
|
@@ -68,7 +76,7 @@ jobs: | |
- name: Install packages | ||
run: | | ||
# install packages on server | ||
docker exec pki dnf install -y 389-ds-base | ||
docker exec ds dnf install -y 389-ds-base | ||
docker cp /tmp/RPMS/. pki:/root/RPMS/ | ||
docker exec pki bash -c "dnf localinstall -y /root/RPMS/*" | ||
|
@@ -81,13 +89,14 @@ jobs: | |
docker exec client2 bash -c "dnf localinstall -y /root/RPMS/*" | ||
- name: Install DS | ||
run: docker exec pki ${SHARED}/tests/bin/ds-create.sh | ||
run: docker exec ds ${SHARED}/tests/bin/ds-create.sh | ||
|
||
- name: Install CA | ||
run: | | ||
docker exec pki pkispawn \ | ||
-f /usr/share/pki/server/examples/installation/ca.cfg \ | ||
-s CA \ | ||
-D pki_ds_url=ldap://ds.example.com:389 \ | ||
-v | ||
# set buffer size to 0 so that revocation takes effect immediately | ||
|
@@ -521,12 +530,12 @@ jobs: | |
run: docker exec pki pkidestroy -i pki-tomcat -s CA -v | ||
|
||
- name: Remove DS | ||
run: docker exec pki ${SHARED}/tests/bin/ds-remove.sh | ||
run: docker exec ds ${SHARED}/tests/bin/ds-remove.sh | ||
|
||
- name: Check DS server systemd journal | ||
if: always() | ||
run: | | ||
docker exec pki journalctl -x --no-pager -u [email protected] | ||
docker exec ds journalctl -x --no-pager -u [email protected] | ||
- name: Check PKI server systemd journal | ||
if: always() | ||
|
@@ -541,7 +550,7 @@ jobs: | |
- name: Gather artifacts | ||
if: always() | ||
run: | | ||
tests/bin/ds-artifacts-save.sh pki | ||
tests/bin/ds-artifacts-save.sh ds | ||
tests/bin/pki-artifacts-save.sh pki | ||
continue-on-error: true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,23 @@ jobs: | |
- name: Load JSS images | ||
run: docker load --input jss-images.tar | ||
|
||
- name: Set up JSS container | ||
- name: Create network | ||
run: docker network create example | ||
|
||
- name: Set up DS container | ||
run: | | ||
tests/bin/runner-init.sh \ | ||
--hostname=ds.example.com \ | ||
--network=example \ | ||
--network-alias=ds.example.com \ | ||
ds | ||
- name: Set up PKI container | ||
run: | | ||
tests/bin/runner-init.sh \ | ||
--hostname=pki.example.com \ | ||
--network=example \ | ||
--network-alias=pki.example.com \ | ||
pki | ||
- name: Import LDAP SDK packages | ||
|
@@ -44,38 +57,36 @@ jobs: | |
- name: Install packages | ||
run: | | ||
docker exec pki dnf install -y 389-ds-base | ||
docker exec ds dnf install -y 389-ds-base | ||
docker cp /tmp/RPMS/. pki:/root/RPMS/ | ||
docker exec pki bash -c "dnf localinstall -y /root/RPMS/*" | ||
- name: Install DS | ||
run: docker exec pki ${SHARED}/tests/bin/ds-create.sh | ||
run: docker exec ds ${SHARED}/tests/bin/ds-create.sh | ||
|
||
- name: Install CA | ||
run: | | ||
docker exec pki pkispawn \ | ||
-f /usr/share/pki/server/examples/installation/ca.cfg \ | ||
-s CA \ | ||
-D pki_cert_id_generator=random \ | ||
-D pki_request_id_generator=random \ | ||
-D pki_ds_url=ldap://ds.example.com:389 \ | ||
-v | ||
docker exec pki pki-server cert-find | ||
- name: Install TKS | ||
run: | | ||
docker exec pki pkispawn \ | ||
-f /usr/share/pki/server/examples/installation/tks.cfg \ | ||
-s TKS \ | ||
-D pki_ds_url=ldap://ds.example.com:389 \ | ||
-v | ||
docker exec pki pki-server cert-find | ||
- name: Install TPS | ||
run: | | ||
docker exec pki pkispawn \ | ||
-f /usr/share/pki/server/examples/installation/tps.cfg \ | ||
-s TPS \ | ||
-D pki_ds_url=ldap://ds.example.com:389 \ | ||
-D pki_authdb_url=ldap://ds.example.com:389 \ | ||
-v | ||
- name: Check TPS admin | ||
|
@@ -97,10 +108,12 @@ jobs: | |
run: | | ||
# import sample TPS users | ||
docker exec pki ldapadd \ | ||
-H ldap://ds.example.com:389 \ | ||
-D "cn=Directory Manager" \ | ||
-w Secret.123 \ | ||
-f /usr/share/pki/tps/auth/ds/create.ldif | ||
docker exec pki ldapadd \ | ||
-H ldap://ds.example.com:389 \ | ||
-D "cn=Directory Manager" \ | ||
-w Secret.123 \ | ||
-f /usr/share/pki/tps/auth/ds/example.ldif | ||
|
@@ -167,7 +180,7 @@ jobs: | |
- name: Check DS server systemd journal | ||
if: always() | ||
run: | | ||
docker exec pki journalctl -x --no-pager -u [email protected] | ||
docker exec ds journalctl -x --no-pager -u [email protected] | ||
- name: Check PKI server systemd journal | ||
if: always() | ||
|
@@ -192,7 +205,7 @@ jobs: | |
- name: Gather artifacts | ||
if: always() | ||
run: | | ||
tests/bin/ds-artifacts-save.sh pki | ||
tests/bin/ds-artifacts-save.sh ds | ||
tests/bin/pki-artifacts-save.sh pki | ||
continue-on-error: true | ||
|
||
|