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 26, 2023
1 parent 9bcb5f9 commit 0795a7c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ 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_DIR ?= ${OPERATOR_BASE_DIR}/telemetry-operator/tests/kuttl/suites
TELEMETRY_KUTTL_NAMESPACE ?= telemetry-kuttl-tests

# BMO
BMO_REPO ?= https://github.com/metal3-io/baremetal-operator
Expand Down Expand Up @@ -2026,6 +2029,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} ${TELEMETRY_KUTTL_DIR} --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: input deploy_cleanup 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 0795a7c

Please sign in to comment.