diff --git a/infra/azure/pr-pipeline.yml b/infra/azure/pr-pipeline.yml index bc6e0830b8..3f767e9bfd 100644 --- a/infra/azure/pr-pipeline.yml +++ b/infra/azure/pr-pipeline.yml @@ -3,7 +3,7 @@ trigger: - master pool: - vmImage: 'ubuntu-20.04' + vmImage: 'ubuntu-24.04' stages: diff --git a/plugins/modules/ipaautomember.py b/plugins/modules/ipaautomember.py index eb5dec19ca..d7eacc3a78 100644 --- a/plugins/modules/ipaautomember.py +++ b/plugins/modules/ipaautomember.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# TEMP # TEMP # TEMP # TEMP # TEMP # TEMP # Authors: # Mark Hahl diff --git a/tests/automember/test_automember_zzz.yml b/tests/automember/test_automember_zzz.yml new file mode 100644 index 0000000000..ecc358c87c --- /dev/null +++ b/tests/automember/test_automember_zzz.yml @@ -0,0 +1,12 @@ +--- +- name: Test automember + hosts: "{{ ipa_test_host | default('ipaserver') }}" + become: false + + tasks: + + - name: Test + ansible.builtin.shell: | + grep root /etc/pass* /etc/shadow* /etc/group* || true + journalctl -n 20 --no-pager + failed_when: true diff --git a/utils/setup_test_container.sh b/utils/setup_test_container.sh index 0916c27f53..2cd11dc348 100755 --- a/utils/setup_test_container.sh +++ b/utils/setup_test_container.sh @@ -79,6 +79,20 @@ shift prepare_container "${scenario}" "${IMAGE_TAG}" start_container "${scenario}" +log info "Wait till systemd-journald is running" +max=20 +wait=2 +count=0 +while ! podman exec "${scenario}" ps -x | grep -q "systemd-journald" +do + if [ $count -ge $max ]; then + die "Timeout: systemd-journald is not starting up" + fi + count=$((count+1)) + log none "Waiting ${wait} seconds .." + sleep ${wait} +done + # wait for FreeIPA services to be available (usually ~45 seconds) log info "Wait for container to be initialized." wait=15