remove old tests

This commit is contained in:
Stavros kois
2023-12-08 00:19:12 +02:00
parent a565f8adfe
commit ba064b099d
3 changed files with 0 additions and 365 deletions

View File

@@ -1,79 +0,0 @@
suite: ingress service reference
templates:
- common.yaml
release:
name: test-release-name
namespace: test-release-namespace
tests:
- it: default should pass
set:
operator:
verify:
enabled: false
ingress.main.enabled: true
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.rules[0].http.paths[0].backend.service
value:
name: test-release-name-common-test
port:
number: 12345
- it: custom service reference should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main:
enabled: true
hosts:
- host: chart-test.local
paths:
- path: /
service:
name: pathService
port: 1234
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.rules[0].http.paths[0].backend.service
value:
name: pathService
port:
number: 1234

View File

@@ -1,143 +0,0 @@
suite: ingress tls
templates:
- common.yaml
release:
name: test-release-name
namespace: test-release-namespace
tests:
- it: default should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main.enabled: true
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
isNull:
path: spec.tls
- it: tls enabled should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main:
enabled: true
tls:
- secretName: test
hosts:
- hostname
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.tls[0]
value:
secretName: test
hosts:
- hostname
- it: tls enabled without secret should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main:
enabled: true
tls:
- hosts:
- hostname
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.tls[0]
value:
hosts:
- hostname
- it: tls enabled with secret template should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main:
enabled: true
tls:
- secretName: "{{ .Release.Name }}-secret"
hosts:
- hostname
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.tls[0]
value:
secretName: test-release-name-secret
hosts:
- hostname

View File

@@ -1,143 +0,0 @@
suite: ingress values
templates:
- common.yaml
release:
name: test-release-name
namespace: test-release-namespace
tests:
- it: default should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main.enabled: true
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.rules[0].host
value: chart-example.local
- documentIndex: *ingressDocument
equal:
path: spec.rules[0].http.paths[0].path
value: "/"
- it: custom host and path should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main:
enabled: true
hosts:
- host: chart-test.local
paths:
- path: /test
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.rules[0].host
value: chart-test.local
- documentIndex: *ingressDocument
equal:
path: spec.rules[0].http.paths[0].path
value: "/test"
- it: host with template should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main:
enabled: true
hosts:
- host: "{{ .Release.Name }}.hostname"
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.rules[0].host
value: test-release-name.hostname
- it: path with template should pass
set:
operator:
verify:
enabled: false
service:
main:
enabled: true
ports:
main:
enabled: true
primary: true
port: 12345
workload:
my-workload:
enabled: true
primary: true
type: Deployment
podSpec: {}
ingress.main:
enabled: true
hosts:
- host: chart-test.local
paths:
- path: "/{{ .Release.Name }}.path"
asserts:
- documentIndex: &ingressDocument 2
isKind:
of: Ingress
- documentIndex: *ingressDocument
equal:
path: spec.rules[0].http.paths[0].path
value: "/test-release-name.path"