Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 1 | --- |
Andy Bavier | a02cd96 | 2018-04-09 17:07:22 -0700 | [diff] [blame] | 2 | # 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 | |
| 16 | apiVersion: v1 |
| 17 | kind: Pod |
| 18 | metadata: |
| 19 | name: "{{ .Release.Name }}-api-test" |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 20 | labels: |
| 21 | {{- include "xos-core.release_labels" . | indent 4 }} |
Andy Bavier | a02cd96 | 2018-04-09 17:07:22 -0700 | [diff] [blame] | 22 | annotations: |
| 23 | "helm.sh/hook": test-success |
| 24 | spec: |
Zack Williams | 4b99d76 | 2018-05-08 14:52:21 -0700 | [diff] [blame] | 25 | restartPolicy: Never |
Andy Bavier | a02cd96 | 2018-04-09 17:07:22 -0700 | [diff] [blame] | 26 | containers: |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 27 | - name: {{ .Release.Name }}-api-test |
| 28 | image: {{ .Values.xos_api_testerImage }} |
| 29 | imagePullPolicy: {{ .Values.imagePullPolicy }} |
Zack Williams | 4b99d76 | 2018-05-08 14:52:21 -0700 | [diff] [blame] | 30 | volumeMounts: |
| 31 | - name: log-volume |
| 32 | mountPath: /src/cord-api/Tests/Log/ |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 33 | env: |
| 34 | - name: SERVER_IP |
| 35 | value: 'xos-chameleon' |
| 36 | - name: SERVER_PORT |
| 37 | value: '9101' |
Zack Williams | acea108 | 2018-07-06 13:09:06 -0700 | [diff] [blame] | 38 | - name: SITE_NAME |
| 39 | value: {{ .Values.cordSiteName | quote }} |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 40 | - name: XOS_USER |
| 41 | value: {{ .Values.xosAdminUser | quote }} |
| 42 | - name: XOS_PASSWD |
Zack Williams | acea108 | 2018-07-06 13:09:06 -0700 | [diff] [blame] | 43 | valueFrom: |
| 44 | secretKeyRef: |
| 45 | name: xos-admin-passwd-secret |
| 46 | key: password |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 47 | command: ["pybot", "-L", "TRACE", "-d", "Log", "-T", "Ch_DeploymentTest.txt", "Ch_SiteTest.txt", "Ch_UsersTest.txt", "Ch_SliceTest.txt", "Ch_ServiceTest.txt"] |
Zack Williams | 4b99d76 | 2018-05-08 14:52:21 -0700 | [diff] [blame] | 48 | volumes: |
| 49 | - name: log-volume |
| 50 | hostPath: |
| 51 | path: /tmp/helm_test_xos_core_logs_{{ dateInZone "20060102T030405.00Z" (now) "UTC" }} |
| 52 | type: DirectoryOrCreate |