Integrated gateway and updated kube support
Restructured the test env to decouple the test engine from the components
Issue-ID: NONRTRIC-441
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: I07c746741b1c5c964679545f0a12861e5e9f6292
diff --git a/test/simulator-group/kubeproxy/.gitignore b/test/simulator-group/kubeproxy/.gitignore
new file mode 100644
index 0000000..ab8f024
--- /dev/null
+++ b/test/simulator-group/kubeproxy/.gitignore
@@ -0,0 +1 @@
+.dockererr
diff --git a/test/simulator-group/kubeproxy/app.yaml b/test/simulator-group/kubeproxy/app.yaml
new file mode 100644
index 0000000..08241a3
--- /dev/null
+++ b/test/simulator-group/kubeproxy/app.yaml
@@ -0,0 +1,30 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: $KUBE_PROXY_APP_NAME
+ namespace: $KUBE_SIM_NAMESPACE
+ labels:
+ run: $KUBE_PROXY_APP_NAME
+ autotest: KUBEPROXY
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ run: $KUBE_PROXY_APP_NAME
+ template:
+ metadata:
+ labels:
+ run: $KUBE_PROXY_APP_NAME
+ autotest: KUBEPROXY
+ spec:
+ containers:
+ - name: $KUBE_PROXY_APP_NAME
+ image: $KUBE_PROXY_IMAGE
+ imagePullPolicy: Never
+ ports:
+ - name: http
+ 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/kubeproxy/svc.yaml b/test/simulator-group/kubeproxy/svc.yaml
new file mode 100644
index 0000000..1a11fc4
--- /dev/null
+++ b/test/simulator-group/kubeproxy/svc.yaml
@@ -0,0 +1,22 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: $KUBE_PROXY_APP_NAME
+ namespace: $KUBE_SIM_NAMESPACE
+ labels:
+ run: $KUBE_PROXY_APP_NAME
+ autotest: KUBEPROXY
+spec:
+ type: NodePort
+ ports:
+ - port: $KUBE_PROXY_EXTERNAL_PORT
+ targetPort: $KUBE_PROXY_INTERNAL_PORT
+ protocol: TCP
+ name: http
+ nodePort:
+ - port: $KUBE_PROXY_WEB_EXTERNAL_PORT
+ targetPort: $KUBE_PROXY_WEB_INTERNAL_PORT
+ protocol: TCP
+ name: web
+ selector:
+ run: $KUBE_PROXY_APP_NAME