Updated tests PMS persistency
Replaced kubeproxy with more efficient proxy
Issue-ID: NONRTRIC-486
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: Ib976cc2b2ef4856ba4c2665c90cf6b6525972f14
diff --git a/test/simulator-group/kubeproxy/app.yaml b/test/simulator-group/kubeproxy/app.yaml
index 3e6636b..b9f6115 100644
--- a/test/simulator-group/kubeproxy/app.yaml
+++ b/test/simulator-group/kubeproxy/app.yaml
@@ -26,5 +26,3 @@
containerPort: $KUBE_PROXY_INTERNAL_PORT
- name: web
containerPort: $KUBE_PROXY_WEB_INTERNAL_PORT
- command: ["mitmweb"]
- args: ["--web-host", "0.0.0.0", "--no-web-open-browser", "-p", "$KUBE_PROXY_INTERNAL_PORT", "--set", "ssl_insecure"]
diff --git a/test/simulator-group/pvc-cleaner/pvc-cleaner.yaml b/test/simulator-group/pvc-cleaner/pvc-cleaner.yaml
new file mode 100644
index 0000000..790ee87
--- /dev/null
+++ b/test/simulator-group/pvc-cleaner/pvc-cleaner.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: pvc-cleaner
+ namespace: $PVC_CLEANER_NAMESPACE
+spec:
+ restartPolicy: Never
+ containers:
+ - name: pvc-cleaner
+ image: "ubuntu:20.10"
+ command: ["/bin/sh","-c"]
+ args: ["rm -rf $PVC_CLEANER_RM_PATH/*"]
+ volumeMounts:
+ - mountPath: $PVC_CLEANER_RM_PATH
+ name: pvc-cleaner-m-vol
+ volumes:
+ - name: pvc-cleaner-m-vol
+ persistentVolumeClaim:
+ claimName: $PVC_CLEANER_CLAIMNAME
\ No newline at end of file