Skip to content

Commit

Permalink
TESTS: Fix the ssh configuration - II
Browse files Browse the repository at this point in the history
The previous patch fixed the environment for the multihost tests, but
system tests also need the fix.

This fix will become obsolete and should be removed when FreeIPA
adapts the ipa-client-install tool to use the sss_ssh_knownhosts tool.
  • Loading branch information
aplopez committed Mar 18, 2024
1 parent 3788f48 commit ce2dbb7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,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
Expand Down

0 comments on commit ce2dbb7

Please sign in to comment.