adding bbsim helm chart test
Change-Id: I165b03b114a0f6974645fd19586124d998d5dcb3
diff --git a/bbsim/Chart.yaml b/bbsim/Chart.yaml
index d0fe55f..23bd7ac 100644
--- a/bbsim/Chart.yaml
+++ b/bbsim/Chart.yaml
@@ -16,5 +16,5 @@
description: Broadband Simulator
icon: https://guide.opencord.org/logos/cord.svg
-version: 1.0.0
+version: 1.0.1
appVersion: 1.0.0
diff --git a/bbsim/templates/tests/test-bbsim.yaml b/bbsim/templates/tests/test-bbsim.yaml
new file mode 100644
index 0000000..9024bf3
--- /dev/null
+++ b/bbsim/templates/tests/test-bbsim.yaml
@@ -0,0 +1,41 @@
+---
+# Copyright 2017-present Open Networking Foundation
+#
+# 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.
+
+apiVersion: v1
+kind: Pod
+metadata:
+ name: "{{ .Release.Name }}-api-test"
+ annotations:
+ "helm.sh/hook": test-success
+spec:
+ restartPolicy: Never
+ containers:
+ - name: {{ .Release.Name }}-api-test
+ image: {{ .Values.images.xos_api_tester.repository }}:{{ .Values.images.xos_api_tester.tag }}
+ imagePullPolicy: {{ .Values.images.xos_api_tester.pullPolicy }}
+ volumeMounts:
+ - name: log-volume
+ mountPath: /src/cord-api/Tests/Log/
+ env:
+ - name: SERVER_IP
+ value: 'xos-chameleon'
+ - name: SERVER_PORT
+ value: '9101'
+ command: ["robot", "-d", "Log", "-T", "-v", "{{ .Values.onus_per_pon_port }}", "WorkflowValidations/BBSIM.robot"]
+ volumes:
+ - name: log-volume
+ hostPath:
+ path: /tmp/helm_test_bbsim_logs_{{ dateInZone "20060102T030405.00Z" (now) "UTC" }}
+ type: DirectoryOrCreate
\ No newline at end of file
diff --git a/bbsim/values.yaml b/bbsim/values.yaml
index 7cd295b..26c50c2 100644
--- a/bbsim/values.yaml
+++ b/bbsim/values.yaml
@@ -45,6 +45,10 @@
repository: 'voltha/voltha-bbsim'
tag: '{{ .Chart.AppVersion }}'
pullPolicy: 'Always'
+ xos_api_tester:
+ repository: 'xosproject/xos-api-tester'
+ tag: 'master'
+ pullPolicy: 'Always'
global:
registry: ''
@@ -63,4 +67,4 @@
tolerations: []
-affinity: {}
+affinity: {}
\ No newline at end of file