Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e4933fc09 | ||
|
|
35e7c6914c |
||
|
|
794f07a2cf |
||
|
|
d7dbb64f30 |
5 changed files with 22 additions and 15 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
5
plans/ci.fmf
Normal file
5
plans/ci.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
12
tests/test-of-functionality-of-crontabs/main.fmf
Normal file
12
tests/test-of-functionality-of-crontabs/main.fmf
Normal 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
7
tests/test-of-functionality-of-crontabs/runtest.sh
Normal file → Executable 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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue