Add initial codes
[it/test.git] / test_scripts / subscription / test-subscription-helmchart-1.0.3 / templates / tests / test-connection.yaml
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 (executable)
index 0000000..63ebb3e
--- /dev/null
@@ -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