blob: 1162de0557e6c7c74b2000bc17e211cbe58a67c8 [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:
Zack Williams4b99d762018-05-08 14:52:21 -070025 restartPolicy: Never
Andy Baviera02cd962018-04-09 17:07:22 -070026 containers:
Zack Williams3432b942018-04-24 17:46:41 -070027 - name: {{ .Release.Name }}-api-test
Zack Williamsd9d6b352018-10-05 07:53:30 -070028 image: {{ .Values.global.registry }}{{ .Values.images.xos_api_tester.repository }}:{{ tpl .Values.images.xos_api_tester.tag . }}
29 imagePullPolicy: {{ .Values.images.xos_api_tester.pullPolicy }}
Zack Williams4b99d762018-05-08 14:52:21 -070030 volumeMounts:
31 - name: log-volume
32 mountPath: /src/cord-api/Tests/Log/
Zack Williams3432b942018-04-24 17:46:41 -070033 env:
34 - name: SERVER_IP
35 value: 'xos-chameleon'
36 - name: SERVER_PORT
37 value: '9101'
Zack Williamsacea1082018-07-06 13:09:06 -070038 - name: SITE_NAME
39 value: {{ .Values.cordSiteName | quote }}
Zack Williams3432b942018-04-24 17:46:41 -070040 - name: XOS_USER
41 value: {{ .Values.xosAdminUser | quote }}
42 - name: XOS_PASSWD
Zack Williamsacea1082018-07-06 13:09:06 -070043 valueFrom:
44 secretKeyRef:
45 name: xos-admin-passwd-secret
46 key: password
Zack Williams3432b942018-04-24 17:46:41 -070047 command: ["pybot", "-L", "TRACE", "-d", "Log", "-T", "Ch_DeploymentTest.txt", "Ch_SiteTest.txt", "Ch_UsersTest.txt", "Ch_SliceTest.txt", "Ch_ServiceTest.txt"]
Zack Williams4b99d762018-05-08 14:52:21 -070048 volumes:
49 - name: log-volume
50 hostPath:
51 path: /tmp/helm_test_xos_core_logs_{{ dateInZone "20060102T030405.00Z" (now) "UTC" }}
52 type: DirectoryOrCreate