refactor: unittests and slightly add QoL (#127)

Reorder the unittests

---------

Co-authored-by: DaanSelen <dselen@systemec.nl>
Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/127
This commit is contained in:
DaanSelen
2026-04-09 09:56:30 +00:00
parent 988382bf8c
commit 9a62bad48a
6 changed files with 313 additions and 374 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/helm-unittest/helm-unittest/main/schema/helm-testsuite.json
suite: actions template | config-act-runner
release:
name: gitea-unittests
name: gitea-actions-unittests
namespace: testing
templates:
- templates/config-act-runner.yaml
@@ -31,7 +31,7 @@ tests:
- containsDocument:
kind: ConfigMap
apiVersion: v1
name: gitea-unittests-actions-act-runner-config
name: gitea-actions-unittests-act-runner-config
- equal:
path: data["config.yaml"]
value: |
@@ -59,7 +59,7 @@ tests:
- containsDocument:
kind: ConfigMap
apiVersion: v1
name: gitea-unittests-actions-act-runner-config
name: gitea-actions-unittests-act-runner-config
- matchRegex:
path: data["config.yaml"]
pattern: '(?m)^\s*options:\s*-v /var/run/docker.sock:/var/run/docker.sock\s*$'