Compare commits

..

4 commits

Author SHA1 Message Date
Fedora Release Engineering
4e4933fc09 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 18:50:30 +00:00
Lukáš Zaoral
35e7c6914c
tests: migrate from STI to TMT
Related: https://fedoraproject.org/wiki/Changes/DisableSTI
2025-07-04 12:06:49 +02:00
Lukáš Zaoral
794f07a2cf
tests/test-of-functionality-of-crontabs: fix the test 2025-07-04 12:06:17 +02:00
Fedora Release Engineering
d7dbb64f30 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 14:53:13 +00:00
5 changed files with 22 additions and 15 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

5
plans/ci.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -0,0 +1,12 @@
summary: test of functionality of crontabs
description: ''
contact: Petr Sklenar <psklenar@redhat.com>
component:
- crontabs
test: ./runtest.sh
framework: beakerlib
recommend:
- crontabs
duration: 30m
extra-summary: /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs
extra-task: /CoreOS/crontabs/Sanity/test-of-functionality-of-crontabs

7
tests/test-of-functionality-of-crontabs/runtest.sh Normal file → Executable file
View file

@ -27,8 +27,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include rhts environment
. /usr/bin/rhts-environment.sh
. /usr/lib/beakerlib/beakerlib.sh
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="crontabs"
#how long should we wait:
@ -39,6 +38,7 @@ rlJournalStart
user="petr$RANDOM"
rlRun "rm -rf /tmp/test.createdbypetr /tmp/test.createdbyroot" 0 "Removing tmp directory"
rlRun "useradd $user"
rlRun "rlServiceStart crond"
rlFileBackup /etc/crontab
rlPhaseEnd
@ -76,7 +76,8 @@ rlJournalStart
rlPhaseStartCleanup
rlRun "rm -rf /tmp/test.createdbypetr /tmp/test.createdbyroot" 0 "Removing tmp directory"
rlRun "userdel -r $user"
rlRun "userdel -rf $user"
rlRun "rlServiceRestore crond"
rlFileRestore
rlPhaseEnd
rlJournalPrintText

View file

@ -1,12 +0,0 @@
---
# This first play always runs on the local staging system
- hosts: localhost
roles:
- role: standard-test-beakerlib
tags:
- classic
tests:
- test-of-functionality-of-crontabs
required_packages:
- crontabs # test-of-functionality-of-crontabs needs crontabs
- findutils # beakerlib needs find command