Tests: enable local files in sssd for tests

Tests needed a working copy of sssd which would not start without a
configuration.  Setting enable_files_domain resolves this issue.

Resolves: rhbz#1984553
This commit is contained in:
Scott Poore 2021-08-12 13:02:07 -05:00
parent aa781ea6b4
commit 99fd94d945

View File

@ -61,6 +61,14 @@ cp 1.journal /var/log/journal/1.journal
cp binary-rec.journal /var/log/journal/binary-rec.journal cp binary-rec.journal /var/log/journal/binary-rec.journal
usermod -u 981 tlog usermod -u 981 tlog
# Add local domain for sssd for testSessionRecordingConf test
cat > /etc/sssd/sssd.conf <<EOF
[sssd]
enable_files_domain = true
EOF
chmod 600 /etc/sssd/sssd.conf
systemctl start sssd
# Run tests as unprivileged user # Run tests as unprivileged user
su - -c "env SOURCE=$SOURCE LOGS=$LOGS $TESTS/run-test.sh" runtest su - -c "env SOURCE=$SOURCE LOGS=$LOGS $TESTS/run-test.sh" runtest