1. 28 Jul, 2016 1 commit
  2. 24 Jun, 2016 3 commits
    • Thomas Markwalder's avatar
      [4277] Rollback test passes · 3c221983
      Thomas Markwalder authored
      tests/pgsql_host_data_source_unittest.cc
          TEST_F(PgSqlHostDataSourceTest, testAddRollback) now
          functions and passes
      3c221983
    • Thomas Markwalder's avatar
      [4277] IPv6 Reservations now functional · 8f21305b
      Thomas Markwalder authored
      src/lib/dhcpsrv/pgsql_exchange.h
      src/lib/dhcpsrv/pgsql_exchange.cc
      src/lib/dhcpsrv/pgsql_lease_mgr.cc
          Moved getIPv6Value() from PgSqlLease6Exchange to
          PgSqlExchange and made it static
      
          PgSqlExchange::dumpRow() gets number of columns
          from result set, not parameter
      
      src/lib/dhcpsrv/pgsql_host_data_source.cc
           PgSqlIPv6ReservationExchange
           PgSqlHostIPv6Exchange - now functional
      
      src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
          TEST_F(PgSqlHostDataSourceTest, get6AddrWithDuid)
          TEST_F(PgSqlHostDataSourceTest, addDuplicate6WithHWAddr)
          TEST_F(PgSqlHostDataSourceTest, optionsReservations6)
          TEST_F(PgSqlHostDataSourceTest, optionsReservations46)
          TEST_F(PgSqlHostDataSourceTest, formattedOptionsReservations6)
          TEST_F(PgSqlHostDataSourceTest, formattedOptionsReservations46)
          - All included and passing.
      8f21305b
    • Thomas Markwalder's avatar
      [4277] PgSqlHostWithOptionsExchange, PgSqlOptionExchange now functional · 3c01633e
      Thomas Markwalder authored
      src/lib/dhcpsrv/pgsql_connection.h
          Added OID_TEXT
      
      src/lib/dhcpsrv/pgsql_exchange.cc
          PsqlBindArray::addNull()
      
          class PgSqlExchange
              - getColumnLabel() - now gets column name from result set
              - getColumnValue variants are now static methods
              - rename column_labels_ to columns_
              - isColumnNull() new method tests if column in row is null
              - dumpRow() - debug method dumps row as text
      
      src/lib/dhcpsrv/pgsql_host_data_source.cc
          PgSqlHostWithOptionsExchange
          PgSqlOptionExchange  now functional
      
      src/lib/dhcpsrv/tests/pgsql_host_data_source_unittest.cc
          TEST_F(PgSqlHostDataSourceTest, addDuplicate4)
          TEST_F(PgSqlHostDataSourceTest, formattedOptionsReservations4)
          - Enabled and passing.
      3c01633e
  3. 22 Jun, 2016 1 commit
    • Thomas Markwalder's avatar
      [4277] Insert and fetch IPv4 Hosts plus tests work (without options) · 8047f978
      Thomas Markwalder authored
      src/lib/dhcpsrv/host_data_source_factory.cc
          HostDataSourceFactory::create() - now instantiates PgSqlHostDataSource
      
      src/lib/dhcpsrv/pgsql_host_data_source.cc
          Enabled basic IPv4 host statements and methods
      
      src/lib/dhcpsrv/tests
          New file: pgsql_host_data_source_unittest.cc
      
      src/lib/dhcpsrv/tests/Makefile.am
          Added pgsql_host_data_source_unittest.cc
      8047f978
  4. 17 May, 2016 1 commit
  5. 16 May, 2016 1 commit
  6. 13 May, 2016 1 commit
  7. 12 May, 2016 1 commit
  8. 11 May, 2016 1 commit
  9. 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
  10. 05 Apr, 2016 1 commit
  11. 29 Mar, 2016 1 commit
  12. 01 Mar, 2016 2 commits
  13. 08 Feb, 2016 1 commit
  14. 27 Jan, 2016 1 commit
  15. 16 Dec, 2015 1 commit
  16. 04 Dec, 2015 1 commit
  17. 01 Dec, 2015 2 commits
  18. 30 Nov, 2015 1 commit