blob: 86ed0a0f25a9b3cd348d8600486a0b70965c3872 [file] [log] [blame]
Zack Williams3432b942018-04-24 17:46:41 -07001---
Andy Baviera02cd962018-04-09 17:07:22 -07002# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16apiVersion: v1
17kind: Pod
18metadata:
19 name: "{{ .Release.Name }}-api-test"
Zack Williams3432b942018-04-24 17:46:41 -070020 labels:
21 {{- include "xos-core.release_labels" . | indent 4 }}
Andy Baviera02cd962018-04-09 17:07:22 -070022 annotations:
23 "helm.sh/hook": test-success
24spec:
25 containers:
Zack Williams3432b942018-04-24 17:46:41 -070026 - name: {{ .Release.Name }}-api-test
27 image: {{ .Values.xos_api_testerImage }}
28 imagePullPolicy: {{ .Values.imagePullPolicy }}
29 env:
30 - name: SERVER_IP
31 value: 'xos-chameleon'
32 - name: SERVER_PORT
33 value: '9101'
34 - name: XOS_USER
35 value: {{ .Values.xosAdminUser | quote }}
36 - name: XOS_PASSWD
37 value: {{ .Values.xosAdminPassword | quote}}
38 - name: SITE_NAME
39 value: {{ .Values.cordSiteName | quote }}
40 command: ["pybot", "-L", "TRACE", "-d", "Log", "-T", "Ch_DeploymentTest.txt", "Ch_SiteTest.txt", "Ch_UsersTest.txt", "Ch_SliceTest.txt", "Ch_ServiceTest.txt"]
Andy Baviera02cd962018-04-09 17:07:22 -070041 restartPolicy: Never