Project

General

Profile

Actions

action #101442

closed

coordination #90086: [epic] Refactor container tests

Create factory class to create the container engine object

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

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2021-10-25
Due date:
% Done:

0%

Estimated time:

Description

Currently, we are doing:
my $engine = containers::engine::docker->new();
or
my $engine = containers::engine::podman->new();

To make the creation of the object and make it more flexible,
we have the job variable CONTAINER_RUNTIME, so we could make
use of it like this:

my $engine = containers::engine:->new(get_required_var('CONTAINER_RUNTIME');

This would return the object podman or docker depending on the given argument.

Actions

Also available in: Atom PDF