Added initial unittests for gitea actions
This commit is contained in:
parent
8d6269a8b1
commit
19b6916f35
20
unittests/actions/config-act-runner.yaml
Normal file
20
unittests/actions/config-act-runner.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: actions template | config-act-runner
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/actions/config-act-runner.yaml
|
||||
tests:
|
||||
- it: renders a deployment
|
||||
template: templates/gitea/actions/config-act-runner.yaml
|
||||
set:
|
||||
actions:
|
||||
statefulset:
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- containsDocument:
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
name: gitea-unittests-act-runner-config
|
20
unittests/actions/config-scripts.yaml
Normal file
20
unittests/actions/config-scripts.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: actions template | config-scripts
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/actions/config-scripts.yaml
|
||||
tests:
|
||||
- it: renders a deployment
|
||||
template: templates/gitea/actions/config-scripts.yaml
|
||||
set:
|
||||
actions:
|
||||
job:
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- containsDocument:
|
||||
kind: ConfigMap
|
||||
apiVersion: v1
|
||||
name: gitea-unittests-scripts
|
20
unittests/actions/job.yaml
Normal file
20
unittests/actions/job.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: actions template | job
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/actions/job.yaml
|
||||
tests:
|
||||
- it: renders a deployment
|
||||
template: templates/gitea/actions/job.yaml
|
||||
set:
|
||||
actions:
|
||||
job:
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- containsDocument:
|
||||
kind: Job
|
||||
apiVersion: batch/v1
|
||||
name: gitea-unittests-actions-token-job
|
20
unittests/actions/role-job.yaml
Normal file
20
unittests/actions/role-job.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: actions template | role-job
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/actions/role-job.yaml
|
||||
tests:
|
||||
- it: renders a role
|
||||
template: templates/gitea/actions/role-job.yaml
|
||||
set:
|
||||
actions:
|
||||
job:
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- containsDocument:
|
||||
kind: Role
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
name: gitea-unittests-actions-token-job
|
20
unittests/actions/rolebinding-job.yaml
Normal file
20
unittests/actions/rolebinding-job.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: actions template | rolebinding-job
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/actions/rolebinding-job.yaml
|
||||
tests:
|
||||
- it: renders a deployment
|
||||
template: templates/gitea/actions/rolebinding-job.yaml
|
||||
set:
|
||||
actions:
|
||||
job:
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- containsDocument:
|
||||
kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
name: gitea-unittests-actions-token-job
|
20
unittests/actions/secret-token.yaml
Normal file
20
unittests/actions/secret-token.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: actions template | secret-token
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/actions/secret-token.yaml
|
||||
tests:
|
||||
- it: renders a deployment
|
||||
template: templates/gitea/actions/secret-token.yaml
|
||||
set:
|
||||
actions:
|
||||
job:
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- containsDocument:
|
||||
kind: Secret
|
||||
apiVersion: v1
|
||||
name: gitea-unittests-actions-token
|
20
unittests/actions/serviceaccount-job.yaml
Normal file
20
unittests/actions/serviceaccount-job.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: actions template | serviceaccount-job
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/actions/serviceaccount-job.yaml
|
||||
tests:
|
||||
- it: renders a deployment
|
||||
template: templates/gitea/actions/serviceaccount-job.yaml
|
||||
set:
|
||||
actions:
|
||||
job:
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- containsDocument:
|
||||
kind: ServiceAccount
|
||||
apiVersion: v1
|
||||
name: gitea-unittests-actions-token-job
|
20
unittests/actions/statefulset.yaml
Normal file
20
unittests/actions/statefulset.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
suite: actions template | statefulset
|
||||
release:
|
||||
name: gitea-unittests
|
||||
namespace: testing
|
||||
templates:
|
||||
- templates/gitea/actions/statefulset.yaml
|
||||
tests:
|
||||
- it: renders a deployment
|
||||
template: templates/gitea/actions/statefulset.yaml
|
||||
set:
|
||||
actions:
|
||||
statefulset:
|
||||
enabled: true
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- containsDocument:
|
||||
kind: StatefulSet
|
||||
apiVersion: apps/v1
|
||||
name: gitea-unittests-act-runner
|
Loading…
x
Reference in New Issue
Block a user