]> git.ipfire.org Git - thirdparty/kea.git/log
thirdparty/kea.git
9 years ago[master] Update classification document to match the debug output
Shawn Routhier [Mon, 6 Jun 2016 20:10:26 +0000 (13:10 -0700)] 
[master] Update classification document to match the debug output

The debug output was modified to output text strings using
single quotes instead of double quotes but the document missed
getting this update.

9 years ago[master] Add commit number to change log for 4480
Shawn Routhier [Thu, 2 Jun 2016 05:45:13 +0000 (22:45 -0700)] 
[master] Add commit number to change log for 4480

9 years ago[master] Merge branch 'trac4480'
Shawn Routhier [Thu, 2 Jun 2016 05:42:36 +0000 (22:42 -0700)] 
[master] Merge branch 'trac4480'

Add debug statements to the classification code

9 years ago[master] Fixed Ubuntu build complaint
Thomas Markwalder [Wed, 1 Jun 2016 13:31:31 +0000 (09:31 -0400)] 
[master] Fixed Ubuntu build complaint

Added <stdint.h> to src/lib/dhcpsrv/pgsql_exchange.h

9 years ago[4480] Fixed a few typos
Thomas Markwalder [Wed, 1 Jun 2016 13:08:44 +0000 (09:08 -0400)] 
[4480] Fixed a few typos

    Minor corrections to doc/guide/classify.xml

9 years ago[master] Created common PgSqlConnection class from PgSqlLeaseMgr
Thomas Markwalder [Wed, 1 Jun 2016 11:49:37 +0000 (07:49 -0400)] 
[master] Created common PgSqlConnection class from PgSqlLeaseMgr

    Merged in trac 4276.

9 years ago[trac4480] Update per review comments
Shawn Routhier [Fri, 27 May 2016 04:36:36 +0000 (21:36 -0700)] 
[trac4480] Update per review comments

Create a LogContentTest class and move the functions to manipulate
a test to check on the log output there.  This will make it available
for other tests in the future.  As part of this bundle a bit more
work into the class to minimze the calls in the test routines.

Where reasonable remove extra copys of the values being pushed
onto the stack - instead of generating a copy just for the logging
simply use the value from the top of the stack directly.

Swtich to using single quotes around text values.

Added some more description in the classify document

9 years ago[4276] Addressed review comments #2
Thomas Markwalder [Wed, 25 May 2016 13:32:13 +0000 (09:32 -0400)] 
[4276] Addressed review comments #2

Moved PgSqlExchange unit tests into their own file.
Improved time testing.

9 years ago[4276] Addressed review comments
Thomas Markwalder [Mon, 23 May 2016 17:59:00 +0000 (13:59 -0400)] 
[4276] Addressed review comments

Minor cleanups, added some unit testing of PgSqlExchange functions.

9 years ago[4480] Add debug logging for evaluation of classification expressions
Shawn Routhier [Fri, 20 May 2016 04:56:18 +0000 (21:56 -0700)] 
[4480] Add debug logging for evaluation of classification expressions

This patch adds a set of log messages to indicate what values are
being popped from or pushed to the classification value stack.  This
is meant to be used by an administrator when debugging the expression
statements.

9 years ago[master] ChangeLog for trac3164
Stephen Morris [Thu, 19 May 2016 14:39:09 +0000 (15:39 +0100)] 
[master] ChangeLog for trac3164

9 years ago[master] Merge branch 'trac3164'
Stephen Morris [Thu, 19 May 2016 13:56:01 +0000 (14:56 +0100)] 
[master] Merge branch 'trac3164'

9 years ago[3164] Add changes suggested by review
Stephen Morris [Thu, 19 May 2016 13:38:19 +0000 (14:38 +0100)] 
[3164] Add changes suggested by review

Change the connection timeout parameter from an "int" to an "unsigned
int". Update the checks to allow for lexical_cast not throwing an
exception when converting a string representing a negative number
to an unsigned int.

