1. 27 May, 2024 4 commits
    • Jérome Perrin's avatar
      ERP5TypeTestCase: rework user / passord generation · 70a89a21
      Jérome Perrin authored
      Manager username and password are now available as class attributes.
      
      Many tests have been updated to not generate manager user and use the
      existing one instead. When tests need to create users (for example
      users in the root acl_users), we try to delete the users afterward.
      
      Another significant changes is that we no longer have the same user in
      ERP5/acl_users and /acl_users, some tests were logging in as the root
      user in ways that never seemed intentional.
      
      ERP5TypeFunctionalTestCase was updated to use self.manager_username and
      manager_password instead of hardcoding ERP5TypeTestCase: and also some
      cleanups, the HTTP server is already started at this point and host/port
      were not used.
      70a89a21
    • Jérome Perrin's avatar
      core: fix actions with same priority · 36dcec5e
      Jérome Perrin authored
      36dcec5e
    • Roque's avatar
      erp5_web_monitoring: fix landing page, tests & minor fixes · ac16835c
      Roque authored
      See merge request nexedi/erp5!1943
      ac16835c
    • Roque's avatar
      erp5_web_monitoring: fix landing page, tests & minor fixes · 9b8515be
      Roque authored
      - setting configurator header link
      - allow auto_sync when adding opml
      - update form title
      - fix landing page
      - fix dispatch
      - fix form naming
      - fix form and fields naming (coding style tests)
      9b8515be
  2. 22 May, 2024 4 commits
  3. 20 May, 2024 8 commits
  4. 19 May, 2024 2 commits
    • Jérome Perrin's avatar
      core: make Base_edit raise in case of wrong matrixbox keys · b4227bb9
      Jérome Perrin authored
      This should not happens, but if this happens we should not just return
      in the middle of the loop, because this returned value is not used,
      so we would just silently edit partially.
      b4227bb9
    • Jérome Perrin's avatar
      Security of tester accessors · 63dcec59
      Jérome Perrin authored
      The first commit of this merge request was introduced for zope4py3 branch but it revealed issues on py2 as well, i.e. we don't have roles in auto-generated tester methods.
      
      ```
      ======================================================================
      FAIL: test_method_protection (testSecurity.TestSecurity)
      This test will list all implicitly Public methods in any objects in ZODB.
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/(SR)/parts/erp5/Products/ERP5/tests/testSecurity.py", line 113, in test_method_protection
          self.fail(message)
      AssertionError: 
      The following 7 methods have a docstring but have no security assertions.
      	/(SR)/parts/erp5/product/ERP5Form/PreferenceTool.py:65 isPreferredVcsPushMode
      	/srv/slapgrid/slappart19/t/eiy/soft/8a7759fd7b65b20d9f87713605745d05/parts/erp5/product/ERP5Type/Accessor/AcquiredProperty.py:217 hasTelephoneValidationState
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/Base.py:219 hasViewFormIdList
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/Constant.py:94 isWebDocumentType
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/Content.py:224 hasImage
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/ContentProperty.py:283 hasImageWidthList
      	/(SR)/parts/erp5/product/ERP5Type/Accessor/Translation.py:233 hasFrTranslatedTitle
      
      ----------------------------------------------------------------------
      ```
      
      See merge request nexedi/erp5!1911
      63dcec59
  5. 17 May, 2024 6 commits
  6. 16 May, 2024 6 commits
  7. 15 May, 2024 3 commits
  8. 14 May, 2024 7 commits