storyboard/tools/destroy_test_backend.sh
Yolanda Robla 0b65cb4b02 Add tools to run integration tests
According to spec in https://review.openstack.org/150743,
integration tests will be launched from the backend.
Add new install_test_backend.sh and destroy_test_backend.sh
scripts that will be called from each integration tests.
The workflow will be:

- install_test_backend
- run integration test
- destroy_test_backend

Change-Id: Ie676d3152cc4cd854ab6644e5fd281de9c2d70fd
2015-03-30 10:38:38 +02:00

13 lines
407 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:-storyboard}
export DB_PASSWORD=${DB_PASSWORD:-storyboard}
export DB_TEST=${DB_TEST:-storyboard_test}
mysql -u $DB_USER -p$DB_PASSWORD -e "DROP DATABASE IF EXISTS $DB_TEST;"