9 years ago[master] Added ChangeLog entry for #4495.
Marcin Siodelski [Thu, 19 May 2016 13:02:42 +0000 (15:02 +0200)] 
[master] Added ChangeLog entry for #4495.

9 years ago[master] Merge branch 'trac4495'
Marcin Siodelski [Thu, 19 May 2016 12:44:07 +0000 (14:44 +0200)] 
[master] Merge branch 'trac4495'

9 years ago[master] Added ChangeLog entry for #4499.
Marcin Siodelski [Thu, 19 May 2016 12:35:33 +0000 (14:35 +0200)] 
[master] Added ChangeLog entry for #4499.

9 years ago[master] Merge branch 'trac4499'
Marcin Siodelski [Thu, 19 May 2016 12:17:25 +0000 (14:17 +0200)] 
[master] Merge branch 'trac4499'

9 years ago[4276] Replace use of PGresult with PgSqlResult throughout
Thomas Markwalder [Wed, 18 May 2016 13:32:30 +0000 (09:32 -0400)] 
[4276] Replace use of PGresult with PgSqlResult throughout

9 years ago[4276] Created new base class, PgSqlExchange
Thomas Markwalder [Wed, 18 May 2016 11:32:42 +0000 (07:32 -0400)] 
[4276] Created new base class, PgSqlExchange

src/lib/dhcpsrv/Makefile.am
    Added pgsql_exchange.cc and pgsql_exchange.h

src/lib/dhcpsrv/pgsql_exchange.h
src/lib/dhcpsrv/pgsql_exchange.cc
    New files, containng new base class PgSqlExchange from
    which was distilled from PgSqlLeaseExchange

src/lib/dhcpsrv/pgsql_lease_mgr.cc
    Refactored exchange classes to use new base class
    Moved PsqlBindArray into pgsql_exchange.*

9 years ago[4499] Removed inefficient conversion of the host identifier to text.
Marcin Siodelski [Tue, 17 May 2016 16:17:55 +0000 (18:17 +0200)] 
[4499] Removed inefficient conversion of the host identifier to text.

9 years ago[4276] Initial impl of PgSqlConnection class
Thomas Markwalder [Tue, 17 May 2016 15:49:07 +0000 (11:49 -0400)] 
[4276] Initial impl of PgSqlConnection class

    Initial refactoring of Postgresql connection logic out of
    PgSqlLeaseMgr into new PgSqlConnection.

9 years ago[4495] Fixed inefficient creation of DHCP Message Type option.
Marcin Siodelski [Tue, 17 May 2016 15:34:48 +0000 (17:34 +0200)] 
[4495] Fixed inefficient creation of DHCP Message Type option.

9 years ago[master] Added ChangeLog entry 1115 for #4481
Thomas Markwalder [Fri, 13 May 2016 14:02:11 +0000 (10:02 -0400)] 
[master] Added ChangeLog entry 1115 for #4481

9 years ago[master] Added query<x> arugment to several callouts
Thomas Markwalder [Fri, 13 May 2016 13:22:40 +0000 (09:22 -0400)] 
[master] Added query<x> arugment to several callouts

    Merge branch 'trac4481'

9 years ago[4481] Changed lease6_select API doc to show query6 as "in" only
Thomas Markwalder [Fri, 13 May 2016 13:20:25 +0000 (09:20 -0400)] 
[4481] Changed lease6_select API doc to show query6 as "in" only

9 years ago[3164] Updated kea-admin copyright date
Thomas Markwalder [Fri, 13 May 2016 12:06:00 +0000 (08:06 -0400)] 
[3164] Updated kea-admin copyright date

9 years ago[4481] Add missing description of query6 argument to lease6_select
Stephen Morris [Thu, 12 May 2016 20:00:36 +0000 (21:00 +0100)] 
[4481] Add missing description of query6 argument to lease6_select

