forked from tektoncd/triggers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
e2e-tests-yaml.sh
executable file
·42 lines (34 loc) · 1.21 KB
/
e2e-tests-yaml.sh
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
source $(dirname $0)/e2e-common.sh
set -x
set -o errexit
set -o pipefail
for op in apply delete;do
# Apply TriggerTemplates
for file in $(find ${REPO_ROOT_DIR}/examples/triggertemplates/ -name *.yaml | sort); do
kubectl ${op} -f ${file}
done
# Apply TriggerBindings
for file in $(find ${REPO_ROOT_DIR}/examples/triggerbindings/ -name *.yaml | sort); do
kubectl ${op} -f ${file}
done
# Apply EventInterceptors
for file in $(find ${REPO_ROOT_DIR}/examples/event-interceptors/ -name *.yaml | sort); do
kubectl ${op} -f ${file}
done
# Apply EventListeners
for file in $(find ${REPO_ROOT_DIR}/examples/eventlisteners/ -name *.yaml | sort); do
kubectl ${op} -f ${file}
done
# Apply ClusterTriggerBindings
for file in $(find ${REPO_ROOT_DIR}/examples/clustertriggerbindings/ -name *.yaml | sort); do
kubectl ${op} -f ${file}
done
done
# Test getting-started examples that use the `getting-started` namespace
kubectl create namespace getting-started
for op in apply delete;do
for file in $(find ${REPO_ROOT_DIR}/docs/getting-started -name *.yaml | sort); do
kubectl ${op} -f ${file}
done
done
kubectl delete namespace getting-started