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 #1

Updated by jlausuch over 2 years ago

  • Priority changed from Normal to High
Actions #2

Updated by jlausuch over 2 years ago

  • Status changed from New to In Progress
  • Assignee set to jlausuch
Actions #3

Updated by jlausuch over 2 years ago

  • Status changed from In Progress to Resolved
Actions #4

Updated by jlausuch over 2 years ago

  • Status changed from Resolved to In Progress

All the modules still need to make use of Factory. The PR was showing only an example of 2 modules doing that, but we need to do that in all the others.

Actions #5

Updated by jlausuch over 2 years ago

  • Status changed from In Progress to Feedback
Actions #7

Updated by jlausuch over 2 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF