Files
cozystack/packages/system
Myasnikov Daniil 4c5319c426 test(harbor): add helm-unittest coverage for bucket-secret guards
`hack/helm-unit-tests.sh` auto-discovers any package whose Makefile has
a `test` target. `packages/system/harbor` had none, so the conditional
rendering of `bucket-secret.yaml` (the path this PR actively reshapes)
was un-asserted in CI and the bucket-secret guard would not be pinned
against future refactors.

Add the canonical `test: helm unittest .` target, matching every other
`packages/system/*` package that ships a `tests/` directory
(linstor-scheduler, linstor-gui, cozystack-scheduler, nfs-driver).

Add `tests/bucket_secret_test.yaml` with seven cases covering: spec
absent, spec empty, secretS3 absent, secretS3 empty, secretS3 partial
(only one inner field), bucketName missing, and fully populated. The
first six assert no Secret is rendered; the last asserts the four
expected `stringData` entries plus the static region. 7/7 pass locally
(`bash hack/helm-unit-tests.sh`).

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
(cherry picked from commit 4ecb8fb0d6)
2026-05-18 15:15:17 +00:00
..
2026-05-07 10:30:21 +00:00
2026-03-25 15:57:25 +05:00
2026-05-07 10:30:21 +00:00
2026-03-25 15:57:25 +05:00
2026-05-07 10:30:21 +00:00
2026-05-07 10:30:21 +00:00
2026-03-25 15:57:25 +05:00
2026-01-20 03:24:32 +01:00
2026-05-07 10:30:21 +00:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-05-07 10:30:21 +00:00
2026-05-07 10:30:21 +00:00
2026-05-07 10:30:21 +00:00
2026-03-25 15:57:25 +05:00
2026-05-07 01:39:27 +00:00
2026-05-07 10:30:21 +00:00
2026-05-07 01:39:27 +00:00
2026-02-10 20:19:03 +01:00
2026-03-25 15:57:25 +05:00
2026-01-15 23:32:41 +00:00
2026-01-20 03:24:32 +01:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-05-07 10:30:21 +00:00
2026-02-17 22:54:12 +01:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-01-20 03:24:32 +01:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-05-07 10:30:21 +00:00
2026-03-25 15:57:25 +05:00
2026-03-25 15:57:25 +05:00
2026-04-14 19:59:19 +05:00
2026-03-25 15:57:25 +05:00