Uploaded image for project: 'Nuxeo Python Client'
  1. Nuxeo Python Client
  2. NXPY-169

Fix errors to fully re-support Nuxeo 9.10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 3.0.0
    • Component/s: Core

      Description

      Related to NXP-21078 (not backported to 9.10, we should skip the test for now):

      ___________________________ test_additionnal_params ____________________________
      
      server = Nuxeo<client=NuxeoClient<host='http://localhost:8080/nuxeo/', version='9.10'>>
      
          def test_additionnal_params(server):
              func = partial(server.directories.get, "nature")
          
              # The number of returned entries is configured by the querySizeLimit parameters on the server (50 by default)
              # https://github.com/nuxeo/nuxeo/blob/82d0328/nuxeo-distribution/nuxeo-nxr-server/src/main/resources/templates/common/config/default-directories-bundle.xml#L23
              total = len(func().entries)
          
              # Get only 10 entries
      >       assert len(func(pageSize=10).entries) == 10
      E       assert 37 == 10
      E         +37
      E         -10
      

      Related to NXPY-54 (missed support for 9.10 ... , will be fixed):

      _____________________________ test_document_trash ______________________________
      
      server = Nuxeo<client=NuxeoClient<host='http://localhost:8080/nuxeo/', version='9.10'>>
      
           def test_document_trash(server):
              doc = Document(name=WORKSPACE_NAME, type="File", properties={"dc:title": "bar.txt"})
              doc = server.documents.create(doc, parent_path=WORKSPACE_ROOT)
              try:
                  assert not doc.isTrashed
                  doc.trash()
      >           assert doc.isTrashed
      E           AssertionError: assert None
      

      Related to NXPY-84 (the test will be skipped):

       _____________________________ test_add_permission ______________________________
      
      server = Nuxeo<client=NuxeoClient<host='http://localhost:8080/nuxeo/', version='9.10'>>
      
          def test_add_permission(server):
              with SwapAttr(nuxeo.constants, "CHECK_PARAMS", True), Doc(server) as doc:
                  # NXPY-84: here we should not fail with KeyError: 'list' in check_params()
      >           doc.add_permission({"permission": "ReadWrite", "users": ["Administrator"]})
      
      E           nuxeo.exceptions.BadQuery: unexpected parameter 'users' for operation Document.AddPermission
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours, 15 minutes
                  4h 15m