BIND 10 #3251: libdhcp++: the openSockets6 function should be unit tested.

BIND 10 Development do-not-reply at isc.org
Fri Dec 13 13:11:25 UTC 2013


#3251: libdhcp++: the openSockets6 function should be unit tested.
-------------------------------------+-------------------------------------
            Reporter:  marcin        |                        Owner:
                Type:  defect        |  UnAssigned
            Priority:  medium        |                       Status:
           Component:  dhcp          |  reviewing
            Keywords:                |                    Milestone:  DHCP-
           Sensitive:  0             |  Kea1.0-alpha
         Sub-Project:  DHCP          |                   Resolution:
Estimated Difficulty:  0             |                 CVSS Scoring:
         Total Hours:  0             |              Defect Severity:  N/A
                                     |  Feature Depending on Ticket:
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
Changes (by marcin):

 * owner:  marcin => UnAssigned
 * status:  assigned => reviewing


Comment:

 I moved the libdhcp++ logic which handles socket operations to a separate
 class. The unit tests use a customized class to mimic socket operations on
 the fake interfaces. With this approach, the IfaceMgr::openSockets6 logic
 can be unit tested without trying to open any actual sockets.

 Proposed !ChangeLog:
 {{{
 XXX.    [bug]           marcin
         libdhcp++: Implemented unit tests for the IfaceMgr's routine which
 opens
         IPv6 sockets on detected interfaces. The IfaceMgr logic performing
 low
         level operations on sockets has been moved to a separate class. By
         providing a custom implementation of this class, the unit tests
 may
         use fake interfaces with custom configuration and thus cover wide
         range of test scenarios for the function.
         (Trac #3251, git abc)
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/3251#comment:2>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list