Skip to content

Commit

Permalink
Add dependencies and rename kuttl_keystone target
Browse files Browse the repository at this point in the history
Add openstack_crd and mariadb as dependencies for the kuttl_keystone
target. The target is now called keystone_kuttle for consistency with
other targets naming. This commit also introduces a section for KUTTL
tests in the makefile and adds documentation for the kuttl_keystone
target.
  • Loading branch information
cescgina committed Jan 9, 2023
1 parent 457f8cf commit 84bed0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,8 @@ nova_deploy_cleanup: ## cleans up the service instance, Does not affect the oper
rm -Rf ${OPERATOR_BASE_DIR}/nova-operator ${DEPLOY_DIR}
oc rsh mariadb-openstack mysql -u root --password=${PASSWORD} -ss -e "show databases like 'nova_%';" | xargs -I '{}' oc rsh mariadb-openstack mysql -u root --password=${PASSWORD} -ss -e "drop database {};"

.PHONY: kuttl_keystone
kuttl_keystone: namespace input deploy_cleanup keystone_deploy_prep keystone
##@ KUTTL tests

.PHONY: keystone_kuttl
keystone_kuttl: namespace input openstack_crds deploy_cleanup keystone_deploy_prep mariadb keystone ## runs kuttl tests for the keystone operator. Installs openstack crds and keystone operators and cleans up previous deployments before running the tests.
INSTALL_YAMLS=${INSTALL_YAMLS} kubectl-kuttl test --config ${KEYSTONE_KUTTL_CONF} ${KEYSTONE_KUTTL_DIR}

0 comments on commit 84bed0a

Please sign in to comment.