1. 04 May, 2016 1 commit
  2. 02 May, 2016 4 commits
  3. 27 Apr, 2016 11 commits
  4. 26 Apr, 2016 2 commits
  5. 25 Apr, 2016 6 commits
  6. 15 Apr, 2016 2 commits
  7. 14 Apr, 2016 3 commits
  8. 13 Apr, 2016 2 commits
  9. 12 Apr, 2016 4 commits
  10. 11 Apr, 2016 3 commits
    • Thomas Markwalder's avatar
      [4239] Added drop scripts for both MySQL and Postgresql · 5b978dab
      Thomas Markwalder authored
      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
      5b978dab
    • 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
    • Marcin Siodelski's avatar
  11. 08 Apr, 2016 2 commits
    • Thomas Markwalder's avatar
      [4239] Fix constraint-based unit test failure · 395104bb
      Thomas Markwalder authored
      src/lib/dhcpsrv/tests/generic_lease_mgr_unittest.cc
         - GenericLeaseMgrTest::testLease6HWTypeAndSource() - now uses valid values
           for hardware address source
      395104bb
    • Thomas Markwalder's avatar
      [4239] MySQL unit tests in dhcpsrv now use production db create script · 9c26b5fa
      Thomas Markwalder authored
      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
      9c26b5fa