Skip to content

Commit

Permalink
Add KUTTL make targets for telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
paramite committed Oct 31, 2023
1 parent 9bcb5f9 commit 509b5f5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ TELEMETRY_CR ?= ${OPERATOR_BASE_DIR}/telemetry-operator/${TE
CEILOMETER_CENTRAL_DEPL_IMG ?= unused
CEILOMETER_NOTIFICATION_DEPL_IMG ?= unused
SG_CORE_DEPL_IMG ?= unused
TELEMETRY_KUTTL_CONF ?= ${OPERATOR_BASE_DIR}/telemetry-operator/kuttl-test.yaml
TELEMETRY_KUTTL_NAMESPACE ?= telemetry-kuttl-tests

# BMO
BMO_REPO ?= https://github.com/metal3-io/baremetal-operator
Expand Down Expand Up @@ -2026,6 +2028,19 @@ telemetry_deploy_cleanup: ## cleans up the service instance, Does not affect the
${CLEANUP_DIR_CMD} ${OPERATOR_BASE_DIR}/ceilometer-operator ${DEPLOY_DIR}
oc rsh -t $(DBSERVICE_CONTAINER) mysql -u root --password=${PASSWORD} -e "flush tables; drop database if exists aodh;" || true

.PHONY: telemetry_kuttl_run
telemetry_kuttl_run: ## runs kuttl tests for the telemetry operator, assumes that everything needed for running the test was deployed beforehand.
kubectl-kuttl test --config ${TELEMETRY_KUTTL_CONF} --namespace ${NAMESPACE}

.PHONY: telemetry_kuttl
telemetry_kuttl: export NAMESPACE = ${TELEMETRY_KUTTL_NAMESPACE}
# Set the value of $TELEMETRY_KUTTL_NAMESPACE if you want to run the telemetry
# kuttl tests in a namespace different than the default (telemetry-kuttl-tests)
telemetry_kuttl: kuttl_common_prep heat telemetry telemetry_deploy_prep
make wait
make telemetry_kuttl_run
make deploy_cleanup
make telemetry_cleanup

##@ SWIFT
.PHONY: swift_prep
Expand Down

0 comments on commit 509b5f5

Please sign in to comment.