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:
parent
023421acae
commit
625ffc8163
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
5
plans/basic.fmf
Normal file
5
plans/basic.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Check basic functionality
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
2
tests/main.fmf
Normal file
2
tests/main.fmf
Normal file
@ -0,0 +1,2 @@
|
||||
require:
|
||||
- podman
|
2
tests/smoke.fmf
Normal file
2
tests/smoke.fmf
Normal 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
8
tests/tmt.fmf
Normal 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
|
Loading…
Reference in New Issue
Block a user