storyboard/tools/destroy_test_backend.sh
Adam Coldrick 903444fbdf Set correct default credentials in the test_backend.sh scripts
The CI expects user/pass to be openstack_citest/openstack_citest,
but it currently defaults to storyboard/storyboard in the
{install,destroy}_test_backend.sh scripts.

Change-Id: Icbf912dd304286638f31ae99a29c99905a423e90
2015-08-18 12:01:31 +00:00

13 lines
419 B
Bash
Executable File

#!/bin/bash
# This script cleans up the testing database and stops storyboard API
echo 'Killing storyboard-api...'
killall storyboard-api
# export default vars if not defined, to be available in conf file
export DB_USER=${DB_USER:-openstack_citest}
export DB_PASSWORD=${DB_PASSWORD:-openstack_citest}
export DB_TEST=${DB_TEST:-storyboard_test}
mysql -u $DB_USER -p$DB_PASSWORD -e "DROP DATABASE IF EXISTS $DB_TEST;"