Project

General

Profile

Actions

action #107776

closed

coordination #90086: [epic] Refactor container tests

Ability to provide the Container Image Under Test via job variable

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

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2022-03-02
Due date:
% Done:

0%

Estimated time:

Description

Currently, we have the variable CONTAINER_IMAGE_VERSIONS which translates an array (or single element) of images in the form of 15-SP1,15-SP2 (for SLE) into specific URL to the internal or external registry.
https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/containers/urls.pm

So far, we have been testing only the SLE Base Image, and that URL translation done in urls.pm was ok, even though we need to modify it when a new SLE/Leap version comes up.

But NOW we need to test a bunch of new BCI images (besides Base) and this way to getting the URL is not scalable..
For example, if we want to trigger a test for bci-minimal on Amazon Kubernetes, the test currently relies on get_suse_container_urls().

The idea is to provide a NEW job variable CONTAINER_IMAGE_TO_TEST with full URL to the image,
e.g. CONTAINER_IMAGE_TO_TEST=registry.suse.de/suse/sle-15-sp3/update/cr/totest/images/bci/bci-minimal:15.3
If this variable is present, the test shall NOT call get_suse_container_urls() and use the image URL directly to be pulled and tested.

The target files to be changed adding this feature shall be:


Related issues 1 (0 open1 closed)

Blocks Containers - action #108058: Refactor way to get list of registry URLs for container imagesResolvedpdostal2022-03-09

Actions
Actions #1

Updated by jlausuch over 2 years ago

  • Description updated (diff)
Actions #2

Updated by pdostal over 2 years ago

  • Status changed from Workable to In Progress
  • Assignee set to pdostal
Actions #4

Updated by jlausuch over 2 years ago

  • Blocks action #107830: Enable BCI tests on Amazon EKS and Azure AKS added
Actions #5

Updated by jlausuch over 2 years ago

  • Blocks deleted (action #107830: Enable BCI tests on Amazon EKS and Azure AKS)
Actions #6

Updated by pdostal over 2 years ago

  • Blocks action #108058: Refactor way to get list of registry URLs for container images added
Actions #7

Updated by pdostal over 2 years ago

  • Status changed from In Progress to Resolved

This works since Friday.

Actions

Also available in: Atom PDF