From 052284a95dbaa25743fcca5525241732c33d2466 Mon Sep 17 00:00:00 2001 From: smerle33 Date: Mon, 18 Sep 2023 16:43:01 +0200 Subject: [PATCH] chore(unittest) move folders to correct locations and remove all test-connection.yaml tests as useless --- .../templates/tests/test-connection.yaml | 15 --------------- .../templates/tests/test-connection.yaml | 15 --------------- .../javadoc/templates/tests/test-connection.yaml | 15 --------------- .../templates/tests/test-connection.yaml | 15 --------------- .../keycloak/templates/tests/test-connection.yaml | 15 --------------- .../templates/tests/test-connection.yaml | 15 --------------- .../templates/tests/test-connection.yaml | 15 --------------- .../rating/templates/tests/test-connection.yaml | 15 --------------- .../reports/templates/tests/test-connection.yaml | 15 --------------- 9 files changed, 135 deletions(-) delete mode 100644 charts/basic-helm-chart-example/templates/tests/test-connection.yaml delete mode 100644 charts/incrementals-publisher/templates/tests/test-connection.yaml delete mode 100644 charts/javadoc/templates/tests/test-connection.yaml delete mode 100644 charts/jenkinsio/templates/tests/test-connection.yaml delete mode 100644 charts/keycloak/templates/tests/test-connection.yaml delete mode 100644 charts/plugin-site-issues/templates/tests/test-connection.yaml delete mode 100644 charts/plugin-site/templates/tests/test-connection.yaml delete mode 100644 charts/rating/templates/tests/test-connection.yaml delete mode 100644 charts/reports/templates/tests/test-connection.yaml diff --git a/charts/basic-helm-chart-example/templates/tests/test-connection.yaml b/charts/basic-helm-chart-example/templates/tests/test-connection.yaml deleted file mode 100644 index ebf02e451..000000000 --- a/charts/basic-helm-chart-example/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "basic-helm-chart-example.fullname" . }}-test-connection" - labels: - {{- include "basic-helm-chart-example.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "basic-helm-chart-example.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/charts/incrementals-publisher/templates/tests/test-connection.yaml b/charts/incrementals-publisher/templates/tests/test-connection.yaml deleted file mode 100644 index a68e4fef6..000000000 --- a/charts/incrementals-publisher/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "incrementals-publisher.fullname" . }}-test-connection" - labels: -{{ include "incrementals-publisher.labels" . | indent 4 }} - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "incrementals-publisher.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/charts/javadoc/templates/tests/test-connection.yaml b/charts/javadoc/templates/tests/test-connection.yaml deleted file mode 100644 index 5fdaa45d3..000000000 --- a/charts/javadoc/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "javadoc.fullname" . }}-test-connection" - labels: -{{ include "javadoc.labels" . | indent 4 }} - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "javadoc.fullname" . }}:80/'] - restartPolicy: Never diff --git a/charts/jenkinsio/templates/tests/test-connection.yaml b/charts/jenkinsio/templates/tests/test-connection.yaml deleted file mode 100644 index f1543e267..000000000 --- a/charts/jenkinsio/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "jenkinsio.fullname" . }}-test-connection" - labels: -{{ include "jenkinsio.labels" . | indent 4 }} - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "jenkinsio.fullname" . }}:80/'] - restartPolicy: Never diff --git a/charts/keycloak/templates/tests/test-connection.yaml b/charts/keycloak/templates/tests/test-connection.yaml deleted file mode 100644 index 67c45b6f6..000000000 --- a/charts/keycloak/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "keycloak.fullname" . }}-test-connection" - labels: - {{- include "keycloak.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "keycloak.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/charts/plugin-site-issues/templates/tests/test-connection.yaml b/charts/plugin-site-issues/templates/tests/test-connection.yaml deleted file mode 100644 index 8fed0399d..000000000 --- a/charts/plugin-site-issues/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "plugin-site-issues.fullname" . }}-test-connection" - labels: - {{- include "plugin-site-issues.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "plugin-site-issues.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/charts/plugin-site/templates/tests/test-connection.yaml b/charts/plugin-site/templates/tests/test-connection.yaml deleted file mode 100644 index 8dce1c0c6..000000000 --- a/charts/plugin-site/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "plugin-site.fullname" . }}-test-connection" - labels: -{{ include "plugin-site.labels" . | indent 4 }} - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "plugin-site.fullname" . }}:8080/labels'] - restartPolicy: Never diff --git a/charts/rating/templates/tests/test-connection.yaml b/charts/rating/templates/tests/test-connection.yaml deleted file mode 100644 index 60094477f..000000000 --- a/charts/rating/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "rating.fullname" . }}-test-connection" - labels: -{{ include "rating.labels" . | indent 4 }} - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "rating.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/charts/reports/templates/tests/test-connection.yaml b/charts/reports/templates/tests/test-connection.yaml deleted file mode 100644 index 981fdfb5b..000000000 --- a/charts/reports/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "reports.fullname" . }}-test-connection" - labels: -{{ include "reports.labels" . | indent 4 }} - annotations: - "helm.sh/hook": test-success -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "reports.fullname" . }}:80/'] - restartPolicy: Never