-
Notifications
You must be signed in to change notification settings - Fork 27
/
kuttl-test.yaml
42 lines (41 loc) · 1.83 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
#
# EXECUTION (from repo root):
#
# kubectl-kuttl test
#
# Note: To run a single test use:
# kubectl-kuttl test ./tests/kuttl/tests/ --test openstackcontrolplane_scale
#
# ASSUMPTIONS:
#
# 1. Latest version of kuttl is installed at /usr/local/bin/kubectl-kuttl
# - wget https://github.com/kudobuilder/kuttl/releases/download/v0.11.1/kubectl-kuttl_0.11.1_linux_x86_64
# - mv kubectl-kuttl_0.11.1_linux_x86_64 /usr/local/bin/kubectl-kuttl
# - chmod 755 /usr/local/bin/kubectl-kuttl
# 2. An OCP 4.6+ cluster with OSP Director Operator has been deployed via https://github.com/openstack-k8s-operators/osp-director-dev-tools
# 3. CLI user has access to $KUBECONFIG
# 4. There are preferrably NO existing OSP Director Operator CRs deployed
# - dev-tools probably installed them, so remove via:
# oc delete openstackbaremetalset --all
# oc delete openstackprovisionserver --all
# oc delete openstackcontrolplane --all
# oc delete openstackvmset --all
# oc delete openstacknet --all
# - Existing OSP Director Operator CRs might cause the tests to either fail or succeed when the opposite should have happened
# - The ONE exception is the DataVolume for the base image. This MUST be pre-existing, otherwise
# the tests will take way too long and fail the timeout
#
# NOTE: It is recommended to run "oc delete events --all -n openstack" before executing each test.
# Failure to do so will cause events that occurred outside of (before) the test to appear in the logs.
#
apiVersion: kuttl.dev/v1beta1
kind: TestSuite
testDirs: # The actual kuttl tests
- ./tests/kuttl/tests
crdDir: ./config/crd/bases # CRDs needed for our operator
manifestDirs: [] # YAMLs to apply before each test
reportFormat: JSON
reportName: kuttl-test
namespace: openstack
timeout: 180
parallel: 1