Kailash Khalasi | 6405514 | 2018-08-17 12:14:12 -0700 | [diff] [blame] | 1 | --- |
| 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" |
| 20 | annotations: |
| 21 | "helm.sh/hook": test-success |
| 22 | spec: |
| 23 | restartPolicy: Never |
| 24 | containers: |
| 25 | - name: {{ .Release.Name }}-api-test |
Zack Williams | d9d6b35 | 2018-10-05 07:53:30 -0700 | [diff] [blame] | 26 | image: {{ .Values.global.registry }}{{ .Values.images.xos_api_tester.repository }}:{{ tpl .Values.images.xos_api_tester.tag . }} |
| 27 | imagePullPolicy: {{ .Values.images.xos_api_tester.pullPolicy }} |
Kailash Khalasi | 6405514 | 2018-08-17 12:14:12 -0700 | [diff] [blame] | 28 | volumeMounts: |
| 29 | - name: log-volume |
| 30 | mountPath: /src/cord-api/Tests/Log/ |
| 31 | env: |
| 32 | - name: SERVER_IP |
| 33 | value: 'xos-chameleon' |
| 34 | - name: SERVER_PORT |
| 35 | value: '9101' |
| 36 | - name: XOS_USER |
| 37 | value: {{ .Values.xosAdminUser | quote }} |
| 38 | - name: XOS_PASSWD |
| 39 | value: {{ .Values.xosAdminPassword | quote}} |
Kailash Khalasi | ad64ec3 | 2018-08-20 12:59:39 -0700 | [diff] [blame] | 40 | command: ["pybot", "-L", "TRACE", "-d", "Log", "-T", "WorkflowValidations/ATT_Workflow.robot"] |
Kailash Khalasi | 6405514 | 2018-08-17 12:14:12 -0700 | [diff] [blame] | 41 | volumes: |
| 42 | - name: log-volume |
| 43 | hostPath: |
| 44 | path: /tmp/helm_test_attworkflow_logs_{{ dateInZone "20060102T030405.00Z" (now) "UTC" }} |
| 45 | type: DirectoryOrCreate |