1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-25 07:13:09 +00:00

podman: also run the upstream integration test suite

Per https://github.com/containers/podman/pull/19302 and
https://github.com/containers/podman/issues/19299 , upstream
have kindly set things up so we can easily run relevant parts of
the upstream test suite as an integration test in openQA. This
should help us catch if changes in other components break key
features of podman.

This only runs any tests with podman 4.6.1 or higher, but with
earlier versions it just does nothing and exits 0, so that's
fine. 4.6.1 is in F39 and Rawhide already, will land for F37
and F38 shortly.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-08-16 16:53:20 -07:00
parent 511b5382ec
commit 2e330f78ab

View File

@ -13,6 +13,12 @@ sub run {
assert_script_run "dnf -y install podman", 240 unless (get_var("CANNED")); assert_script_run "dnf -y install podman", 240 unless (get_var("CANNED"));
# check podman is installed # check podman is installed
assert_script_run "rpm -q podman"; assert_script_run "rpm -q podman";
my $relnum = get_release_number;
unless (get_var("CANNED")) {
# run the upstream integration tests
assert_script_run "dnf -y install podman podman-tests bats", 300;
assert_script_run "bats --filter-tags distro-integration /usr/share/podman/test/system", 300;
}
# check to see if you can pull an image from the registry # check to see if you can pull an image from the registry
assert_script_run "podman pull registry.fedoraproject.org/fedora:latest", 300; assert_script_run "podman pull registry.fedoraproject.org/fedora:latest", 300;
# run hello-world to test # run hello-world to test