9 years ago[3164] Correct a typo in the user guide
Stephen Morris [Thu, 12 May 2016 18:30:51 +0000 (19:30 +0100)] 
[3164] Correct a typo in the user guide

9 years ago[master] Added ChangeLog entry for #4485
Stephen Morris [Wed, 11 May 2016 20:50:29 +0000 (21:50 +0100)] 
[master] Added ChangeLog entry for #4485

9 years ago[master]Merge branch 'trac4485'
Stephen Morris [Wed, 11 May 2016 20:10:55 +0000 (21:10 +0100)] 
[master]Merge branch 'trac4485'

9 years ago[3164] The database connection timeout is now a configurable parameter
Stephen Morris [Wed, 11 May 2016 19:40:25 +0000 (20:40 +0100)] 
[3164] The database connection timeout is now a configurable parameter

In addition, the default has been changed to five seconds.

9 years ago[4481] Made query4 and query6 callout arguments uniformly available
Thomas Markwalder [Wed, 11 May 2016 17:12:19 +0000 (13:12 -0400)] 
[4481] Made query4 and query6 callout arguments uniformly available

The client packet is now uniformly available to all client packet driven
callouts for both v4 and v6:

Added "query4" to lease4_select and lease4_renew
    src/bin/dhcp4/dhcp4_hooks.dox
        Added query4 argument to lease4_select and lease4_renew documentation

    src/bin/dhcp4/tests/hooks_unittest.cc
        Revamped to track both query4 and response4 arguments
        TEST_F(HooksDhcpv4SrvTest, lease4RenewSimple) - modified to verify
        query4 set by lease4_renew callout

    src/lib/dhcpsrv/alloc_engine.cc
        - AllocEngine::createLease4()
        - AllocEngine::reuseExpiredLease4() - modified to add query4 to
        lease4_select callout arguments
        - AllocEngine::renewLease4() - modified to add query4 to lease4_renew
        callout arguments

    src/lib/dhcpsrv/tests/alloc_engine_hooks_unittest.cc
        HookAllocEngine4Test() - modified to track query4 argument
        TEST_F(HookAllocEngine4Test, lease4_select) - modified to verify query4
        callout argument

Added "query6" to pkt6_send and lease6_select
    src/bin/dhcp6/dhcp6_hooks.dox
        Added query6 argument to pkt6_send and lease6_select documentation

    src/bin/dhcp6/dhcp6_srv.cc
        Dhcpv6Srv::processPacket(Pkt6Ptr& query, Pkt6Ptr& rsp) - modified to
        add query6 to the pkt_send callout arguments

    src/bin/dhcp6/tests/hooks_unittest.cc
        Revamped to track both query4 and response4 arguments
        TEST_F(HooksDhcpv6SrvTest, simplePkt6Send) - modified to
        verify query6 set by pkt6_send callout

    src/lib/dhcpsrv/alloc_engine.cc
        - AllocEngine::createLease4()
        - AllocEngine::reuseExpiredLease6() - modified to add query6 to
        lease6_select callout arguments
        callout arguments

    src/lib/dhcpsrv/tests/alloc_engine_hooks_unittest.cc
        HookAllocEngine6Test() - modified to track query6 argument
        TEST_F(HookAllocEngine6Test, lease4_select) - modified to verify
        query6 argument

9 years ago[master] Corrections in the config examples.
Tomek Mrugalski [Wed, 11 May 2016 12:19:04 +0000 (14:19 +0200)] 
[master] Corrections in the config examples.

9 years ago[master] ChangeLog updated after 4112 merge.
Tomek Mrugalski [Tue, 10 May 2016 14:48:01 +0000 (16:48 +0200)] 
[master] ChangeLog updated after 4112 merge.

9 years ago[master] Merge branch 'trac4112' (subnet4o6 selection based on v6 info)
Tomek Mrugalski [Tue, 10 May 2016 14:37:44 +0000 (16:37 +0200)] 
[master] Merge branch 'trac4112' (subnet4o6 selection based on v6 info)

