]> git.ipfire.org Git - thirdparty/kea.git/commit
[#531,!279] PgSQL unit testing now supports data wipe
authorThomas Markwalder <tmark@isc.org>
Wed, 13 Mar 2019 14:36:49 +0000 (10:36 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 13 Mar 2019 14:36:49 +0000 (10:36 -0400)
commit2a310d99e9d57068dbf8b94fba456c1e7fa0ac68
tree80f80114d1798372add093c0dfe24dcf1697d788
parentf7bf83acf8862dc86d3ea76674db6bbb05db8155
[#531,!279] PgSQL unit testing now supports data wipe

src/share/database/scripts/pgsql
    wipe_data.sh.in - new file

doc/devel/unit-tests.dox
    Removed MySQL/CQL only comment

several files:
    Added commentary and removed superflous calls to destroyPgSQLSchema

src/lib/pgsql/testutils/pgsql_schema.*
    destroyPgSQLSchema()
    createPgSQLSchema() - modified to support data wiping
    wipePgSQLData() - new function

src/lib/pgsql/tests
    pgsql_schema.cc
pgsql_schema.h - deleted these. They appear to have
    been added by mistake.
15 files changed:
configure.ac
doc/devel/unit-tests.dox
src/bin/dhcp4/tests/dora_unittest.cc
src/lib/dhcpsrv/benchmarks/pgsql_host_data_source_benchmark.cc
src/lib/dhcpsrv/benchmarks/pgsql_lease_mgr_benchmark.cc
src/lib/dhcpsrv/tests/host_mgr_unittest.cc
src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
src/lib/pgsql/tests/pgsql_schema.cc [deleted file]
src/lib/pgsql/tests/pgsql_schema.h [deleted file]
src/lib/pgsql/testutils/pgsql_schema.cc
src/lib/pgsql/testutils/pgsql_schema.h
src/share/database/scripts/pgsql/.gitignore
src/share/database/scripts/pgsql/Makefile.am
src/share/database/scripts/pgsql/wipe_data.sh.in [new file with mode: 0644]