1. 18 Aug, 2017 1 commit
  2. 14 Dec, 2016 1 commit
    • Andrei Pavel's avatar
      Cassandra Host Data Source · f3598e76
      Andrei Pavel authored
      Added src/share/database/scripts/cql/upgrade_1.0_to_2.0.sh to include host_reservations table in Cassandra.
      Updated documentation to indicate that Cassandra now supports host reservations.
      Added src/lib/dhcpsrv/cql_host_data_source.cc and cql_host_data_source.h.
      Fixed a bug in CfgOption::mergeInternal() where formatted_value_ was not taken into consideration when merging, this is needed for merging the denormalized results on host retrieval in Cassandra. The method is not used elsewhere so there is no regression impact.
      Added Cassandra support in HostDataSourceFactory.
      Implemented a todo in mysql_host_data_source.cc
      Added cql_host_data_source_unittest.cc
      Functionality that Cassandra is not capable of like ORDER BY clause is
      adjusted in generic_host_data_source_unittest.cc.
      f3598e76
  3. 20 Sep, 2016 1 commit
  4. 23 Aug, 2016 1 commit
  5. 22 Aug, 2016 1 commit
    • Thomas Markwalder's avatar
      [4279] Addressed review comments · 44c93060
      Thomas Markwalder authored
      src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
          GenericHostDataSourceTest::compareClientClasses() - now uses
          std::equal()
      
          GenericHostDataSourceTest::testMultipleClientClasses4()
          GenericHostDataSourceTest::testMultipleClientClasses6() - added
          steps for each of the host getters defined in BaseHostDataSource
      
      src/lib/dhcpsrv/tests/generic_host_data_source_unittest.h
      src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
      src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc - fixed typo
      44c93060
  6. 08 Aug, 2016 1 commit
    • Thomas Markwalder's avatar
      [4279] Completed support for HR client classes in PostgreSQL and MySQL · 41e69be3
      Thomas Markwalder authored
      src/lib/dhcpsrv/mysql_host_data_source.cc
          MySqlHostExchange::createBindForSend() - removed extraneous buffer length
          assignment for client class text.
      
      src/lib/dhcpsrv/tests/generic_host_data_source_unittest.cc
          - Added implementations for:
              GenericHostDataSourceTest::compareClientClasses()
              GenericHostDataSourceTest::testMultipleClientClasses4()
              GenericHostDataSourceTest::testMultipleClientClasses6()
              GenericHostDataSourceTest::testMultipleClientClassesBoth()
      
      src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
          - Added implementations for:
              TEST_F(MySqlHostDataSourceTest, multipleClientClasses4)
              TEST_F(MySqlHostDataSourceTest, multipleClientClasses6)
              TEST_F(MySqlHostDataSourceTest, multipleClientClassesBoth)
      
      src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
          - Added implementations for:
              TEST_F(PgSqlHostDataSourceTest, multipleClientClasses4) {
              TEST_F(PgSqlHostDataSourceTest, multipleClientClasses6) {
              TEST_F(PgSqlHostDataSourceTest, multipleClientClassesBoth) {
      41e69be3
  7. 28 Jul, 2016 3 commits
  8. 17 May, 2016 1 commit
  9. 16 May, 2016 1 commit
  10. 13 May, 2016 1 commit
  11. 12 May, 2016 1 commit
  12. 11 May, 2016 1 commit
  13. 11 Apr, 2016 1 commit
    • Thomas Markwalder's avatar
      [4239] MySQL and Postgresql unit tests use production schema create scripts · b45da895
      Thomas Markwalder authored
      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
      b45da895
  14. 05 Apr, 2016 1 commit
  15. 29 Mar, 2016 1 commit
  16. 01 Mar, 2016 2 commits
  17. 08 Feb, 2016 1 commit
  18. 27 Jan, 2016 1 commit
  19. 16 Dec, 2015 1 commit
  20. 04 Dec, 2015 1 commit
  21. 01 Dec, 2015 2 commits
  22. 30 Nov, 2015 1 commit