9 years ago[4112_rebase] Compilation fix.
Tomek Mrugalski [Tue, 10 May 2016 14:04:17 +0000 (16:04 +0200)] 
[4112_rebase] Compilation fix.

9 years ago[4485] Change type of variables to overcome compiler objections
Stephen Morris [Tue, 10 May 2016 14:03:02 +0000 (15:03 +0100)] 
[4485] Change type of variables to overcome compiler objections

One compiler was objecting to placing the address of a size_t variable
into a variable declared as "unsigned long*".  Changing the
declaration from "size_t" to "unsigned long" fixes the problem.

9 years ago[4112_rebase] Minor change after review
Tomek Mrugalski [Tue, 10 May 2016 12:39:57 +0000 (14:39 +0200)] 
[4112_rebase] Minor change after review

 - check for address being :: updated

9 years ago[master] Added ChangeLog entry 1112 for #4492.
Thomas Markwalder [Mon, 9 May 2016 13:26:22 +0000 (09:26 -0400)] 
[master] Added ChangeLog entry 1112 for #4492.

9 years ago[master] Fixed unit test compilation post merge
Thomas Markwalder [Mon, 9 May 2016 13:19:59 +0000 (09:19 -0400)] 
[master] Fixed unit test compilation post merge

    HooksManager::loadLibraries() call now requires
    LibraryCollection as parameter

9 years ago[master] Server destructors now explicitly unload hooks libraries
Thomas Markwalder [Mon, 9 May 2016 12:31:55 +0000 (08:31 -0400)] 
[master]  Server destructors now explicitly unload hooks libraries

    Merge branch 'trac4492'

9 years ago[4492] Addressed review comments
Thomas Markwalder [Mon, 9 May 2016 11:32:51 +0000 (07:32 -0400)] 
[4492] Addressed review comments

src/bin/dhcp4/tests/hooks_unittest.cc
src/bin/dhcp6/tests/hooks_unittest.cc
    Fixed includes, copyright, and removed unnecessary calls to
    IfaceMgr::instance().deleteAllExternalSockets();

9 years ago[4492] Addressed review comments
Thomas Markwalder [Fri, 6 May 2016 13:07:31 +0000 (09:07 -0400)] 
[4492] Addressed review comments

src/bin/dhcp4/tests/hooks_unittest.cc
    TEST_F(LoadUnloadDhcpv4SrvTest, unloadLibaries)  - new test that
    verifies Hooks libraries are unloaded by the Dhcpv4Srv destructor

src/bin/dhcp6/tests/hooks_unittest.cc
    TEST_F(LoadUnloadDhcpv6SrvTest, unloadLibaries)  - new test that
    verifies Hooks libraries are unloaded by the Dhcpv4Srv destructor

9 years ago[4112] 2 new unit-tests added.
Tomek Mrugalski [Thu, 5 May 2016 13:41:47 +0000 (15:41 +0200)] 
[4112] 2 new unit-tests added.

9 years ago[master] Minor correction in doxygen comments.
Tomek Mrugalski [Thu, 5 May 2016 12:55:57 +0000 (14:55 +0200)] 
[master] Minor correction in doxygen comments.

 Thanks to wpk for reporting this issue.

9 years ago[4112] selectSubnet4o6 implemented + one unit-test
Tomek Mrugalski [Sun, 1 Nov 2015 03:29:34 +0000 (12:29 +0900)] 
[4112] selectSubnet4o6 implemented + one unit-test

9 years ago[master] Added ChangeLog entry for #4493.
Marcin Siodelski [Wed, 4 May 2016 18:06:05 +0000 (20:06 +0200)] 
[master] Added ChangeLog entry for #4493.

