From 1deb60bbc78bf15bb9d24d7a4333c467291d245e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20L=C3=B3pez?= Date: Mon, 18 Mar 2024 11:24:30 +0100 Subject: [PATCH] TESTS: Fix the ssh configuration - II The previous patch fixed the environment for the multihost tests, but intgcheck and system tests also need the fix. --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 789537a4645..774d13dfc5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,6 +97,18 @@ jobs: volumes: - ../sssd:/sssd:rw + - name: Patch the SSH configuration + uses: SSSD/sssd-ci-containers/actions/exec@master + with: + user: root + script: | + #!/bin/bash + set -ex + + test -x /usr/bin/sss_ssh_knownhosts && \ + echo "sss_ssh_knownhosts missing" + echo "Script end" + - name: Run integration tests uses: SSSD/sssd-ci-containers/actions/exec@master with: @@ -339,6 +351,17 @@ jobs: systemctl restart sssd || systemctl status sssd + - name: Patch the SSH configuration + uses: SSSD/sssd-ci-containers/actions/exec@master + with: + user: root + script: | + #!/bin/bash + test -x /usr/bin/sss_ssh_knownhosts && \ + sed -e 's/GlobalKnownHostsFile/#GlobalKnownHostsFile/' \ + -e 's/ProxyCommand \/usr\/bin\/sss_ssh_knownhostsproxy -p %p %h/KnownHostsCommand \/usr\/bin\/sss_ssh_knownhosts %H/' \ + -i /etc/ssh/ssh_config.d/04-ipa.conf + - name: Install system tests dependencies shell: bash working-directory: ./sssd/src/tests/system