diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 67a2d00..e80892d 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -57,6 +57,7 @@ data: - Each test must set all required values explicitly — do not rely on cross-test state. - The `values.yaml` file must pass `yamllint`. The configuration is in `.yamllint.yaml`. Use `make yamllint` to run the linter. - The title of the unit test should clearly describe the scenario being tested. As title must be use a short sentence starting with a capital letter and ending without a period. +- The `suite` title follows the pattern `Test ` (e.g. `Test deployment probes`). It must be unique across all suites, because `helm unittest` identifies a failing suite by this title. - Each unit test must explicitly set a custom namespace and release name, rather than relying on defaults. - Assert `Secret` content via `data.*` with `decodeBase64: true` and add a `notExists` assertion for `stringData`. diff --git a/unittests/helm/admin-secret/admin.yaml b/unittests/helm/admin-secret/admin.yaml index a52cb41..9c6d26e 100644 --- a/unittests/helm/admin-secret/admin.yaml +++ b/unittests/helm/admin-secret/admin.yaml @@ -1,4 +1,4 @@ -suite: Admin secret template +suite: Test admin secret release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/config/actions-config.yaml b/unittests/helm/config/actions-config.yaml index 66931b9..65bf495 100644 --- a/unittests/helm/config/actions-config.yaml +++ b/unittests/helm/config/actions-config.yaml @@ -1,4 +1,4 @@ -suite: config template | actions config +suite: Test config actions release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/config/cache-config.yaml b/unittests/helm/config/cache-config.yaml index 69e81a2..b75f40f 100644 --- a/unittests/helm/config/cache-config.yaml +++ b/unittests/helm/config/cache-config.yaml @@ -1,4 +1,4 @@ -suite: config template | cache config +suite: Test config cache release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/config/config-environment-script.yaml b/unittests/helm/config/config-environment-script.yaml index def7676..b3cfca3 100644 --- a/unittests/helm/config/config-environment-script.yaml +++ b/unittests/helm/config/config-environment-script.yaml @@ -1,4 +1,4 @@ -suite: config template | config_environment.sh +suite: Test config environment script release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/config/metrics-section_metrics-token.yaml b/unittests/helm/config/metrics-section_metrics-token.yaml index 64ddd5f..c4c60b0 100644 --- a/unittests/helm/config/metrics-section_metrics-token.yaml +++ b/unittests/helm/config/metrics-section_metrics-token.yaml @@ -1,4 +1,4 @@ -suite: config template | metrics section (metrics token) +suite: Test config metrics token release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/config/queue-config.yaml b/unittests/helm/config/queue-config.yaml index 88c477f..c62b3bb 100644 --- a/unittests/helm/config/queue-config.yaml +++ b/unittests/helm/config/queue-config.yaml @@ -1,4 +1,4 @@ -suite: config template | queue config +suite: Test config queue release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/config/server-section_domain.yaml b/unittests/helm/config/server-section_domain.yaml index 1f8ec3d..4731ff8 100644 --- a/unittests/helm/config/server-section_domain.yaml +++ b/unittests/helm/config/server-section_domain.yaml @@ -1,4 +1,4 @@ -suite: config template | server section (domain related) +suite: Test config server domain release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/config/session-config.yaml b/unittests/helm/config/session-config.yaml index 3e58beb..d099d84 100644 --- a/unittests/helm/config/session-config.yaml +++ b/unittests/helm/config/session-config.yaml @@ -1,4 +1,4 @@ -suite: config template | session config +suite: Test config session release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/dependency-checks/customization-integrity-postgresql-ha.yaml b/unittests/helm/dependency-checks/customization-integrity-postgresql-ha.yaml index 7453974..53cfda4 100644 --- a/unittests/helm/dependency-checks/customization-integrity-postgresql-ha.yaml +++ b/unittests/helm/dependency-checks/customization-integrity-postgresql-ha.yaml @@ -1,4 +1,4 @@ -suite: Dependency checks | Customization integrity | postgresql-ha +suite: Test dependency customization integrity of postgresql-ha release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/dependency-checks/customization-integrity-postgresql.yaml b/unittests/helm/dependency-checks/customization-integrity-postgresql.yaml index ba9b2b2..d9c06b8 100644 --- a/unittests/helm/dependency-checks/customization-integrity-postgresql.yaml +++ b/unittests/helm/dependency-checks/customization-integrity-postgresql.yaml @@ -1,4 +1,4 @@ -suite: Dependency checks | Customization integrity | postgresql +suite: Test dependency customization integrity of postgresql release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/dependency-checks/customization-integrity-valkey.yaml b/unittests/helm/dependency-checks/customization-integrity-valkey.yaml index 79fae74..d235363 100644 --- a/unittests/helm/dependency-checks/customization-integrity-valkey.yaml +++ b/unittests/helm/dependency-checks/customization-integrity-valkey.yaml @@ -1,4 +1,4 @@ -suite: Dependency checks | Customization integrity | valkey +suite: Test dependency customization integrity of valkey release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/dependency-checks/major-image-bump.yaml b/unittests/helm/dependency-checks/major-image-bump.yaml index 54e3d61..59e862f 100644 --- a/unittests/helm/dependency-checks/major-image-bump.yaml +++ b/unittests/helm/dependency-checks/major-image-bump.yaml @@ -1,4 +1,4 @@ -suite: Dependency checks | Major image bumps +suite: Test dependency major image bumps release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/HA.yaml b/unittests/helm/deployment/HA.yaml index 9b7fe36..27830d1 100644 --- a/unittests/helm/deployment/HA.yaml +++ b/unittests/helm/deployment/HA.yaml @@ -1,4 +1,4 @@ -suite: deployment template (HA) +suite: Test deployment high availability release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/admin.yaml b/unittests/helm/deployment/admin.yaml index 55ad8f2..ccf823b 100644 --- a/unittests/helm/deployment/admin.yaml +++ b/unittests/helm/deployment/admin.yaml @@ -1,4 +1,4 @@ -suite: deployment template (admin user) +suite: Test deployment admin user release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/basic.yaml b/unittests/helm/deployment/basic.yaml index 2472f17..bc7757d 100644 --- a/unittests/helm/deployment/basic.yaml +++ b/unittests/helm/deployment/basic.yaml @@ -1,4 +1,4 @@ -suite: deployment template (basic) +suite: Test deployment basics release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/checksum-annotations.yaml b/unittests/helm/deployment/checksum-annotations.yaml index f5807fc..817845d 100644 --- a/unittests/helm/deployment/checksum-annotations.yaml +++ b/unittests/helm/deployment/checksum-annotations.yaml @@ -1,4 +1,4 @@ -suite: deployment template (checksum annotations) +suite: Test deployment checksum annotations release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/deployment-additional-config.yaml b/unittests/helm/deployment/deployment-additional-config.yaml index 7ca009e..c417fbf 100644 --- a/unittests/helm/deployment/deployment-additional-config.yaml +++ b/unittests/helm/deployment/deployment-additional-config.yaml @@ -1,4 +1,4 @@ -suite: deployment template +suite: Test deployment additional config release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/deprecations.yaml b/unittests/helm/deployment/deprecations.yaml index 809c42d..8923355 100644 --- a/unittests/helm/deployment/deprecations.yaml +++ b/unittests/helm/deployment/deprecations.yaml @@ -1,4 +1,4 @@ -suite: deprecation template (deployment) +suite: Test deployment deprecations release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/extraEnvSourceFile.yaml b/unittests/helm/deployment/extraEnvSourceFile.yaml index c957616..ae25be0 100644 --- a/unittests/helm/deployment/extraEnvSourceFile.yaml +++ b/unittests/helm/deployment/extraEnvSourceFile.yaml @@ -1,4 +1,4 @@ -suite: deployment template (extraEnvSourceFile) +suite: Test deployment extraEnvSourceFile release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/extraInitContainers.yaml b/unittests/helm/deployment/extraInitContainers.yaml index bc40e25..c8dd1b6 100644 --- a/unittests/helm/deployment/extraInitContainers.yaml +++ b/unittests/helm/deployment/extraInitContainers.yaml @@ -1,4 +1,4 @@ -suite: deployment template +suite: Test deployment extraInitContainers release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/image-configuration.yaml b/unittests/helm/deployment/image-configuration.yaml index 951e75f..4753b29 100644 --- a/unittests/helm/deployment/image-configuration.yaml +++ b/unittests/helm/deployment/image-configuration.yaml @@ -1,4 +1,4 @@ -suite: deployment template (image configuration) +suite: Test deployment image configuration release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/initContainerConfiguration.yaml b/unittests/helm/deployment/initContainerConfiguration.yaml index 9bc4774..1c875a7 100644 --- a/unittests/helm/deployment/initContainerConfiguration.yaml +++ b/unittests/helm/deployment/initContainerConfiguration.yaml @@ -1,4 +1,4 @@ -suite: deployment template (init container configuration) +suite: Test deployment init container configuration release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/inline-config.yaml b/unittests/helm/deployment/inline-config.yaml index 81d9ba3..ab9dd37 100644 --- a/unittests/helm/deployment/inline-config.yaml +++ b/unittests/helm/deployment/inline-config.yaml @@ -1,4 +1,4 @@ -suite: config template +suite: Test deployment inline config release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/openshift.yaml b/unittests/helm/deployment/openshift.yaml index d6b2327..ae11bf5 100644 --- a/unittests/helm/deployment/openshift.yaml +++ b/unittests/helm/deployment/openshift.yaml @@ -1,4 +1,4 @@ -suite: deployment template (openshift) +suite: Test deployment on OpenShift release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/probes.yaml b/unittests/helm/deployment/probes.yaml index 2df3c7b..289c2a3 100644 --- a/unittests/helm/deployment/probes.yaml +++ b/unittests/helm/deployment/probes.yaml @@ -1,4 +1,4 @@ -suite: deployment template (probes) +suite: Test deployment probes release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/sidecar-container.yaml b/unittests/helm/deployment/sidecar-container.yaml index 77ed586..d30e508 100644 --- a/unittests/helm/deployment/sidecar-container.yaml +++ b/unittests/helm/deployment/sidecar-container.yaml @@ -1,4 +1,4 @@ -suite: sidecar container +suite: Test deployment sidecar container release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/signing-disabled.yaml b/unittests/helm/deployment/signing-disabled.yaml index b4d04fb..7ceb655 100644 --- a/unittests/helm/deployment/signing-disabled.yaml +++ b/unittests/helm/deployment/signing-disabled.yaml @@ -1,4 +1,4 @@ -suite: deployment template (signing disabled) +suite: Test deployment with signing disabled release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/signing-enabled.yaml b/unittests/helm/deployment/signing-enabled.yaml index 7b6d924..cfd1aab 100644 --- a/unittests/helm/deployment/signing-enabled.yaml +++ b/unittests/helm/deployment/signing-enabled.yaml @@ -1,4 +1,4 @@ -suite: deployment template (signing enabled) +suite: Test deployment with signing enabled release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/ssh-configuration.yaml b/unittests/helm/deployment/ssh-configuration.yaml index e1705a4..3e2b91a 100644 --- a/unittests/helm/deployment/ssh-configuration.yaml +++ b/unittests/helm/deployment/ssh-configuration.yaml @@ -1,4 +1,4 @@ -suite: deployment template (SSH configuration) +suite: Test deployment SSH configuration release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/deployment/storage-class-configuration.yaml b/unittests/helm/deployment/storage-class-configuration.yaml index 4ca6360..929ce9a 100644 --- a/unittests/helm/deployment/storage-class-configuration.yaml +++ b/unittests/helm/deployment/storage-class-configuration.yaml @@ -3,7 +3,7 @@ chart: release: name: gitea-unittests namespace: testing -suite: Storage class configuration tests +suite: Test deployment storage class configuration templates: - templates/persistentVolumeClaim.yaml tests: diff --git a/unittests/helm/deployment/svc-configuration.yaml b/unittests/helm/deployment/svc-configuration.yaml index 0ef319f..ef3a938 100644 --- a/unittests/helm/deployment/svc-configuration.yaml +++ b/unittests/helm/deployment/svc-configuration.yaml @@ -1,4 +1,4 @@ -suite: sshService / httpService template (Services configuration) +suite: Test httpService and sshService configuration release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/gatewayAPI/backendTLSPolicy.yaml b/unittests/helm/gatewayAPI/backendTLSPolicy.yaml index e87968c..9367bbf 100644 --- a/unittests/helm/gatewayAPI/backendTLSPolicy.yaml +++ b/unittests/helm/gatewayAPI/backendTLSPolicy.yaml @@ -1,4 +1,4 @@ -suite: Test Gateway API backendTLSPolicy.yaml +suite: Test gateway API backendTLSPolicy release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/gatewayAPI/clientSettingsPolicy.yaml b/unittests/helm/gatewayAPI/clientSettingsPolicy.yaml index 1add54d..5e276a2 100644 --- a/unittests/helm/gatewayAPI/clientSettingsPolicy.yaml +++ b/unittests/helm/gatewayAPI/clientSettingsPolicy.yaml @@ -1,4 +1,4 @@ -suite: Test Gateway API clientSettingsPolicy.yaml +suite: Test gateway API clientSettingsPolicy release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/gatewayAPI/httpRoute.yaml b/unittests/helm/gatewayAPI/httpRoute.yaml index cfd69b9..f72df21 100644 --- a/unittests/helm/gatewayAPI/httpRoute.yaml +++ b/unittests/helm/gatewayAPI/httpRoute.yaml @@ -1,4 +1,4 @@ -suite: Test Gateway API httpRoute.yaml +suite: Test gateway API httpRoute release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/gatewayAPI/tcpRoute.yaml b/unittests/helm/gatewayAPI/tcpRoute.yaml index 1e94a80..2453a85 100644 --- a/unittests/helm/gatewayAPI/tcpRoute.yaml +++ b/unittests/helm/gatewayAPI/tcpRoute.yaml @@ -1,4 +1,4 @@ -suite: Test Gateway API tcpRoute.yaml +suite: Test gateway API tcpRoute release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/gpg-secret/signing-disabled.yaml b/unittests/helm/gpg-secret/signing-disabled.yaml index c87e42a..02225c9 100644 --- a/unittests/helm/gpg-secret/signing-disabled.yaml +++ b/unittests/helm/gpg-secret/signing-disabled.yaml @@ -1,4 +1,4 @@ -suite: GPG secret template (signing disabled) +suite: Test gpg secret with signing disabled release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/gpg-secret/signing-enabled.yaml b/unittests/helm/gpg-secret/signing-enabled.yaml index 0b3e097..799ec68 100644 --- a/unittests/helm/gpg-secret/signing-enabled.yaml +++ b/unittests/helm/gpg-secret/signing-enabled.yaml @@ -1,4 +1,4 @@ -suite: GPG secret template (signing enabled) +suite: Test gpg secret with signing enabled release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/ingress/ingress.yaml b/unittests/helm/ingress/ingress.yaml index 9e76234..51481f6 100644 --- a/unittests/helm/ingress/ingress.yaml +++ b/unittests/helm/ingress/ingress.yaml @@ -3,7 +3,7 @@ chart: release: name: gitea-unittests namespace: testing -suite: Test ingress.yaml +suite: Test ingress templates: - templates/ingress.yaml tests: diff --git a/unittests/helm/init/basic.yaml b/unittests/helm/init/basic.yaml index 9b65624..d66a1b6 100644 --- a/unittests/helm/init/basic.yaml +++ b/unittests/helm/init/basic.yaml @@ -1,4 +1,4 @@ -suite: Init template (basic) +suite: Test init secret basics release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/init/init_directory_structure.sh-rootless.yaml b/unittests/helm/init/init_directory_structure.sh-rootless.yaml index 5acb5fd..6166b18 100644 --- a/unittests/helm/init/init_directory_structure.sh-rootless.yaml +++ b/unittests/helm/init/init_directory_structure.sh-rootless.yaml @@ -1,4 +1,4 @@ -suite: Init template +suite: Test init directory structure script for the rootless image release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/init/init_directory_structure.sh.yaml b/unittests/helm/init/init_directory_structure.sh.yaml index e40d5e2..ed91de6 100644 --- a/unittests/helm/init/init_directory_structure.sh.yaml +++ b/unittests/helm/init/init_directory_structure.sh.yaml @@ -1,4 +1,4 @@ -suite: Init template +suite: Test init directory structure script release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/metric-secret/metrics-secret-servicemonitor-disabled.yaml b/unittests/helm/metric-secret/metrics-secret-servicemonitor-disabled.yaml index 4db3fce..ae02c0d 100644 --- a/unittests/helm/metric-secret/metrics-secret-servicemonitor-disabled.yaml +++ b/unittests/helm/metric-secret/metrics-secret-servicemonitor-disabled.yaml @@ -1,4 +1,4 @@ -suite: Metrics secret template (monitoring disabled) +suite: Test metrics secret with monitoring disabled release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/metric-secret/metrics-secret-servicemonitor-enabled.yaml b/unittests/helm/metric-secret/metrics-secret-servicemonitor-enabled.yaml index 1633db0..8a25b59 100644 --- a/unittests/helm/metric-secret/metrics-secret-servicemonitor-enabled.yaml +++ b/unittests/helm/metric-secret/metrics-secret-servicemonitor-enabled.yaml @@ -1,4 +1,4 @@ -suite: Metrics secret template (monitoring enabled) +suite: Test metrics secret with monitoring enabled release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/persistentVolumeClaim/persistentVolumeClaim.yaml b/unittests/helm/persistentVolumeClaim/persistentVolumeClaim.yaml index bc5c1f7..2ec729f 100644 --- a/unittests/helm/persistentVolumeClaim/persistentVolumeClaim.yaml +++ b/unittests/helm/persistentVolumeClaim/persistentVolumeClaim.yaml @@ -3,7 +3,7 @@ chart: release: name: gitea-unittests namespace: testing -suite: PVC template +suite: Test persistentVolumeClaim templates: - templates/persistentVolumeClaim.yaml tests: diff --git a/unittests/helm/route/basic.yaml b/unittests/helm/route/basic.yaml index 96891d0..a26b4ce 100644 --- a/unittests/helm/route/basic.yaml +++ b/unittests/helm/route/basic.yaml @@ -1,4 +1,4 @@ -suite: Test route.yaml +suite: Test route release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/serviceAccount/serviceAccount.yaml b/unittests/helm/serviceAccount/serviceAccount.yaml index cafc0a9..5cb2cf9 100644 --- a/unittests/helm/serviceAccount/serviceAccount.yaml +++ b/unittests/helm/serviceAccount/serviceAccount.yaml @@ -3,7 +3,7 @@ chart: release: name: gitea-unittests namespace: testing -suite: ServiceAccount template +suite: Test serviceAccount templates: - templates/serviceAccount.yaml tests: diff --git a/unittests/helm/servicemonitor/basic.yaml b/unittests/helm/servicemonitor/basic.yaml index 433a2d2..3e149c8 100644 --- a/unittests/helm/servicemonitor/basic.yaml +++ b/unittests/helm/servicemonitor/basic.yaml @@ -1,4 +1,4 @@ -suite: ServiceMonitor template (basic) +suite: Test serviceMonitor basics release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/servicemonitor/servicemonitor-disabled.yaml b/unittests/helm/servicemonitor/servicemonitor-disabled.yaml index e7b345a..6bff2b3 100644 --- a/unittests/helm/servicemonitor/servicemonitor-disabled.yaml +++ b/unittests/helm/servicemonitor/servicemonitor-disabled.yaml @@ -1,4 +1,4 @@ -suite: ServiceMonitor template (monitoring disabled) +suite: Test serviceMonitor with monitoring disabled release: name: gitea-unittests namespace: testing diff --git a/unittests/helm/servicemonitor/servicemonitor-enabled.yaml b/unittests/helm/servicemonitor/servicemonitor-enabled.yaml index 1e1dbd5..86066b2 100644 --- a/unittests/helm/servicemonitor/servicemonitor-enabled.yaml +++ b/unittests/helm/servicemonitor/servicemonitor-enabled.yaml @@ -1,4 +1,4 @@ -suite: ServiceMonitor template (monitoring enabled) +suite: Test serviceMonitor with monitoring enabled release: name: gitea-unittests namespace: testing