action #107776
closedcoordination #90086: [epic] Refactor container tests
Ability to provide the Container Image Under Test via job variable
0%
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:
Updated by pdostal almost 3 years ago
- Status changed from Workable to In Progress
- Assignee set to pdostal
Updated by pdostal almost 3 years ago
Updated by jlausuch almost 3 years ago
- Blocks action #107830: Enable BCI tests on Amazon EKS and Azure AKS added
Updated by jlausuch almost 3 years ago
- Blocks deleted (action #107830: Enable BCI tests on Amazon EKS and Azure AKS)
Updated by pdostal almost 3 years ago
- Blocks action #108058: Refactor way to get list of registry URLs for container images added
Updated by pdostal almost 3 years ago
- Status changed from In Progress to Resolved
This works since Friday.