diff --git a/library/common-test/tests/ingressold/service_reference_test.yaml b/library/common-test/tests/ingressold/service_reference_test.yaml deleted file mode 100644 index 0fe2042f..00000000 --- a/library/common-test/tests/ingressold/service_reference_test.yaml +++ /dev/null @@ -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 diff --git a/library/common-test/tests/ingressold/tls_test.yaml b/library/common-test/tests/ingressold/tls_test.yaml deleted file mode 100644 index d07b8bbc..00000000 --- a/library/common-test/tests/ingressold/tls_test.yaml +++ /dev/null @@ -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 diff --git a/library/common-test/tests/ingressold/values_test.yaml b/library/common-test/tests/ingressold/values_test.yaml deleted file mode 100644 index ef06584e..00000000 --- a/library/common-test/tests/ingressold/values_test.yaml +++ /dev/null @@ -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"