9 years ago[master] Merge branch 'trac4493'
Marcin Siodelski [Wed, 4 May 2016 17:26:01 +0000 (19:26 +0200)] 
[master] Merge branch 'trac4493'

9 years ago[4493] Optimize lookup of timed out packets.
Marcin Siodelski [Wed, 4 May 2016 16:15:48 +0000 (18:15 +0200)] 
[4493] Optimize lookup of timed out packets.

9 years ago[4493] Updated statistics calculation.
Marcin Siodelski [Mon, 2 May 2016 17:29:12 +0000 (19:29 +0200)] 
[4493] Updated statistics calculation.

Presented rate is now the number of ACK/Reply messages,
rather than DO/SA.

9 years ago[master] ChangeLog updated after #4297 merge.
Tomek Mrugalski [Mon, 2 May 2016 15:13:50 +0000 (17:13 +0200)] 
[master] ChangeLog updated after #4297 merge.

9 years ago[master] Merge branch 'trac4297' (hook libs can now take parameters)
Tomek Mrugalski [Mon, 2 May 2016 14:42:14 +0000 (16:42 +0200)] 
[master] Merge branch 'trac4297' (hook libs can now take parameters)

9 years ago[4493] Extended perfdhcp test for collected packets.
Marcin Siodelski [Mon, 2 May 2016 13:26:46 +0000 (15:26 +0200)] 
[4493] Extended perfdhcp test for collected packets.

The extended test verifies that the stats manager is
still usable after some packets have been collected.

9 years ago[4493] Improve packet collecting mechanisms in perfdhcp.
Marcin Siodelski [Mon, 2 May 2016 12:25:23 +0000 (14:25 +0200)] 
[4493] Improve packet collecting mechanisms in perfdhcp.

When the perfdhcp performs unordered packet lookup within
a bucket of sent packets, it will remove all timed out
transactions.

9 years ago[master] Corrected invalid parameter passed to the test function.
Marcin Siodelski [Mon, 2 May 2016 09:03:35 +0000 (11:03 +0200)] 
[master] Corrected invalid parameter passed to the test function.

This is to eliminate some of the recently found covertity isssues.
Reviewed on jabber.

9 years ago[4492] Explicitly unload hook libraries prior during shutdown
Thomas Markwalder [Fri, 29 Apr 2016 14:24:36 +0000 (10:24 -0400)] 
[4492] Explicitly unload hook libraries prior during shutdown

A call to HooksManager::getHooksManager().unloadLibraries() was added to
the destructors Dhcpv4Srv::~Dhcpv4Srv() and Dhcpv6Srv::~Dhcpv6Srv(). This
ensures hook libraries are unloaded prior to static objects.

9 years ago[4297] spelling
Francis Dupont [Thu, 28 Apr 2016 14:15:41 +0000 (16:15 +0200)] 
[4297] spelling

9 years ago[4303] Added Changelog entry for #4303.
Marcin Siodelski [Wed, 27 Apr 2016 17:25:17 +0000 (19:25 +0200)] 
[4303] Added Changelog entry for #4303.

9 years ago[4297] Corrected headers installation dir.
Tomek Mrugalski [Wed, 27 Apr 2016 15:56:33 +0000 (17:56 +0200)] 
[4297] Corrected headers installation dir.

9 years ago[4297] Addressed review comments:
Tomek Mrugalski [Wed, 27 Apr 2016 15:48:08 +0000 (17:48 +0200)] 
[4297] Addressed review comments:
 - returnining different values in callout_params_library.cc
 - returned values are now described for getParameter
 - corrected index syntax comment in getParameter
 - added missing include
 - hooks_user.dox updated
 - hooks unit test moved, so it is now next to other hooks tests

9 years ago[master] Merge branch 'trac4303'
Marcin Siodelski [Wed, 27 Apr 2016 15:40:55 +0000 (17:40 +0200)] 
[master] Merge branch 'trac4303'

