forked from vertica/vertica-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kuttl-test.yaml
57 lines (50 loc) · 2.22 KB
/
kuttl-test.yaml
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
# (c) Copyright [2021-2023] Open Text.
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: kuttl.dev/v1beta1
kind: TestSuite
# Each testcase will delete its own namespace if it is successful. This
# allows us to collect scrutinize for all of the failed tests.
skipDelete: true
# These are overridden when running kuttl from the Makefile
testDirs:
- tests/e2e-leg-1
- tests/e2e-leg-2
- tests/e2e-leg-3
- tests/e2e-leg-4
- tests/e2e-udx
- tests/e2e-server-upgrade
- tests/e2e-operator-upgrade-overlays
- tests/e2e-http-server
- tests/e2e-enterprise
- tests/e2e-vcluster
parallel: 2
timeout: 600
commands:
# Create the kustomize overlay files to override the image, endpoint, etc.
- command: scripts/setup-kustomize.sh
# make dependencies
- command: make config-transformer vdb-gen install-cert-manager
- command: kubectl stern --version
# Ensure the log output directory exists
- command: mkdir -p int-tests-output
# We use stern to collect the pod output of any test that creates a pod with
# the 'stern=include' label. By default, the output of this is stored in a
# file in int-tests-output/
- script: exec kubectl stern --selector stern=include --all-namespaces --timestamps --container-state terminated > int-tests-output/ancillary.log
background: true
# We have another stern to collect the output for all of the operators.
- script: exec kubectl stern --selector app.kubernetes.io/name=verticadb-operator --all-namespaces > int-tests-output/verticadb-operator.log
background: true
# And another stern to collect the output from any vertica pods.
- script: exec kubectl stern --selector app.kubernetes.io/name=vertica --all-namespaces --timestamps > int-tests-output/vertica.log
background: true