From 9342e077118fed2702a3b41979e6b80a0d22cc59 Mon Sep 17 00:00:00 2001 From: Yan Bondarenko <202671653+yankawai@users.noreply.github.com> Date: Wed, 21 Oct 2026 13:13:56 +0300 Subject: [PATCH] test(harbor): check that the resized components reach the release The case that resizes the other components looked only at nginx and the portal, so it would keep passing if those overrides stopped reaching the nested release, and then it could not catch nginx or the portal following another component's values. It now checks the core, registry and jobservice limits it sets and leaves trivy alone, as nothing in the case reads it. The portal case also checks its memory request, as the nginx case does. Assisted-by: LLM Signed-off-by: Yan Bondarenko <202671653+yankawai@users.noreply.github.com> (cherry picked from commit 1d8bea039bf70d2b45fb4d3360fa899ead20ba1f) Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com> --- .../apps/harbor/tests/nginx_resources_test.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/apps/harbor/tests/nginx_resources_test.yaml b/packages/apps/harbor/tests/nginx_resources_test.yaml index bc54d58c7..654615837 100644 --- a/packages/apps/harbor/tests/nginx_resources_test.yaml +++ b/packages/apps/harbor/tests/nginx_resources_test.yaml @@ -41,6 +41,8 @@ tests: - equal: path: spec.values.harbor.portal.resources.limits.cpu value: 500m + - exists: + path: spec.values.harbor.portal.resources.requests.memory - it: keeps both sizes when the other components are resized template: templates/harbor.yaml @@ -56,9 +58,16 @@ tests: memory: 1Gi jobservice: resourcesPreset: t1.medium - trivy: - resourcesPreset: t1.large asserts: + - equal: + path: spec.values.harbor.core.resources.limits.memory + value: 128Mi + - equal: + path: spec.values.harbor.registry.registry.resources.limits.memory + value: 1Gi + - equal: + path: spec.values.harbor.jobservice.resources.limits.memory + value: 1Gi - equal: path: spec.values.harbor.nginx.resources.limits.memory value: 512Mi