Enable a tmt smoke test for container provision

Recently the basic `podman` functionality has been broken several
times. In order to ensure that the `tmt` container provision
plugin works fine let's enable a simple smoke test.

Related: #2150283
This commit is contained in:
Petr Šplíchal 2022-12-01 12:54:28 +01:00
parent 023421acae
commit 625ffc8163
5 changed files with 18 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

5
plans/basic.fmf Normal file
View File

@ -0,0 +1,5 @@
summary: Check basic functionality
discover:
how: fmf
execute:
how: tmt

2
tests/main.fmf Normal file
View File

@ -0,0 +1,2 @@
require:
- podman

2
tests/smoke.fmf Normal file
View File

@ -0,0 +1,2 @@
summary: Execute a simple command
test: podman run -t --rm fedora cat /etc/os-release | grep 'Fedora Linux'

8
tests/tmt.fmf Normal file
View File

@ -0,0 +1,8 @@
summary: Make sure that container provision works
require:
- tmt-provision-container
test:
tmt run --verbose --remove
provision --how container --image fedora
login --command 'cat /etc/os-release'
finish