forked from freeipa/ansible-freeipa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ipareplica and ipaclient tests
- Loading branch information
Rafael Guterres Jeffman
committed
Dec 31, 2024
1 parent
2e55374
commit 4cbdf4f
Showing
6 changed files
with
103 additions
and
44 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
- push | ||
- pull_request | ||
env: | ||
test_path: "${HOME}/.ansible/collections/ansible_collections/freeipa/ansible_freeipa" | ||
test_path: ".galaxy_bulid" | ||
|
||
jobs: | ||
check_roles: | ||
|
@@ -44,23 +44,26 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
distro: | ||
- fedora-latest | ||
- c10s | ||
cluster_config: | ||
- ipaserver_test_base.yml | ||
# - ipaserver_ca_dns_kra_ad.yml | ||
# - ipaserver_ipaclient_ca.yml | ||
# - ipaserver_ca_dns_nokra_noad.yml | ||
# - ipaserver_ipaclient_ca_only.yml | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Build and install collection | ||
run: | | ||
utils/build-galaxy-release.sh -i \ | ||
utils/build-galaxy-release.sh -k \ | ||
-o "$(curl -L https://api.github.com/repos/freeipa/ansible-freeipa/releases 2>/dev/null \ | ||
| jq '.[0].tag_name' | tr -d '"v')-dev$(date +"%Y%m%d%H%M")" | ||
- name: Test ipaserver | ||
uses: rjeffman/FreeIPA-Cluster-Test@devel | ||
uses: rjeffman/FreeIPA-Cluster-Test@v1.0.0 | ||
with: | ||
cluster_configuration: tests/deployment/${{ matrix.cluster_config }} | ||
# ansible_vars: test/deployment/ipaserver-vars.yml | ||
|
@@ -70,29 +73,70 @@ jobs: | |
${{ env.test_path }}/tests/host/test_host.yml | ||
${{ env.test_path }}/tests/hbacrule/test_hbacrule.yml | ||
# test_ipareplica: | ||
# name: Test ipareplica role | ||
# needs: [check_roles] | ||
# if: ${{ needs.check_roles.outputs.ipareplica }} | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# # The ipaserver configuration is always "ca-dns-kra-ad" | ||
# cluster_config: | ||
# - ipareplica_none.yml | ||
# - ipareplica_ca.yml | ||
# steps: | ||
# | ||
# test_ipaclientt: | ||
# name: Test ipareplica role | ||
# needs: [check_roles] | ||
# if: ${{ needs.check_roles.outputs.ipareplica }} | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# # The ipaserver configuration is always "ca-dns-kra-ad" | ||
# cluster_config: | ||
# - ipareplica_none.yml | ||
# - ipareplica_ca.yml | ||
# - ipareplica_copy.yml | ||
# steps: | ||
test_ipareplica: | ||
name: Test ipareplica role | ||
needs: [check_roles] | ||
if: ${{ needs.check_roles.outputs.ipareplica }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
distro: | ||
- fedora-latest | ||
- c10s | ||
# The ipaserver capabilities are "ca-dns-kra" | ||
cluster_config: | ||
- ipareplica_ca.yml | ||
# - ipareplica_none.yml | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Build and install collection | ||
run: | | ||
utils/build-galaxy-release.sh -k \ | ||
-o "$(curl -L https://api.github.com/repos/freeipa/ansible-freeipa/releases 2>/dev/null \ | ||
| jq '.[0].tag_name' | tr -d '"v')-dev$(date +"%Y%m%d%H%M")" | ||
- name: Test ipareplica | ||
uses: rjeffman/[email protected] | ||
with: | ||
cluster_configuration: tests/deployment/${{ matrix.cluster_config }} | ||
ansible_vars: test/deployment/ipareplica-vars.yml | ||
test_playbooks: >- | ||
${{ env.test_path }}/tests/user/test_user.yml | ||
${{ env.test_path }}/tests/group/test_group.yml | ||
${{ env.test_path }}/tests/host/test_host.yml | ||
${{ env.test_path }}/tests/hbacrule/test_hbacrule.yml | ||
test_ipaclientt: | ||
name: Test ipareplica role | ||
needs: [check_roles] | ||
if: ${{ needs.check_roles.outputs.ipaclient }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# The ipaserver capabilities are "ca-dns-kra" | ||
cluster_config: | ||
- ipaserver_1_client.yml | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Build and install collection | ||
run: | | ||
utils/build-galaxy-release.sh -k \ | ||
-o "$(curl -L https://api.github.com/repos/freeipa/ansible-freeipa/releases 2>/dev/null \ | ||
| jq '.[0].tag_name' | tr -d '"v')-dev$(date +"%Y%m%d%H%M")" | ||
- name: Test ipaclient | ||
uses: rjeffman/[email protected] | ||
with: | ||
cluster_configuration: tests/deployment/${{ matrix.cluster_config }} | ||
# ansible_vars: test/deployment/ipaclient-vars.yml | ||
test_playbooks: >- | ||
${{ env.test_path }}/tests/user/test_user_client_context.yml | ||
${{ env.test_path }}/tests/group/test_group_client_context.yml | ||
${{ env.test_path }}/tests/host/test_host_client_context.yml | ||
${{ env.test_path }}/tests/hbacrule/test_hbacrule_client_context.yml |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
ipa_test_host: ipareplicas |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lab_name: ipareplica_ca | ||
ipa_deployments: | ||
- name: ipareplica_ca | ||
domain: ipa.test | ||
admin_password: SomeADMINpassword | ||
dm_password: SomeDMpassword | ||
cluster: | ||
servers: | ||
- name: server | ||
capabilities: ["CA", "DNS", "KRA"] | ||
- name: replica | ||
capabilities: ["CA"] |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
lab_name: ipaserver_1_client | ||
ipa_deployments: | ||
- name: ipaserver_1_client | ||
domain: ipa.test | ||
admin_password: SomeADMINpassword | ||
dm_password: SomeDMpassword | ||
cluster: | ||
servers: | ||
- name: server | ||
capabilities: ["CA", "DNS", "KRA"] | ||
clients: | ||
- name: cli-01 |
This file was deleted.
Oops, something went wrong.
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