9 years ago[4303] Removed unnecessary variable initialization.
Marcin Siodelski [Wed, 27 Apr 2016 15:29:49 +0000 (17:29 +0200)] 
[4303] Removed unnecessary variable initialization.

9 years ago[4303] Address second round of review comments.
Marcin Siodelski [Wed, 27 Apr 2016 13:34:33 +0000 (15:34 +0200)] 
[4303] Address second round of review comments.

- No additional check for HR mode in findReservations
- Additional commentary in the loop collecting host ids.

9 years ago[master] Added ChangeLog entry 1108 for #4239
Thomas Markwalder [Wed, 27 Apr 2016 13:14:33 +0000 (09:14 -0400)] 
[master] Added ChangeLog entry 1108 for #4239

9 years ago[master] Unit tests now use production database scripts
Thomas Markwalder [Wed, 27 Apr 2016 12:48:50 +0000 (08:48 -0400)] 
[master] Unit tests now use production database scripts

    Merges in trac4239.

9 years ago[master] Updated ChangeLog
Francis Dupont [Wed, 27 Apr 2016 12:25:50 +0000 (14:25 +0200)] 
[master] Updated ChangeLog

9 years ago[master] regen
Francis Dupont [Wed, 27 Apr 2016 11:44:02 +0000 (11:44 +0000)] 
[master] regen

9 years ago[4303] Added commentary in dhcp4_srv.h
Thomas Markwalder [Wed, 27 Apr 2016 11:41:47 +0000 (07:41 -0400)] 
[4303] Added commentary in dhcp4_srv.h

9 years ago[master] Finish merge of trac4268a (DHCPv4 fields)
Francis Dupont [Wed, 27 Apr 2016 11:32:59 +0000 (13:32 +0200)] 
[master] Finish merge of trac4268a (DHCPv4 fields)

9 years ago[4303] Addressed remaining review comments.
Marcin Siodelski [Wed, 27 Apr 2016 07:22:29 +0000 (09:22 +0200)] 
[4303] Addressed remaining review comments.

9 years ago[4303] Renamed CfgHostReservations to CfgHostOperations.
Marcin Siodelski [Tue, 26 Apr 2016 15:18:45 +0000 (17:18 +0200)] 
[4303] Renamed CfgHostReservations to CfgHostOperations.

This change was suggested during a ticket review.

9 years ago[trac4268] Tidy up some documentation strings
Shawn Routhier [Tue, 26 Apr 2016 05:39:03 +0000 (22:39 -0700)] 
[trac4268] Tidy up some documentation strings

9 years ago[4268a] Fixes and cleanups
Francis Dupont [Mon, 25 Apr 2016 14:57:39 +0000 (16:57 +0200)] 
[4268a] Fixes and cleanups

9 years ago[4268a] Updated tests for 4 byte padding
Francis Dupont [Mon, 25 Apr 2016 14:43:28 +0000 (16:43 +0200)] 
[4268a] Updated tests for 4 byte padding

9 years ago[4268a] untabify
Francis Dupont [Mon, 25 Apr 2016 14:43:08 +0000 (16:43 +0200)] 
[4268a] untabify

9 years ago[4268a] Padded hlen/htype pkt4
Francis Dupont [Mon, 25 Apr 2016 14:36:10 +0000 (16:36 +0200)] 
[4268a] Padded hlen/htype pkt4

9 years ago[4239] Addressed review comments
Thomas Markwalder [Mon, 25 Apr 2016 14:35:30 +0000 (10:35 -0400)] 
[4239] Addressed review comments

src/lib/dhcpsrv/pgsql_lease_mgr.cc
    Amended commentary for getColumnValue() variants
    Added decription of Uiaid union
    Changed std::system to ::system

src/lib/dhcpsrv/testutils/mysql_schema.cc
    Changed std::system to ::system

src/lib/dhcpsrv/testutils/mysql_schema.h
    Fixed typo

