Updates of function test for f-release
New test profile for f-release
New test profile for onap jakarta release
Updated applicable testcases for new profiles
Testcase for helm manager
Integration of helm, helm manager and chartmuseum
Updated README files
Issue-ID: NONRTRIC-690
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: Iaf177231bbfb3411595d2665149bc1e773e0f911
diff --git a/test/simulator-group/helmmanager/.gitignore b/test/simulator-group/helmmanager/.gitignore
new file mode 100644
index 0000000..7dc00c5
--- /dev/null
+++ b/test/simulator-group/helmmanager/.gitignore
@@ -0,0 +1,3 @@
+.tmp.json
+.dockererr
+gen_docker-compose*
\ No newline at end of file
diff --git a/test/simulator-group/helmmanager/app.yaml b/test/simulator-group/helmmanager/app.yaml
new file mode 100644
index 0000000..5c17169
--- /dev/null
+++ b/test/simulator-group/helmmanager/app.yaml
@@ -0,0 +1,36 @@
+# ============LICENSE_START===============================================
+# Copyright (C) 2021 Nordix Foundation. All rights reserved.
+# ========================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=================================================
+#
+
+apiVersion: v1
+kind: Pod
+metadata:
+ name: helmmanagerservice
+ namespace: $KUBE_NONRTRIC_NAMESPACE
+ labels:
+ run: $HELM_MANAGER_APP_NAME
+ autotest: HELMMANAGER
+spec:
+ serviceAccountName: $HELM_MANAGER_SA_NAME
+ containers:
+ - name: $HELM_MANAGER_APP_NAME
+ image: $HELM_MANAGER_IMAGE
+ imagePullPolicy: $KUBE_IMAGE_PULL_POLICY
+ ports:
+ - name: http
+ containerPort: $HELM_MANAGER_INTERNAL_PORT
+ - name: https
+ containerPort: $HELM_MANAGER_INTERNAL_SECURE_PORT
diff --git a/test/simulator-group/helmmanager/docker-compose.yml b/test/simulator-group/helmmanager/docker-compose.yml
new file mode 100644
index 0000000..cc69ed0
--- /dev/null
+++ b/test/simulator-group/helmmanager/docker-compose.yml
@@ -0,0 +1,36 @@
+# ============LICENSE_START===============================================
+# Copyright (C) 2021 Nordix Foundation. All rights reserved.
+# ========================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=================================================
+#
+
+version: '3.0'
+networks:
+ default:
+ external: true
+ name: ${DOCKER_SIM_NWNAME}
+services:
+ chartmuseum:
+ networks:
+ - default
+ container_name: ${HELM_MANAGER_APP_NAME}
+ image: ${HELM_MANAGER_IMAGE}
+ ports:
+ - ${HELM_MANAGER_EXTERNAL_PORT}:${HELM_MANAGER_INTERNAL_PORT}
+ - ${HELM_MANAGER_EXTERNAL_SECURE_PORT}:${HELM_MANAGER_INTERNAL_SECURE_PORT}
+ volumes:
+ - ~/.kube:/root/.kube
+ labels:
+ - "nrttest_app=CHARTMUS"
+ - "nrttest_dp=${HELM_MANAGER_DISPLAY_NAME}"
diff --git a/test/simulator-group/helmmanager/sa.yaml b/test/simulator-group/helmmanager/sa.yaml
new file mode 100644
index 0000000..1769b7c
--- /dev/null
+++ b/test/simulator-group/helmmanager/sa.yaml
@@ -0,0 +1,42 @@
+# ============LICENSE_START===============================================
+# Copyright (C) 2021 Nordix Foundation. All rights reserved.
+# ========================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=================================================
+#
+
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: $HELM_MANAGER_SA_NAME
+ namespace: $KUBE_NONRTRIC_NAMESPACE
+ labels:
+ run: $HELM_MANAGER_APP_NAME
+ autotest: HELMMANAGER
+---
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+ name: ${HELM_MANAGER_SA_NAME}-clusterrolebinding
+ namespace: $KUBE_NONRTRIC_NAMESPACE
+ labels:
+ run: $HELM_MANAGER_APP_NAME
+ autotest: HELMMANAGER
+subjects:
+- kind: ServiceAccount
+ name: $HELM_MANAGER_SA_NAME
+ namespace: $KUBE_NONRTRIC_NAMESPACE
+roleRef:
+ kind: ClusterRole
+ name: $HELM_MANAGER_CLUSTER_ROLE
+ apiGroup: rbac.authorization.k8s.io
\ No newline at end of file
diff --git a/test/simulator-group/helmmanager/svc.yaml b/test/simulator-group/helmmanager/svc.yaml
new file mode 100644
index 0000000..3703697
--- /dev/null
+++ b/test/simulator-group/helmmanager/svc.yaml
@@ -0,0 +1,37 @@
+# ============LICENSE_START===============================================
+# Copyright (C) 2021 Nordix Foundation. All rights reserved.
+# ========================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=================================================
+#
+
+apiVersion: v1
+kind: Service
+metadata:
+ name: helmmanagerservice
+ namespace: $KUBE_NONRTRIC_NAMESPACE
+ labels:
+ run: $HELM_MANAGER_APP_NAME
+ autotest: HELMMANAGER
+spec:
+ ports:
+ - port: $HELM_MANAGER_EXTERNAL_PORT
+ targetPort: $HELM_MANAGER_INTERNAL_PORT
+ protocol: TCP
+ name: http
+ - port: $HELM_MANAGER_EXTERNAL_SECURE_PORT
+ targetPort: $HELM_MANAGER_INTERNAL_SECURE_PORT
+ protocol: TCP
+ name: https
+ selector:
+ run: $HELM_MANAGER_APP_NAME