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: |
| 25 | containers: |
Zack Williams | 3432b94 | 2018-04-24 17:46:41 -0700 | [diff] [blame] | 26 | - 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 Bavier | a02cd96 | 2018-04-09 17:07:22 -0700 | [diff] [blame] | 41 | restartPolicy: Never |