mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 12:16:03 +09:00
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 1d8bea039b)
Signed-off-by: cozystack-ci[bot] <274107086+cozystack-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
33f4e93e10
commit
9342e07711
1 file changed
+11
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user