Project

General

Profile

Actions

action #101755

closed

coordination #90086: [epic] Refactor container tests

Make sure that all the container tests are using CONTAINER_RUNTIME variable

Added by jlausuch over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2021-10-30
Due date:
% Done:

0%

Estimated time:

Description

Currently, only tests that are scheduled via main_containers.pm have CONTAINER_RUNTIME variable.
But those that are using yaml scheduling don't need to have it.

So, some jobs are running docker and podman tests in the same job. In order to combine test modules like docker_3rd_party_images.pm and podman_3rd_party_images.pm together (e.g. 3rd_pary_images), we need to give the test module which runtime we want to use: podman, docker or both.

This way, we will be able to do something like:

foreach my $runtime (split /,/, $CONTAINER_RUNTIME) {
    my $engine = $self->containers_factory($runtime);
    # test logic here using $engine
}
Actions

Also available in: Atom PDF