Actions
action #101442
closedcoordination #90086: [epic] Refactor container tests
Create factory class to create the container engine object
Start date:
2021-10-25
Due date:
% Done:
0%
Estimated time:
Tags:
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