src/lib/dhcpsrv/testutils/pgsql_schema.cc
    Removed extraneous include
    Changed std::system to ::system

9 years ago[4268a] Added extracted field lengthes
Francis Dupont [Mon, 25 Apr 2016 14:28:20 +0000 (16:28 +0200)] 
[4268a] Added extracted field lengthes

9 years ago[master] Update changelog with commit number for 4269
Shawn Routhier [Fri, 15 Apr 2016 04:18:05 +0000 (21:18 -0700)] 
[master] Update changelog with commit number for 4269

9 years agoMerge branch 'trac4269' Merge 4269 after updates to fix conflicts
Shawn Routhier [Fri, 15 Apr 2016 03:45:08 +0000 (03:45 +0000)] 
Merge branch 'trac4269' Merge 4269 after updates to fix conflicts

9 years ago[trac4269] Updates per review comments, basically change some variable names
Shawn Routhier [Thu, 14 Apr 2016 21:24:16 +0000 (21:24 +0000)] 
[trac4269] Updates per review comments, basically change some variable names

9 years ago[4303] Values in 'host-reservation-identifiers' used by the servers.
Marcin Siodelski [Thu, 14 Apr 2016 12:40:55 +0000 (14:40 +0200)] 
[4303] Values in 'host-reservation-identifiers' used by the servers.

Both DHCPv4 and DHCPv6.

9 years ago[4303] Implemented parser for 'host-reservation-identifiers' list.
Marcin Siodelski [Thu, 14 Apr 2016 09:35:47 +0000 (11:35 +0200)] 
[4303] Implemented parser for 'host-reservation-identifiers' list.

9 years ago[4303] Added class holding configuration of host identifiers.
Marcin Siodelski [Wed, 13 Apr 2016 10:23:14 +0000 (12:23 +0200)] 
[4303] Added class holding configuration of host identifiers.

The identifiers are held on an ordered list and the server will
use them to search for host reservations for each client using
this order.

9 years ago[4303] Servers now search for host reservations using any identifier.
Marcin Siodelski [Wed, 13 Apr 2016 06:56:28 +0000 (08:56 +0200)] 
[4303] Servers now search for host reservations using any identifier.

9 years ago[4239] Moved schema scripts to src/share/database/scripts
Thomas Markwalder [Tue, 12 Apr 2016 15:14:52 +0000 (11:14 -0400)] 
[4239] Moved schema scripts to src/share/database/scripts

    Moved schema scripts into a new common location:

        src/share/database/scripts

    to make them accessible to both kea-admin and dhcpsrv testing

9 years ago[master] Added ChangeLog entry for pull request #19.
Marcin Siodelski [Tue, 12 Apr 2016 11:03:12 +0000 (13:03 +0200)] 
[master] Added ChangeLog entry for pull request #19.

9 years ago[master] Merge branch 'github19'
Marcin Siodelski [Tue, 12 Apr 2016 10:29:16 +0000 (12:29 +0200)] 
[master] Merge branch 'github19'

9 years ago[github19] Updated AUTHORS file.
Marcin Siodelski [Tue, 12 Apr 2016 10:27:36 +0000 (12:27 +0200)] 
[github19] Updated AUTHORS file.

Added Angelo as contributor.

