blob: 6312a166dacaf5458c911cb537b09eadb95c8925 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
---
tests:
- core
healthcheck_secret:
apiVersion: v1
kind: Secret
metadata:
name: s3-keys
namespace: "{{ onap_namespace }}"
data:
access-key: "{{ s3_access_key | string | b64encode }}"
secret-key: "{{ s3_secret_key | string | b64encode }}"
healthcheck_deployment:
apiVersion: batch/v1
kind: Job
metadata:
name: "integration-onap-{{ run_type }}"
namespace: "{{ onap_namespace }}"
spec:
backoffLimit: 0
template:
metadata:
annotations:
sidecar.istio.io/inject: "false"
spec:
restartPolicy: Never
containers:
- name: "functest-onap-{{ run_type }}"
image: "{{ testing_container }}:{{ testing_container_tag }}"
imagePullPolicy: Always
env: "{{ healthcheck_deployment_env }}"
volumeMounts:
- name: localtime
mountPath: /etc/localtime
readOnly: true
- name: robot-eteshare
mountPath: /share/config
- name: robot-save-results
mountPath: /var/lib/xtesting/results/
command:
- run_tests
args: "{{ args }}"
volumes: "{{ job_volumes }}"
healthcheck_deployment_env_legacy:
- name: INSTALLER_TYPE
value: "{{ deployment_name }}"
- name: DEPLOY_SCENARIO
value: "{{ deploy_scenario }}"
- name: NODE_NAME
value: "{{ node_name }}"
- name: TEST_DB_URL
value: "{{ test_result_url }}"
- name: BUILD_TAG
value: "{{ build_tag }}"
- name: TAG
value: "{{ run_type }}"
healthcheck_deployment_env_s3:
- name: INSTALLER_TYPE
value: "{{ deployment_name }}"
- name: DEPLOY_SCENARIO
value: "{{ deploy_scenario }}"
- name: NODE_NAME
value: "{{ node_name }}"
- name: TEST_DB_URL
value: "{{ test_result_url }}"
- name: BUILD_TAG
value: "{{ build_tag }}"
- name: TAG
value: "{{ run_type }}"
- name: S3_ENDPOINT_URL
value: "{{ s3_internal_url }}"
- name: S3_DST_URL
value: "{{ s3_dst }}"
- name: HTTP_DST_URL
value: "{{ s3_http_url_endpoint }}"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: access-key
name: s3-keys
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: secret-key
name: s3-keys
healthcheck_deployment_env: "{{ use_s3 | bool |
ternary(healthcheck_deployment_env_s3, healthcheck_deployment_env_legacy) }}"
args_legacy:
- --test
- "{{ run_type }}"
- --report
args_s3:
- --test
- "{{ run_type }}"
- --push
- --report
args: "{{ use_s3 | bool | ternary(args_s3, args_legacy) }}"
volumes_legacy:
- name: localtime
hostPath:
path: /etc/localtime
- name: robot-eteshare
configMap:
name: "{{ onap_namespace }}-{{ robot_configmap }}"
defaultMode: 0755
- name: robot-save-results
hostPath:
path: "{{ res_local_path }}/{{ run_tiers }}/{{ run_type }}"
volumes_s3:
- name: localtime
hostPath:
path: /etc/localtime
- name: robot-eteshare
configMap:
name: "{{ onap_namespace }}-{{ robot_configmap }}"
defaultMode: 0755
- name: robot-save-results
emptyDir: {}
job_volumes: "{{ use_s3 | bool | ternary(volumes_s3, volumes_legacy) }}"
|