feat(common)!: Release v3.0.0-beta1 (#278)

This commit is contained in:
Bernd Schorgers 2024-03-07 19:53:41 +01:00 committed by GitHub
parent deafcf75a1
commit b78483b0b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
88 changed files with 3697 additions and 1209 deletions

View file

@ -3,10 +3,12 @@
suite: ingress metadata
templates:
- common.yaml
values:
- ../_values/ingress_main_default_hosts.yaml
tests:
- it: default metadata should pass
set:
ingress.main.enabled: true
asserts:
- documentIndex: &IngressDocument 2
isKind:
@ -26,7 +28,6 @@ tests:
- it: custom metadata should pass
set:
ingress.main:
enabled: true
annotations:
test_annotation: test
labels:
@ -58,7 +59,6 @@ tests:
annotations:
global_annotation: test
ingress.main:
enabled: true
annotations:
test_annotation: test
labels:

View file

@ -18,6 +18,8 @@ tests:
of: Ingress
- it: explicitly disabled should pass
values:
- ../_values/ingress_main_default_hosts.yaml
set:
ingress.main.enabled: false
asserts:
@ -33,6 +35,8 @@ tests:
of: Ingress
- it: explicitly enabled should pass
values:
- ../_values/ingress_main_default_hosts.yaml
set:
ingress.main.enabled: true
asserts:
@ -50,33 +54,18 @@ tests:
isKind:
of: Ingress
- it: multiple enabled should pass
- it: multiple ingress should pass
values:
- ../_values/ingress_main_default_hosts.yaml
set:
ingress.main.enabled: true
ingress.test.enabled: true
asserts:
- hasDocuments:
count: 4
- documentIndex: 0
not: true
isKind:
of: Ingress
- documentIndex: 1
not: true
isKind:
of: Ingress
- documentIndex: 2
isKind:
of: Ingress
- documentIndex: 3
isKind:
of: Ingress
- it: multiple with default enabled should pass
set:
ingress.main.enabled: true
ingress.test: {}
ingress.test:
hosts:
- host: "chart-example.local"
paths:
- path: /
service:
name: main
port: http
asserts:
- hasDocuments:
count: 4
@ -102,3 +91,35 @@ tests:
equal:
path: metadata.name
value: RELEASE-NAME-test
- it: multiple ingress with explicit disabled should pass
values:
- ../_values/ingress_main_default_hosts.yaml
set:
ingress.test:
enabled: false
hosts:
- host: "chart-example.local"
paths:
- path: /
service:
name: main
port: http
asserts:
- hasDocuments:
count: 3
- documentIndex: 0
not: true
isKind:
of: Ingress
- documentIndex: 1
not: true
isKind:
of: Ingress
- documentIndex: &FirstIngressDocument 2
isKind:
of: Ingress
- documentIndex: *FirstIngressDocument
equal:
path: metadata.name
value: RELEASE-NAME

View file

@ -3,10 +3,12 @@
suite: ingress service reference
templates:
- common.yaml
values:
- ../_values/ingress_main_default_hosts.yaml
tests:
- it: default should pass
set:
ingress.main.enabled: true
asserts:
- documentIndex: &IngressDocument 2
isKind:
@ -23,7 +25,6 @@ tests:
- it: custom service reference should pass
set:
ingress.main:
enabled: true
hosts:
- host: chart-test.local
paths:
@ -56,7 +57,6 @@ tests:
port: &http2Port 1880
ingress:
main:
enabled: true
className: "nginx"
hosts:
- host: http.chart-test.local

View file

@ -3,10 +3,12 @@
suite: ingress tls
templates:
- common.yaml
values:
- ../_values/ingress_main_default_hosts.yaml
tests:
- it: default should pass
set:
ingress.main.enabled: true
asserts:
- documentIndex: &IngressDocument 2
isKind:
@ -18,7 +20,6 @@ tests:
- it: tls enabled should pass
set:
ingress.main:
enabled: true
tls:
- secretName: test
hosts:
@ -38,7 +39,6 @@ tests:
- it: tls enabled without secret should pass
set:
ingress.main:
enabled: true
tls:
- hosts:
- hostname
@ -56,7 +56,6 @@ tests:
- it: tls enabled with secret template should pass
set:
ingress.main:
enabled: true
tls:
- secretName: "{{ .Release.Name }}-secret"
hosts:
@ -76,7 +75,6 @@ tests:
- it: tls enabled with secret template evaluate empty should pass
set:
ingress.main:
enabled: true
tls:
- secretName: '{{ "" }}'
hosts:

View file

@ -3,10 +3,12 @@
suite: ingress values
templates:
- common.yaml
values:
- ../_values/ingress_main_default_hosts.yaml
tests:
- it: default should pass
set:
ingress.main.enabled: true
asserts:
- documentIndex: &IngressDocument 2
isKind:
@ -23,7 +25,6 @@ tests:
- it: custom host and path should pass
set:
ingress.main:
enabled: true
hosts:
- host: chart-test.local
paths:
@ -46,10 +47,13 @@ tests:
- it: host with template should pass
set:
ingress.main:
enabled: true
hosts:
- host: "{{ .Release.Name }}.hostname"
paths:
- path: /
service:
name: main
port: http
asserts:
- documentIndex: &IngressDocument 2
isKind:
@ -62,7 +66,6 @@ tests:
- it: path with template should pass
set:
ingress.main:
enabled: true
hosts:
- host: chart-test.local
paths:
@ -81,7 +84,6 @@ tests:
- it: with defaultBackend should pass
set:
ingress.main:
enabled: true
defaultBackend: test
asserts:
- documentIndex: &IngressDocument 2