1. 27 Jun, 2019 1 commit
  2. 19 Jun, 2019 1 commit
  3. 28 May, 2019 1 commit
  4. 07 Mar, 2019 1 commit
    • Michal Nowikowski's avatar
      Changed location of unit socket in unit tests · a45e2f68
      Michal Nowikowski authored
      Previously it was stored in TEST_DATA_BUILDDIR which resides inside repo sources.
      Due to the fact that when repo was located in deep patch creating socket was
      failing as max socket patch is about 100 characters. Now it is located
      in temp folder managed by Sandbox class. The sandbox directory is created
      in test constructor and deleted in destructor. As the temp directory
      is in form /tmp/kea-XXXXXX the lnegth is always lower than 1000, so running
      the unit tests never fails.
      a45e2f68
  5. 14 Jun, 2018 1 commit
  6. 05 Jun, 2018 1 commit
    • Thomas Markwalder's avatar
      [5599] Control channel now emits info on any discarded data · e47da044
      Thomas Markwalder authored
      doc/guide/ctrl-channel.xml
          Minor update to using socat
      
      src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
      src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
          Updated testing for server response to server
          side control channel timeouts
      
      src/lib/cc/json_feed.h
              JSONFeed::getProcessedText() - new method that
              returns a copy of the current accumulation of
              accepted text
      
      src/lib/config/config_messages.mes
      src/lib/config/command_mgr.cc
          Connection::receiveHandler() - added log info about
          discarded data when client closes connection
      
          Connection::timeoutHandler() - added info about discarded
          data to server's response to client on server side timeout
      e47da044
  7. 16 May, 2018 1 commit
  8. 30 Apr, 2018 1 commit
  9. 04 Dec, 2017 1 commit
  10. 08 Sep, 2017 1 commit
  11. 05 Jul, 2017 2 commits
  12. 04 Jul, 2017 1 commit
  13. 03 Jul, 2017 2 commits
  14. 30 Jun, 2017 1 commit
  15. 22 Jun, 2017 3 commits
  16. 21 Jun, 2017 1 commit
  17. 18 Apr, 2017 2 commits
  18. 14 Apr, 2017 1 commit
  19. 29 Mar, 2017 1 commit
  20. 21 Mar, 2017 1 commit
  21. 17 Mar, 2017 2 commits
  22. 16 Mar, 2017 1 commit
  23. 15 Mar, 2017 3 commits
  24. 07 Feb, 2017 1 commit
  25. 28 Jan, 2017 1 commit
  26. 27 Jan, 2017 2 commits
  27. 03 Jan, 2017 1 commit
    • Thomas Markwalder's avatar
      [5046] Addressed review comments · ebb863e3
      Thomas Markwalder authored
      Added memfile without persistence to set_config unit tests. This eliminates
      the tests attempting to create the csv file.
      
      Updated copyrights.
      
      Fixed misspelling.
      ebb863e3
  28. 22 Dec, 2016 1 commit
    • Thomas Markwalder's avatar
      [5046] CommandMgr dups the connection socket prior to executing command · e5a6c2b4
      Thomas Markwalder authored
      src/lib/config/command_mgr.cc
          CommandMgr::commandReader(int sockfd) - duplicates the connection
          socket to use for repsonding in case the command closes the channel.
      
      src/lib/testutils/io_utils.cc
          fileExists() - now uses stat() function so one can use it on any
          type of file, like a unix socket
      
      updated unit tests accordingly
      e5a6c2b4
  29. 15 Dec, 2016 1 commit
    • Thomas Markwalder's avatar
      [5046] Move apply logging and config commit from processConfig to set-config handler · 354e68ad
      Thomas Markwalder authored
      src/bin/dhcp4/ctrl_dhcp4_srv.cc
          commandConfigReloadHandler() - use commandSetConfigHandler()
          instead of processConfig() to account for logging config
      
          commandSetConfigHandler() - apply logging config and commit config here instead of
          in processConfig()
      
      src/bin/dhcp4/tests/dhcp4_test_utils.h
           ~NakedDhcpv4Srv() - removed unecesary initLogger call
      
      src/bin/dhcp4/tests/kea_controller_unittest.cc
           ~JSONFileBackendTest() - removed unecessary call to setDefaultLogging
      
      src/bin/dhcp6/ctrl_dhcp6_srv.cc
          commandConfigReloadHandler() - use commandSetConfigHandler()
          instead of processConfig() to account for logging config
      
          commandSetConfigHandler() - apply logging config and commit config here instead of
          in processConfig()
      
      src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
          createUnixChannelServer() -  added config commit so command channel behavior
          is correct
      
          TEST_F(CtrlDhcpv6SrvTest, configReload)
              Wrap configuration in Dhcp6 element
      
          TEST_F(CtrlChannelDhcpv6SrvTest, set_config)
              Turn off timers in config
      
      src/lib/dhcpsrv/srv_config.cc
          SrvConfig::applyLoggingCfg() - remove logic added to not call manager.process
          when there are no specs.
      354e68ad
  30. 09 Dec, 2016 1 commit
    • Thomas Markwalder's avatar
      [5046] Avoid wiping logging when config is empty · 767bf150
      Thomas Markwalder authored
      src/lib/dhcpsrv/srv_config.cc
          SrvConfig::applyLoggingCfg() - now only calls LoggerManager::process()
          if the logger config isn't empty
      
      src/bin/dhcp6/ctrl_dhcp6_srv.cc
      src/bin/dhcp6/tests/dhcp6_test_utils.cc
          Minor clean up and commentary
      
      src/bin/dhcp6/kea_controller.cc
          configure(const std::string& file_name)
          - Removed initial rollback, now done in commandSetConfigHandler()
      
      src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
         - Removed unnecessary call to initLogger
      767bf150
  31. 08 Dec, 2016 1 commit
    • Thomas Markwalder's avatar
      [5046] Fixed logger setup on set-config · cb8f8ae3
      Thomas Markwalder authored
      src/bin/dhcp6/ctrl_dhcp6_srv.cc
          ControlledDhcpv6Srv::commandSetConfigHandler()
          - Add logger config
          - Use processConfig() directly instead of config-reload command
      
      src/bin/dhcp6/kea_controller.cc
          configure(const std::string& file_name)
            - Remove logger config
            - Use set-config command instead of config-reload
      
      src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
          createUnixChannelServer()
          - added call to initLogger() to revert logging to unit test logger
      
      src/bin/dhcp6/tests/dhcp6_test_utils.cc
          BaseServerTest::~BaseServerTest() {
          - added call to initLogger() to revert logging to unit test logger
      cb8f8ae3