Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14118

Make sure the junit tests are run with user 'system'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.9.2
    • Fix Version/s: 5.9.3
    • Component/s: Core
    • Upgrade notes:
      Hide

      This impacts the junits runns.
      Now the principal 'Administrator' for the session injected in the tests as:

      @Inject
      protected CoreSession session;

      is an administrator: ((NuxeoPrincipal)session.getPrincipal()).isAdministrator() returns 'true';

      Show
      This impacts the junits runns. Now the principal 'Administrator' for the session injected in the tests as: @Inject protected CoreSession session; is an administrator: ((NuxeoPrincipal)session.getPrincipal()).isAdministrator() returns 'true';

      Description

      Right now the CoreFeature opens a session as the user 'Administrator', but this user doesn't have any administrator rights.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: