-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy path11-local-testrun.yaml
More file actions
48 lines (41 loc) · 1.27 KB
/
11-local-testrun.yaml
File metadata and controls
48 lines (41 loc) · 1.27 KB
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
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
# TestRun CRDs will be created by Test-Machinery controllers, by CI/CD jobs or manually to run e.g. single tests.
apiVersion: testmachinery.sapcloud.io/v1beta1
kind: Testrun
metadata:
generateName: integration-
namespace: default
spec:
creator: pipeline-xyz # for diagnostic purposes, could contain the CI/CD job url as well
# defines where to look for TestDefs
locationSets:
- name: local-locations
# optional; defines the default location set which is used if no specific location is defined for a step.
default: true
locations:
- type: local
hostPath: /tmp/tm # local disk path musst be mounted to minikube volume at "/tmp/tm"
kubeconfigs:
gardener: #base64 heredoc kubeconfig
seed:
shoot:
# Global config available to every test task in all phases (testFlow and onExit)
config:
- name: SHOOTNAME
value: "integration-abc12"
type: env
# the execution flow:
testflow:
- name: demo-step
definition:
name: demo
- name: label-step
dependsOn: [ demo-step ]
definition:
label: default
onExit:
- name: exit
definition:
name: exit-handler