]> git.ipfire.org Git - thirdparty/kea.git/commit
[4239] Added drop scripts for both MySQL and Postgresql
authorThomas Markwalder <tmark@isc.org>
Mon, 11 Apr 2016 19:16:58 +0000 (15:16 -0400)
committerThomas Markwalder <tmark@isc.org>
Mon, 11 Apr 2016 19:16:58 +0000 (15:16 -0400)
commit5b978dabe14432341999fcb0c48a9f2e3f88ed15
tree789a22d6673c28ba4a8a6ea74364500d419e05b9
parentb45da89536223294e3b1b2e9cf0d71a0b73e75bb
[4239] Added drop scripts for both MySQL and Postgresql

Rather than use hard-coded lists or query logic for dropping the
database all MySQL and Posgresql tests use new drop scripts
added to src/bind/admin/scripts.

src/bin/admin/scripts/mysql/dhcpdb_drop.mysql
    - New SQL script to drop a MySQL database

src/bin/admin/scripts/pgsql/dhcpdb_drop.pgsql
    - New SQL script to drop a Postgresql database

src/bin/admin/tests/mysql_tests.sh.in
    - mysql_wipe() - modified to use new drop script

src/bin/admin/tests/pgsql_tests.sh.in
    - pgsql_wipe() modified to use new drop script

src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    - TEST(MySqlOpenTest, OpenDatabase) - added show_err=true
    to destroyMySQLSchema() calls

src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
    - TEST(PgSqlOpenTest, OpenDatabase) - added show_err=true
    to destroyMySQLSchema() calls

src/lib/dhcpsrv/testutils/mysql_schema.cc
    - destroyMySQLSchema(bool show_err) - modified to use the new
    drop script and accept show_err parameter

src/lib/dhcpsrv/testutils/pgsql_schema.cc
    - destroyPgSQLSchema(bool show_err) - modified to use the new
    drop script and accept show_err parameter
src/bin/admin/scripts/mysql/dhcpdb_drop.mysql [new file with mode: 0755]
src/bin/admin/scripts/pgsql/dhcpdb_drop.pgsql [new file with mode: 0644]
src/bin/admin/tests/mysql_tests.sh.in
src/bin/admin/tests/pgsql_tests.sh.in
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
src/lib/dhcpsrv/testutils/mysql_schema.cc
src/lib/dhcpsrv/testutils/mysql_schema.h
src/lib/dhcpsrv/testutils/pgsql_schema.cc
src/lib/dhcpsrv/testutils/pgsql_schema.h