X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test_scripts%2Fsubscription%2Ftest-subscription-helmchart-1.0.3%2Ftemplates%2Ftests%2Ftest-connection.yaml;fp=test_scripts%2Fsubscription%2Ftest-subscription-helmchart-1.0.3%2Ftemplates%2Ftests%2Ftest-connection.yaml;h=63ebb3e33a6b70d3d8f9ca0e9148a3f43458fa0d;hb=c5fa07bcd8cbd614bcd813cac698385b789bcfcb;hp=0000000000000000000000000000000000000000;hpb=59f84608ec15c016958a6e0e0ddd813f376c0925;p=it%2Ftest.git diff --git a/test_scripts/subscription/test-subscription-helmchart-1.0.3/templates/tests/test-connection.yaml b/test_scripts/subscription/test-subscription-helmchart-1.0.3/templates/tests/test-connection.yaml new file mode 100755 index 0000000..63ebb3e --- /dev/null +++ b/test_scripts/subscription/test-subscription-helmchart-1.0.3/templates/tests/test-connection.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "adm-ctrl-xapp.fullname" . }}-test-connection" + labels: + app.kubernetes.io/name: {{ include "adm-ctrl-xapp.name" . }} + helm.sh/chart: {{ include "adm-ctrl-xapp.chart" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/managed-by: {{ .Release.Service }} + annotations: + "helm.sh/hook": test-success +spec: + containers: + - name: wget + image: busybox + command: ['wget'] + args: ['{{ include "adm-ctrl-xapp.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never