From 15f98579ee2a97c4a275ad5c70f48b5477d9dcff Mon Sep 17 00:00:00 2001 From: Martin Loviska Date: Tue, 18 Jul 2023 15:33:59 +0200 Subject: [PATCH] Add option to target released containers Run `repository` test against already released base container. - ticket: https://progress.opensuse.org/issues/132935 --- bci_tester/data.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/bci_tester/data.py b/bci_tester/data.py index 837520b1..ec42a389 100755 --- a/bci_tester/data.py +++ b/bci_tester/data.py @@ -98,7 +98,14 @@ #: via this variable instead BASEURL = os.getenv("BASEURL") -if TARGET not in ("obs", "ibs", "ibs-cr", "dso", "factory-totest"): +if TARGET not in ( + "obs", + "ibs", + "ibs-cr", + "dso", + "factory-totest", + "ibs-released", +): if BASEURL is None: raise ValueError( f"Unknown target {TARGET} specified and BASEURL is not set, cannot continue" @@ -116,6 +123,7 @@ "ibs": f"registry.suse.de/suse/{DISTNAME}/update/bci", "dso": "registry1.dso.mil/ironbank/suse", "ibs-cr": f"registry.suse.de/suse/{DISTNAME}/update/cr/totest", + "ibs-released": f"registry.suse.com", }[TARGET] @@ -158,7 +166,7 @@ def create_container_version_mark( def _get_repository_name(image_type: _IMAGE_TYPE_T) -> str: - if TARGET == "dso": + if TARGET in ("dso", "ibs-released"): return "" if TARGET == "ibs-cr": return "images/"