From 5cb3cb4ca6c0cc1b2fc9fd639b1b0dfafa387c3f 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 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 789537a4645..538510a60f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,6 +97,16 @@ 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 + - name: Run integration tests uses: SSSD/sssd-ci-containers/actions/exec@master with: @@ -339,6 +349,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