From b7ec3f73a17bd1dca26187bde298b8d76d83071b Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Mon, 16 Nov 2026 11:38:37 +0300 Subject: [PATCH] test(monitoring): keep a non-first-party ref in the Alerta image test A ghcr.io/cozystack/cozystack ref in a helm-unittest fixture counts as a first-party image ref, so the image-ref enumeration contracts in hack/promote-rewrite-tags_test.bats require its file to be declared. The test only needs some image string to pass through cozy-lib.image, so a placeholder registry keeps it out of the release tooling. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin --- packages/system/monitoring/tests/alerta_image_test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/system/monitoring/tests/alerta_image_test.yaml b/packages/system/monitoring/tests/alerta_image_test.yaml index cd98e8dfb..65187da0c 100644 --- a/packages/system/monitoring/tests/alerta_image_test.yaml +++ b/packages/system/monitoring/tests/alerta_image_test.yaml @@ -18,23 +18,23 @@ set: tests: - it: renders alerta.image as the container image set: - alerta.image: ghcr.io/cozystack/cozystack/alerta:v9.1.0-cozystack.0@sha256:0000000000000000000000000000000000000000000000000000000000000000 + alerta.image: registry.example.com/alerta:v9.1.0-cozystack.0@sha256:0000000000000000000000000000000000000000000000000000000000000000 documentSelector: path: kind value: Deployment asserts: - equal: path: spec.template.spec.containers[0].image - value: ghcr.io/cozystack/cozystack/alerta:v9.1.0-cozystack.0@sha256:0000000000000000000000000000000000000000000000000000000000000000 + value: registry.example.com/alerta:v9.1.0-cozystack.0@sha256:0000000000000000000000000000000000000000000000000000000000000000 - it: prefixes the image with the cluster images-registry when set set: _cluster.images-registry: mirror.example.com - alerta.image: ghcr.io/cozystack/cozystack/alerta:v9.1.0-cozystack.0@sha256:0000000000000000000000000000000000000000000000000000000000000000 + alerta.image: registry.example.com/alerta:v9.1.0-cozystack.0@sha256:0000000000000000000000000000000000000000000000000000000000000000 documentSelector: path: kind value: Deployment asserts: - equal: path: spec.template.spec.containers[0].image - value: mirror.example.com/ghcr.io/cozystack/cozystack/alerta:v9.1.0-cozystack.0@sha256:0000000000000000000000000000000000000000000000000000000000000000 + value: mirror.example.com/registry.example.com/alerta:v9.1.0-cozystack.0@sha256:0000000000000000000000000000000000000000000000000000000000000000