mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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 <f@lex.la>
This commit is contained in:
1 parent
33d0001991
commit
b7ec3f73a1
1 file changed
+4
-4
@@ -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
|
||||
Reference in new issue
Block a user