9 years ago[4239] Added drop scripts for both MySQL and Postgresql
Thomas Markwalder [Mon, 11 Apr 2016 19:16:58 +0000 (15:16 -0400)] 
[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

9 years ago[4239] MySQL and Postgresql unit tests use production schema create scripts
Thomas Markwalder [Mon, 11 Apr 2016 15:51:15 +0000 (11:51 -0400)] 
[4239] MySQL and Postgresql unit tests use production schema create scripts

src/lib/dhcpsrv/testutils/schema.h
src/lib/dhcpsrv/testutils/schema.cc
    New files that contain constants and functions common to RDBMS
    testing

src/lib/dhcpsrv/testutils/pgsql_schema.h
src/lib/dhcpsrv/testutils/pgsql_schema.cc
    New files that contain constants and functions needed for
    Posgresql testing

src/lib/dhcpsrv/testutils/mysql_schema.cc
src/lib/dhcpsrv/testutils/mysql_schema.h
    Removed common constants and functions
    Added MYSQL_VALID_TYPE
    runMySQLScript() - new function to submit a script to MySQL

src/lib/dhcpsrv/pgsql_lease_mgr.cc
    PgSqlLease6Exchange - replaced uint32_t iaid member with Uiaid union
    instance.  This permits the value to be safely stored in the database
    as an INT (signed 4-byte value)
    getColumnValue()- added int32_t variant of this method

src/lib/dhcpsrv/tests/Makefile.am
    Removed schema_pgsql_copy.h

src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    Altered tests to use MYSQL_VALID_TYPE

src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc
    Moved constants and functions testutils/pgsl_schema.h & cc

9 years ago[github19] Integrated pull request 19 with unit test fix.
Marcin Siodelski [Mon, 11 Apr 2016 12:47:28 +0000 (14:47 +0200)] 
[github19] Integrated pull request 19 with unit test fix.

9 years ago[4239] Fix constraint-based unit test failure
Thomas Markwalder [Fri, 8 Apr 2016 14:03:19 +0000 (10:03 -0400)] 
[4239] Fix constraint-based unit test failure

src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc
   - GenericLeaseMgrTest::testLease6HWTypeAndSource() - now uses valid values
     for hardware address source

9 years ago[4239] MySQL unit tests in dhcpsrv now use production db create script
Thomas Markwalder [Fri, 8 Apr 2016 13:43:22 +0000 (09:43 -0400)] 
[4239] MySQL unit tests in dhcpsrv now use production db create script

src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
    TEST(MySqlOpenTest, OpenDatabase) - pass in show_err=true for call
    to createMySQLSchema()

src/lib/dhcpsrv/testutils/Makefile.am
    - Added definition of TEST_ADMIN_SCRIPTS_DIR
    - removed schema_mysql_copy.h

src/lib/dhcpsrv/testutils/mysql_schema.cc
    - Removed include of schema_mysql_copy.h
    - destroyMySQLSchema() - now contains destroy_statment[] formerly
    defined in schema_mysql_copy.h
    - createMySQLSchema() - Creates the database through command line
    invocation of MySQL cli, mysql, passing it the production database
    creation script

9 years ago[trac4269] Update to put 4 byte strings on the value stack for integers
Shawn Routhier [Fri, 8 Apr 2016 06:05:50 +0000 (23:05 -0700)] 
[trac4269] Update to put 4 byte strings on the value stack for integers

9 years ago[master] Update change log to add commit number for trac4265
Shawn Routhier [Fri, 8 Apr 2016 03:05:53 +0000 (20:05 -0700)] 
[master] Update change log to add commit number for trac4265

9 years ago[master] Added ChangeLog entry 1104 for #4259.
Thomas Markwalder [Thu, 7 Apr 2016 11:36:52 +0000 (07:36 -0400)] 
[master] Added ChangeLog entry 1104 for #4259.

9 years ago[master] DDNS parameter, replace-client-name, now supports multiple modes
Thomas Markwalder [Thu, 7 Apr 2016 11:09:59 +0000 (07:09 -0400)] 
[master] DDNS parameter, replace-client-name, now supports multiple modes

    Merges in trac4259.

9 years ago[4259] Address review comments, part II
Thomas Markwalder [Thu, 7 Apr 2016 11:05:13 +0000 (07:05 -0400)] 
[4259] Address review comments, part II

    Fixed minor typos.

9 years ago[master] Added ChangeLog entry for #4301.
Marcin Siodelski [Wed, 6 Apr 2016 20:21:11 +0000 (22:21 +0200)] 
[master] Added ChangeLog entry for #4301.