diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-12-10 01:29:49 +0100 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2018-01-28 22:56:21 +0100 |
commit | fb111e6d958fdf56352db66e144134241abbacf8 (patch) | |
tree | f7331a829ef12589f135af1d69f80be05d64099e /tests/travis | |
parent | e177462c901cd29c3e423640a6f538a930c29536 (diff) | |
download | volse-hubzilla-fb111e6d958fdf56352db66e144134241abbacf8.tar.gz volse-hubzilla-fb111e6d958fdf56352db66e144134241abbacf8.tar.bz2 volse-hubzilla-fb111e6d958fdf56352db66e144134241abbacf8.zip |
:white_check_mark: Unit Test for dba_pdo driver class.
Diffstat (limited to 'tests/travis')
-rwxr-xr-x | tests/travis/prepare_mysql.sh | 4 | ||||
-rwxr-xr-x | tests/travis/prepare_pgsql.sh | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/tests/travis/prepare_mysql.sh b/tests/travis/prepare_mysql.sh index 095ad7e25..9fd79c1ab 100755 --- a/tests/travis/prepare_mysql.sh +++ b/tests/travis/prepare_mysql.sh @@ -42,8 +42,8 @@ mysql $PROTO -e "SELECT @@sql_mode;" # Create Hubzilla database mysql $PROTO -u root -e "CREATE DATABASE IF NOT EXISTS hubzilla;"; -mysql $PROTO -u root -e "CREATE USER 'hubzilla'@'localhost' IDENTIFIED BY 'hubzilla';" -mysql $PROTO -u root -e "GRANT ALL ON hubzilla.* TO 'hubzilla'@'localhost';" +mysql $PROTO -u root -e "CREATE USER 'hubzilla'@'%' IDENTIFIED BY 'hubzilla';" +mysql $PROTO -u root -e "GRANT ALL ON hubzilla.* TO 'hubzilla'@'%';" # Import table structure mysql $PROTO -u root hubzilla < ./install/schema_mysql.sql diff --git a/tests/travis/prepare_pgsql.sh b/tests/travis/prepare_pgsql.sh index 63c7388cb..3c38ef60c 100755 --- a/tests/travis/prepare_pgsql.sh +++ b/tests/travis/prepare_pgsql.sh @@ -34,10 +34,15 @@ psql -U postgres -c "SELECT VERSION();" # Create Hubzilla database psql -U postgres -c "DROP DATABASE IF EXISTS hubzilla;" -psql -U postgres -c "CREATE DATABASE hubzilla;" +psql -U postgres -v ON_ERROR_STOP=1 <<-EOSQL + CREATE USER hubzilla WITH PASSWORD 'hubzilla'; + CREATE DATABASE hubzilla; + ALTER DATABASE hubzilla OWNER TO hubzilla; + GRANT ALL PRIVILEGES ON DATABASE hubzilla TO hubzilla; +EOSQL # Import table structure -psql -U postgres -v ON_ERROR_STOP=1 hubzilla < ./install/schema_postgres.sql +psql -U hubzilla -v ON_ERROR_STOP=1 hubzilla < ./install/schema_postgres.sql # Show databases and tables psql -U postgres -l |