1 # Copyright © 2021-2022 AT&T Intellectual Property
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 name: {{ .Values.oranTests.name }}
20 tests-name: {{ .Values.oranTests.name }}
21 release: {{ .Release.Name }}
22 chart: {{ .Chart.Name }}
27 tests-name: {{ .Values.oranTests.name }}
31 tests-name: {{ .Values.oranTests.name }}
32 release: {{ .Release.Name }}
33 chart: {{ .Chart.Name }}
35 checksum/config: {{ print .Values | sha256sum }}
37 hostname: "{{ .Values.oranTests.name }}"
40 - name: {{ .Chart.Name }}
41 image: "{{ .Values.image.repository }}/{{ .Values.image.name}}:{{ .Values.image.tag }}"
42 imagePullPolicy: {{ .Values.image.pullPolicy }}
47 name: {{ .Values.oranTests.name }}-configmapenv
53 command: ["/bin/sh", "-c"]
56 DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata;
57 apt-get install git wget sudo -y;
58 wget https://dl.k8s.io/release/v1.22.0/bin/linux/amd64/kubectl;
60 chmod a+x /usr/bin/kubectl;
64 git clone --recursive "https://github.com/sebdet/oran-deployment.git";
65 cd /opt/oran-deployment;
66 git reset --hard {{ .Values.oranTests.commitId }};
67 /opt/oran-deployment/scripts/layer-0/0-setup-tests-env.sh;
68 /opt/oran-deployment/scripts/layer-0/0-setup-charts-museum.sh;
69 /opt/oran-deployment/scripts/layer-0/0-setup-helm3.sh;
70 /opt/oran-deployment/scripts/sub-scripts/build-tests.sh;