c8d8001a4f
These were always called in series. No point to maintain the separation. Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: Ic100f380eea90115f0a44a82d1d28d5d216bed68
36 lines
773 B
Bash
Executable File
36 lines
773 B
Bash
Executable File
#!/bin/bash -x
|
|
set -e
|
|
|
|
AODH_TEST_DRIVERS=${AODH_TEST_DRIVERS:-postgresql}
|
|
export GABBI_LIVE_FAIL_IF_NO_TEST=1
|
|
export AODH_SERVICE_TOKEN=foobar # Needed for gabbi
|
|
export AODH_SERVICE_ROLES=admin
|
|
|
|
# unit tests
|
|
|
|
export OS_TEST_PATH=aodh/tests/unit
|
|
stestr run $*
|
|
|
|
# functional tests
|
|
|
|
export OS_TEST_PATH=aodh/tests/functional
|
|
for indexer in ${AODH_TEST_DRIVERS}
|
|
do
|
|
pifpaf -g AODH_TEST_STORAGE_URL run $indexer -- stestr run $*
|
|
done
|
|
|
|
# live functional tests
|
|
|
|
cleanup(){
|
|
type -t database_stop >/dev/null && database_stop || true
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
export OS_TEST_PATH=aodh/tests/functional_live
|
|
for indexer in ${AODH_TEST_DRIVERS}
|
|
do
|
|
eval $(pifpaf -e DATABASE run $indexer)
|
|
pifpaf -e AODH run aodh --database-url $DATABASE_URL -- stestr run $*
|
|
cleanup
|
|
done
|