add unittests

This commit is contained in:
Dalton Russell 2024-04-29 17:39:14 -04:00
parent 9d4f8d063b
commit 1c60c23939
No known key found for this signature in database
GPG Key ID: C86DEB9BD0AE8CEF
1 changed files with 14 additions and 0 deletions

View File

@ -15,3 +15,17 @@ tests:
kind: Deployment
apiVersion: apps/v1
name: gitea-unittests
- it: deployment labels are set
template: templates/gitea/deployment.yaml
set:
deployment.labels:
hello: world
asserts:
- isSubset:
path: metadata.labels
content:
hello: world
- isSubset:
path: spec.template.metadata.labels
content:
hello: world