Skip to content

Commit

Permalink
Merge pull request #213 from openstack-k8s-operators/prow-kuttl
Browse files Browse the repository at this point in the history
Make kuttl suite compatible with install_yamls
  • Loading branch information
openshift-ci[bot] authored Oct 26, 2023
2 parents 73ae78d + ec09393 commit 4d8f151
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,9 @@ KUTTL_SUITE_DIR ?= tests/kuttl/suites/$(KUTTL_SUITE)
kuttl-test-prep:
oc apply -k $(KUTTL_SUITE_DIR)/deps/ --timeout=120s
oc wait -n $(KUTTL_NAMESPACE) openstackcontrolplane openstack --for condition=Ready --timeout=300s
oc apply -f $(KUTTL_SUITE_DIR)/deps/rhobs.yaml
$(until oc api-resources -n $(KUTTL_NAMESPACE) | grep -q rhobs; do sleep 2; done)

.PHONY: kuttl-test-run
kuttl-test-run: export NAMESPACE = $(KUTTL_NAMESPACE)
kuttl-test-run:
oc kuttl test --v 1 --start-kind=false --config $(KUTTL_SUITE_DIR)/config.yaml

Expand Down
23 changes: 23 additions & 0 deletions kuttl-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# EXECUTION (from install_yamls repo root):
#
# make telemetry_kuttl
#
# 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.10+ CRC cluster with Podified Operators has been deployed
# 3. CLI user has access to $KUBECONFIG

apiVersion: kuttl.dev/v1alpha1
kind: TestSuite
reportFormat: JSON
reportName: kuttl-test-telemetry
namespace: telemetry-kuttl-tests
timeout: 180
parallel: 1
suppress:
- events # Remove spammy event logs
6 changes: 6 additions & 0 deletions tests/kuttl/suites/autoscaling/tests/00-deps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- script: |
oc apply -f ../deps/rhobs.yaml
until oc api-resources | grep -q rhobs; do sleep 1; done

0 comments on commit 4d8f151

Please sign in to comment.