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
intgcheck and system tests also need the fix.
  • Loading branch information
aplopez committed Mar 18, 2024
1 parent 3788f48 commit 5cb3cb4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5cb3cb4

Please sign in to comment.