Update gating to be compatible with tmt

This commit is contained in:
Scott Poore 2024-07-03 16:17:11 -05:00
parent ae415191fd
commit f89bd0c9b7
4 changed files with 22 additions and 0 deletions

8
tests/plans/all.fmf Normal file
View File

@ -0,0 +1,8 @@
summary: Run gating tests
discover:
how: fmf
dist-git-source: true
dist-git-type: centos
execute:
how: tmt

6
tests/scripts/main.fmf Normal file
View File

@ -0,0 +1,6 @@
summary: Run tlog tier1 tests
require:
- git
- tlog
test: ./run_tests.sh -m tier1
duration: 30m

View File

@ -9,6 +9,14 @@ if rlIsRHEL '>=9'; then
dnf --enablerepo rhel-buildroot install python3-pytest -y
fi
# RHEL10 cloud-init disables password authentication
# tlog tests need this to run currently
cat > /etc/ssh/sshd_config.d/00-tlog-override.conf <<EOF
PasswordAuthentication yes
EOF
chmod 600 /etc/ssh/sshd_config.d/00-tlog-override.conf
systemctl restart sshd
git clone https://github.com/Scribery/tlog.git
pushd tlog/src/tlitest
./tlitest-setup