1. 18 Jun, 2019 1 commit
  2. 14 Jun, 2019 1 commit
  3. 28 May, 2019 1 commit
  4. 27 May, 2019 5 commits
  5. 22 May, 2019 2 commits
  6. 18 Apr, 2019 2 commits
  7. 21 Mar, 2019 2 commits
  8. 13 Mar, 2019 2 commits
    • Thomas Markwalder's avatar
      [#531,!279] PgSQL unit testing now supports data wipe · d88c013d
      Thomas Markwalder authored
      src/share/database/scripts/pgsql
          wipe_data.sh.in - new file
      
      doc/devel/unit-tests.dox
          Removed MySQL/CQL only comment
      
      several files:
          Added commentary and removed superflous calls to destroyPgSQLSchema
      
      src/lib/pgsql/testutils/pgsql_schema.*
          destroyPgSQLSchema()
          createPgSQLSchema() - modified to support data wiping
          wipePgSQLData() - new function
      
      src/lib/pgsql/tests
          pgsql_schema.cc
      	pgsql_schema.h - deleted these. They appear to have
          been added by mistake.
      d88c013d
    • Thomas Markwalder's avatar
      [#531,!279] PgSQL unit testing now supports data wipe · 2a310d99
      Thomas Markwalder authored
      src/share/database/scripts/pgsql
          wipe_data.sh.in - new file
      
      doc/devel/unit-tests.dox
          Removed MySQL/CQL only comment
      
      several files:
          Added commentary and removed superflous calls to destroyPgSQLSchema
      
      src/lib/pgsql/testutils/pgsql_schema.*
          destroyPgSQLSchema()
          createPgSQLSchema() - modified to support data wiping
          wipePgSQLData() - new function
      
      src/lib/pgsql/tests
          pgsql_schema.cc
      	pgsql_schema.h - deleted these. They appear to have
          been added by mistake.
      2a310d99
  9. 12 Mar, 2019 3 commits
    • Francis Dupont's avatar
    • Francis Dupont's avatar
      [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Added... · ecb27f49
      Francis Dupont authored
      [481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated] Added tests and updated schema
      ecb27f49
    • Thomas Markwalder's avatar
      [#526,!269] Added env var control and CQL symmetry · 878ce0b4
      Thomas Markwalder authored
      Data wiping is on by default, for both MySQL and CQL
      (not yet implemented for Postgresql) and but can be
      overridden by KEA_TEST_DB_WIPE_DATA_ONLY.
      
      src/lib/mysql/testutils/mysql_schema.*
          destroyMySQLSchema()
          createMySQLSchema() - added check of softWipeEnabled() to
          see if env var has turned it OFF.
      
      Changed CQL to work the same way as MySQL:
      
      src/share/database/scripts/cql
          wipe_data.sh.in - new file, replaces soft_wipe.cql
      
      src/lib/cql/testutils/cql_schema.*
          destroyCqlSchema() - now destroys the schema
          if data wipe fails or is disabled
      
          createCqlSchema() - now drops/creates the schema
          if data wipe fails or is disabled.
      
          runCqlScript(() - added request-timeout to prevent
          timeout errors in slow environments
      
          wipeCqlData(bool show_err) - new function that
          attempts to run the wipe shell script
      
      src/lib/dhcpsrv/tests/cql_lease_mgr_unittest.cc
          Removed now superflous destroyCqlSchema calls
      878ce0b4
  10. 11 Mar, 2019 1 commit
    • Thomas Markwalder's avatar
      [#526,!269] Addressed more review comments · 9bc1a0ed
      Thomas Markwalder authored
      src/lib/cql/testutils/cql_schema.*
          Modified to use common softWipeEnabled(), which
          defaults to true
      
      src/lib/database/testutils/schema.*
          bool softWipeEnabled() - new function that checks
          env varible to determine if DB data wiping is enabled
          (default is true/enabled)
      
      src/lib/mysql/testutils/mysql_schema.*
          createMySQLSchema()
          destroyMySQLSchema()-  now softWipeEnabled() to allow
          data wiping to be turned on/off
      
      src/share/database/scripts/mysql/wipe_data.sh.in
          Added better error messaging
      
      several files:
          Removed extraneous calls to destroyMySQLSchema, added
          comments
      9bc1a0ed
  11. 08 Mar, 2019 1 commit
    • Thomas Markwalder's avatar
      [#526,!269] - MySQL unit tests now wipe data, instead of schema · 6af5e78e
      Thomas Markwalder authored
      src/share/database/scripts/mysql/wipe_data.sh.in -
          New shell script which intelligently deletes data from
          the schema IF the schema version matches the expected version
      
      src/lib/mysql/testutils/mysql_schema.*
          destroyMySQLSchema() - modfied to default to calling
          wipeData(), and only destroying the schema if that fails
          or by force flag = true;
      
          createMySQLSchema() - modified to default to calling
          wipeData(), and only recreating the schema if that
          fails or by force flag = true;
      
          wipeData() - new method which runs the
          MySQL wipe_data.sh shell script, passing in the expected
          schema version.
      
      src/share/database/scripts/mysql/dhcpdb_create.mysql
          createAuditRevisionDHCP4()
          createAuditEntryDHCP4()
          createAuditRevisionDHCP6()
          createAuditEntryDHCP6() - added session variable,
          @disable_audit, to allow procedures to be "turned
          off" during data wiping.
      
      src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_mgr_unittest.cc
      src/hooks/dhcp/mysql_cb/tests/mysql_cb_dhcp4_unittest.cc
      src/lib/dhcpsrv/tests/cfg_db_access_unittest.cc
      src/lib/dhcpsrv/tests/host_mgr_unittest.cc
      src/lib/dhcpsrv/tests/mysql_host_data_source_unittest.cc
      src/lib/dhcpsrv/tests/mysql_lease_mgr_unittest.cc
          Removed calls to destroy schema from test constructors
      6af5e78e
  12. 07 Mar, 2019 2 commits
  13. 04 Mar, 2019 1 commit
  14. 01 Mar, 2019 1 commit
  15. 28 Feb, 2019 1 commit
  16. 21 Feb, 2019 1 commit
  17. 20 Feb, 2019 4 commits
  18. 08 Feb, 2019 2 commits
  19. 07 Feb, 2019 1 commit
  20. 31 Jan, 2019 1 commit
  21. 30 Jan, 2019 5 commits