2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00
Commit Graph

28568 Commits

Author SHA1 Message Date
Marcin Siodelski
6193cc7ae1 [#401,!254] Added space in the error message. 2019-03-18 17:31:58 +01:00
Thomas Markwalder
8873fce8a2 [#401,!254] Addressed more review comments. 2019-03-18 11:30:05 -04:00
Marcin Siodelski
df83514ac0 [#401,!254] Use three slashes between todo in the SrvConfig. 2019-03-18 12:51:04 +01:00
Francis Dupont
3fb0d68d1f [master] Added a ChangeLog entry for data-directory 2019-03-18 11:16:03 +01:00
Francis Dupont
1f094e18a2 [430-configure-location-of-datadir] Fixed another post rebase issue 2019-03-16 00:50:41 +01:00
Francis Dupont
a48840c769 [430-configure-location-of-datadir] Better clear in CfgMgrTest 2019-03-16 00:48:45 +01:00
Francis Dupont
e6cb236981 [#430,!263] regen bison 2019-03-15 23:29:39 +00:00
Francis Dupont
a746049d4d [430-configure-location-of-datadir] Updated keywords list 2019-03-16 00:26:09 +01:00
Francis Dupont
08b36c69e7 [430-configure-location-of-datadir] Added some unit tests 2019-03-16 00:23:05 +01:00
Francis Dupont
c3af21abf0 [430-configure-location-of-datadir] Fixed quotes in data-directory example 2019-03-16 00:23:05 +01:00
Francis Dupont
5d2e4423ba [430-configure-location-of-datadir] Reverted to CfgMgr. Made Optional 2019-03-16 00:23:05 +01:00
Francis Dupont
29cd23f3af [430-configure-location-of-datadir] Forked all-keys.json files into stable and current versions 2019-03-16 00:23:05 +01:00
Francis Dupont
90f13626a8 [430-configure-location-of-datadir] Do not export data-directory tests 2019-03-16 00:23:05 +01:00
Francis Dupont
381371a7a2 [430-configure-location-of-datadir] Moved datadir to server config and use it for v6 2019-03-16 00:23:05 +01:00
Francis Dupont
15f8d82134 [#480,!263] regen flex/bison 2019-03-16 00:23:05 +01:00
Francis Dupont
c397e58b78 [430-configure-location-of-datadir] Extended syntax 2019-03-16 00:21:08 +01:00
Thomas Markwalder
b45f1ab92f [#401,!254] Implemented CfgOption::replace
src/lib/dhcpsrv/cfg_option.*
    CfgOption::replace() - new method to update an OptionDescriptor

    CfgOption::createDescriptorOption() - new returns a bool indicating
    whether or not the option_ instance was replaced
2019-03-15 10:34:38 -04:00
Thomas Markwalder
5406df22fc [#401,!254] Options are now created when merging subnets
src/lib/dhcpsrv/cfg_subnets4.*
    CfgSubnets4::merge() - added cfg_def, now
    creates options for each subnet and their pools.

src/lib/dhcpsrv/srv_config.cc
    SrvConfig::merge4() - passes merged option defs
    into subnets merge.

src/lib/dhcpsrv/subnet.h
    Subnet::getPoolsWritable() - changed to public.
2019-03-15 08:26:35 -04:00
Thomas Markwalder
d55b3c695e [#401,!254] Options are now created when merging shared-network4s
src/lib/dhcpsrv/cfg_option.*
    CfgOption::createOptions(CfgOptionDefPtr cfg_def) -
    new function which creates options for all of a cfg's
    descriptors

    CfgOption::merge() - calls createOptions()

src/lib/dhcpsrv/cfg_shared_networks.*
    CfgSharedNetworks4::merge() - added cfg_def parameter and
    call to populate the "other" networks' options

src/lib/dhcpsrv/srv_config.cc
    SrvConfig::merge4() - passes merged option definitions
    into shared network merge.
2019-03-14 13:54:41 -04:00
Marcin Siodelski
8edf2fb253 [#521,!270] Addressed review comments. 2019-03-14 04:59:58 -04:00
Marcin Siodelski
a810e0bc74 [#521,!270] Updated unit tests comment. 2019-03-14 04:59:58 -04:00
Marcin Siodelski
5b2c6da4f7 [#521,!270] Removed dependency of the MySQL CB on LibDHCP option defs. 2019-03-14 04:59:58 -04:00
Thomas Markwalder
3e062b8dd7 [#531,!279] Rebased 2019-03-13 11:09:30 -04:00
Thomas Markwalder
d88c013de4 [#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.
2019-03-13 10:44:17 -04:00
Thomas Markwalder
2a310d99e9 [#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.
2019-03-13 10:36:49 -04:00
Francis Dupont
d32b1fb8cf [master] Added ChangeLog entry for --enable-generate-messages 2019-03-13 14:26:45 +01:00
Tomek Mrugalski
499b7c3645 [#441,!233] Cosmetic change in config.report 2019-03-13 08:37:54 -04:00
Francis Dupont
8fe065f03c [441-make-distcheck-fails-on-fedora-29-automake-1-16] Fixed some paths 2019-03-13 08:37:54 -04:00
Francis Dupont
f6611731de [441-make-distcheck-fails-on-fedora-29-automake-1-16] Some updates 2019-03-13 08:37:54 -04:00
Francis Dupont
c5ecc2be01 [441-make-distcheck-fails-on-fedora-29-automake-1-16] Second attempt to fix automake 1.16 issue; distribute generated file 2019-03-13 08:37:54 -04:00
Francis Dupont
ddc054076b [master] Fixed #481 merge error 2019-03-13 11:47:56 +01:00
Francis Dupont
40c8291281 [master] Added ChangeLog entry for subnet update by ID or prefix 2019-03-13 11:13:08 +01:00
Marcin Siodelski
9ef651950f [#481,!251] Fixed failing unit test as a result of review. 2019-03-12 18:20:47 -04:00
Francis Dupont
5d96145025 [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Addressed comments 2019-03-12 18:20:47 -04:00
Francis Dupont
ecb27f49c3 [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Added tests and updated schema 2019-03-12 18:20:47 -04:00
Francis Dupont
9cd6012cc5 [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Applied Marcin's proposal 2019-03-12 18:20:47 -04:00
Thomas Markwalder
f7bf83acf8 [master] Added ChangeLog entry 1542. 2019-03-12 15:24:27 -04:00
Thomas Markwalder
7e81d7bea2 [master] MySQL and CQL unit tests now wipe data only by default
Merge branch '526-improve-mysql-unit-test-time'
2019-03-12 15:22:57 -04:00
Thomas Markwalder
2e048dbe2a [#526,!269] Final review changes 2019-03-12 14:55:17 -04:00
Thomas Markwalder
2de28db4ae [#526,!269] Updated developer's guide.
doc/devel/unit-tests.dox - added
    discussion of the env var.
2019-03-12 13:01:24 -04:00
Thomas Markwalder
bee6240bd8 [#526,!269] More clean up
General clean up, changed CQL params to be same order as MySQL.
2019-03-12 11:52:37 -04:00
Francis Dupont
9dbafef459 [master] Added #510 in RAI fix ChangeLog entry 2019-03-12 16:08:16 +01:00
Thomas Markwalder
878ce0b44f [#526,!269] Added env var control and CQL symmetry
Data wiping is on by default, for both MySQL and CQL
(not yet implemented for Postgresql) and but can be
overridden by KEA_TEST_DB_WIPE_DATA_ONLY.

src/lib/mysql/testutils/mysql_schema.*
    destroyMySQLSchema()
    createMySQLSchema() - added check of softWipeEnabled() to
    see if env var has turned it OFF.

Changed CQL to work the same way as MySQL:

src/share/database/scripts/cql
    wipe_data.sh.in - new file, replaces soft_wipe.cql

src/lib/cql/testutils/cql_schema.*
    destroyCqlSchema() - now destroys the schema
    if data wipe fails or is disabled

    createCqlSchema() - now drops/creates the schema
    if data wipe fails or is disabled.

    runCqlScript(() - added request-timeout to prevent
    timeout errors in slow environments

    wipeCqlData(bool show_err) - new function that
    attempts to run the wipe shell script

src/lib/dhcpsrv/tests/cql_lease_mgr_unittest.cc
    Removed now superflous destroyCqlSchema calls
2019-03-12 10:47:57 -04:00
Francis Dupont
5c0c5b0bd2 [512-fix-TestConfigBackendDHCPv4-deleteSharedNetworkSubnets4] Added a call to delAll() to detach subnets where deleting a shared network 2019-03-12 09:44:45 -04:00
Francis Dupont
f3563396d2 [519-dhcp-server-response-an-empty-rai-field] Added the bad RAI case 2019-03-12 04:59:39 -04:00
Thomas Markwalder
9bc1a0edf9 [#526,!269] Addressed more review comments
src/lib/cql/testutils/cql_schema.*
    Modified to use common softWipeEnabled(), which
    defaults to true

src/lib/database/testutils/schema.*
    bool softWipeEnabled() - new function that checks
    env varible to determine if DB data wiping is enabled
    (default is true/enabled)

src/lib/mysql/testutils/mysql_schema.*
    createMySQLSchema()
    destroyMySQLSchema()-  now softWipeEnabled() to allow
    data wiping to be turned on/off

src/share/database/scripts/mysql/wipe_data.sh.in
    Added better error messaging

several files:
    Removed extraneous calls to destroyMySQLSchema, added
    comments
2019-03-11 13:50:00 -04:00
Francis Dupont
d3f51876ca [master] Added ChangeLog entry for deleteSharedNetworkSubnets4 524-using-sh-and-wrong-syntax-in-if-statements-breaks-ubuntu-build_base 512-fix-TestConfigBackendDHCPv4-deleteSharedNetworkSubnets4_base 2019-03-11 16:45:07 +01:00
Francis Dupont
76991c42d1 [512-remote-network4-del-update] spurious space 2019-03-11 11:39:21 -04:00
Francis Dupont
0905408bce [512-remote-network4-del-update] Added deleteSharedNetworkSubnets4 support 2019-03-11 11:39:21 -04:00
Francis Dupont
1f296a835b [master] Added ChangeLog entry dns++.pc removal 2019-03-11 16:28:41 +01:00