test: fix tests
This commit is contained in:
parent
4b35bcb402
commit
206aba2ba2
5 changed files with 14 additions and 14 deletions
|
@ -30,15 +30,15 @@ tests:
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
path: stringData.server
|
path: stringData.server
|
||||||
pattern: \nDOMAIN=gitea-unittests-http.testing.svc.cluster.local
|
pattern: \nDOMAIN=gitea-unittests-forgejo-http.testing.svc.cluster.local
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
path: stringData.server
|
path: stringData.server
|
||||||
pattern: \nSSH_DOMAIN=gitea-unittests-http.testing.svc.cluster.local
|
pattern: \nSSH_DOMAIN=gitea-unittests-forgejo-http.testing.svc.cluster.local
|
||||||
- documentIndex: 0
|
- documentIndex: 0
|
||||||
matchRegex:
|
matchRegex:
|
||||||
path: stringData.server
|
path: stringData.server
|
||||||
pattern: \nROOT_URL=http://gitea-unittests-http.testing.svc.cluster.local
|
pattern: \nROOT_URL=http://gitea-unittests-forgejo-http.testing.svc.cluster.local
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ tests:
|
||||||
matchRegex:
|
matchRegex:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
# IN CASE OF AN INTENTIONAL MAJOR BUMP, ADJUST THIS TEST
|
# IN CASE OF AN INTENTIONAL MAJOR BUMP, ADJUST THIS TEST
|
||||||
pattern: ^docker.io/bitnami/postgresql:15.+$
|
pattern: ^docker.io/bitnami/postgresql:16.+$
|
||||||
- it: "[redis-cluster] ensures we detect major image version upgrades"
|
- it: "[redis-cluster] ensures we detect major image version upgrades"
|
||||||
template: charts/redis-cluster/templates/redis-statefulset.yaml
|
template: charts/redis-cluster/templates/redis-statefulset.yaml
|
||||||
set:
|
set:
|
||||||
|
|
|
@ -14,7 +14,7 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "gitea/gitea:1.19.3-rootless"
|
value: "codeberg.org/forgejo/forgejo:1.19.3-rootless"
|
||||||
- it: tag override
|
- it: tag override
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
|
@ -22,7 +22,7 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "gitea/gitea:1.19.4-rootless"
|
value: "codeberg.org/forgejo/forgejo:1.19.4-rootless"
|
||||||
- it: root-based image
|
- it: root-based image
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
|
@ -30,7 +30,7 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "gitea/gitea:1.19.3"
|
value: "codeberg.org/forgejo/forgejo:1.19.3"
|
||||||
- it: scoped registry
|
- it: scoped registry
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
|
@ -38,7 +38,7 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "example.com/gitea/gitea:1.19.3-rootless"
|
value: "example.com/forgejo/forgejo:1.19.3-rootless"
|
||||||
- it: global registry
|
- it: global registry
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
|
@ -46,7 +46,7 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "global.example.com/gitea/gitea:1.19.3-rootless"
|
value: "global.example.com/forgejo/forgejo:1.19.3-rootless"
|
||||||
- it: digest for rootless image
|
- it: digest for rootless image
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
|
@ -56,7 +56,7 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "gitea/gitea:1.19.3-rootless@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
value: "codeberg.org/forgejo/forgejo:1.19.3-rootless@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
||||||
- it: image fullOverride (does not append rootless)
|
- it: image fullOverride (does not append rootless)
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
|
@ -81,7 +81,7 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "gitea/gitea:1.19.3@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
value: "codeberg.org/forgejo/forgejo:1.19.3@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
||||||
- it: digest and global registry
|
- it: digest and global registry
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
|
@ -90,4 +90,4 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.containers[0].image
|
path: spec.template.spec.containers[0].image
|
||||||
value: "global.example.com/gitea/gitea:1.19.3-rootless@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
value: "global.example.com/forgejo/forgejo:1.19.3-rootless@sha256:b28e8f3089b52ebe6693295df142f8c12eff354e9a4a5bfbb5c10f296c3a537a"
|
||||||
|
|
|
@ -18,7 +18,7 @@ tests:
|
||||||
- containsDocument:
|
- containsDocument:
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: gitea-unittests
|
name: gitea-unittests-forgejo
|
||||||
- equal:
|
- equal:
|
||||||
path: automountServiceAccountToken
|
path: automountServiceAccountToken
|
||||||
value: false
|
value: false
|
||||||
|
|
|
@ -19,7 +19,7 @@ tests:
|
||||||
asserts:
|
asserts:
|
||||||
- equal:
|
- equal:
|
||||||
path: spec.template.spec.serviceAccountName
|
path: spec.template.spec.serviceAccountName
|
||||||
value: gitea-unittests
|
value: gitea-unittests-forgejo
|
||||||
- it: allows referencing an externally created ServiceAccount to the deployment
|
- it: allows referencing an externally created ServiceAccount to the deployment
|
||||||
template: templates/gitea/deployment.yaml
|
template: templates/gitea/deployment.yaml
|
||||||
set:
|
set:
|
||||||
|
|
Loading…
Reference in a new issue