From 27ba352d5f63664ff72eb5ed5ccb5ec56a84820a Mon Sep 17 00:00:00 2001
From: Gabriel Cuba <gcuba@whitestack.com>
Date: Mon, 27 Nov 2023 11:50:52 -0500
Subject: [PATCH] Add new package "two_openldap" for OCI helm registry tests

---
 two_helm_oci_knf/two_helm_oci_vnfd.yaml | 20 ++++++++++++++++++++
 two_helm_oci_ns/params/params.yaml      | 24 ++++++++++++++++++++++++
 two_helm_oci_ns/two_helm_oci_nsd.yaml   | 22 ++++++++++++++++++++++
 3 files changed, 66 insertions(+)
 create mode 100644 two_helm_oci_knf/two_helm_oci_vnfd.yaml
 create mode 100644 two_helm_oci_ns/params/params.yaml
 create mode 100644 two_helm_oci_ns/two_helm_oci_nsd.yaml

diff --git a/two_helm_oci_knf/two_helm_oci_vnfd.yaml b/two_helm_oci_knf/two_helm_oci_vnfd.yaml
new file mode 100644
index 00000000..358affcd
--- /dev/null
+++ b/two_helm_oci_knf/two_helm_oci_vnfd.yaml
@@ -0,0 +1,20 @@
+vnfd:
+  description: KNF with two KDU using a helm-chart for openldap version 1.2.3
+  df:
+  - id: default-df
+  ext-cpd:
+  - id: mgmt-ext
+    k8s-cluster-net: mgmtnet
+  id: two_helm_oci_knf
+  k8s-cluster:
+    nets:
+    - id: mgmtnet
+  kdu:
+  - name: haproxy
+    helm-chart: oci://registry-1.docker.io/bitnamicharts/haproxy
+  - name: ldap
+    helm-chart: osm-gitlab/openldap:1.2.7
+  mgmt-cp: mgmt-ext
+  product-name: two_helm_oci_knf
+  provider: Telefonica
+  version: 1.0
diff --git a/two_helm_oci_ns/params/params.yaml b/two_helm_oci_ns/params/params.yaml
new file mode 100644
index 00000000..b859777d
--- /dev/null
+++ b/two_helm_oci_ns/params/params.yaml
@@ -0,0 +1,24 @@
+vld:
+- name: mgmtnet
+  vim-network-name: internal
+additionalParamsForVnf:
+- member-vnf-index: two_helm_oci
+  additionalParamsForKdu:
+  - kdu_name: ldap
+    additionalParams:
+      # replicaCount: 2  
+      # service.loadBalancerIP: '172.21.251.X' # MetalLB IP Address
+      # service.type: NodePort
+      service:
+        type: NodePort
+        # loadBalancerIP: '172.21.251.X' # MetalLB IP Address
+      adminPassword: osm4u
+      configPassword: osm4u
+      env:
+        LDAP_ORGANISATION: "Example Inc."
+        LDAP_DOMAIN: "example.org"
+        LDAP_BACKEND: "hdb"
+        LDAP_TLS: "true"
+        LDAP_TLS_ENFORCE: "false"
+        LDAP_REMOVE_CONFIG_AFTER_SETUP: "true"
+
diff --git a/two_helm_oci_ns/two_helm_oci_nsd.yaml b/two_helm_oci_ns/two_helm_oci_nsd.yaml
new file mode 100644
index 00000000..aa28dfdc
--- /dev/null
+++ b/two_helm_oci_ns/two_helm_oci_nsd.yaml
@@ -0,0 +1,22 @@
+nsd:
+  nsd:
+  - description: NS consisting of a single KNF openldap_knf connected to mgmt network
+    designer: OSM
+    df:
+    - id: default-df
+      vnf-profile:
+      - id: two_helm_oci
+        virtual-link-connectivity:
+        - constituent-cpd-id:
+          - constituent-base-element-id: two_helm_oci
+            constituent-cpd-id: mgmt-ext
+          virtual-link-profile-id: mgmtnet
+        vnfd-id: two_helm_oci_knf
+    id: two_helm_oci_ns
+    name: two_helm_oci_ns
+    version: 1.0
+    virtual-link-desc:
+    - id: mgmtnet
+      mgmt-network: true
+    vnfd-id:
+    - two_helm_oci_knf
-- 
GitLab