1. 29 Aug, 2019 1 commit
    • Arnaud Fontaine's avatar
      runUnitTest: ZODB is removed on '--save', so also recreate the Catalog tables installed by bt5s. · 50a8b88f
      Arnaud Fontaine authored
      Assuming that the test database already exists and 'movement' table already
      contains data (from past execution for example), on '--save' before this
      commit:
        1. Create a new ERP5 Site:
           1. Install erp5_mysql_innodb_catalog.
           2. Call ERP5Site_reindexAll(clear_catalog=True) (from ERP5Generator.setupIndex()).
              => At this point, erp5_mysql_innodb_catalog tables are recreated.
        2. Install erp5_movement_table_catalog or any bt5 adding a new SQL table.
           => This does not recreate the table and leave the existing data as it is.
        3. Dump MySQL database to dump.sql.
        => dump.sql contains 'INSERT INTO' for 'movement' table *before* this '--save'.
      
      This fixes random customer Unit Tests failures on SQL queries accessing
      'movement' table directly and getting {non-existing,past executions}
      Movements.
      
      With this commit, after installing all bt5, all tables handled by the Catalog
      will be cleared and ERP5Site_reindexAll will be called.
      50a8b88f
  2. 28 Aug, 2019 1 commit
  3. 16 Aug, 2019 5 commits
  4. 15 Aug, 2019 7 commits
  5. 13 Aug, 2019 4 commits
  6. 09 Aug, 2019 8 commits
  7. 08 Aug, 2019 3 commits
  8. 07 Aug, 2019 2 commits
  9. 06 Aug, 2019 2 commits
  10. 05 Aug, 2019 2 commits
  11. 02 Aug, 2019 5 commits